|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
stella.sensor.AbstractDataCollector
public abstract class AbstractDataCollector
An abstract implementation of the DataCollecting interface. It
provides (protected) construction with a single properties argument and may
thus be used as a progenitor for local data collectors. The static
method createDataCollector(java.util.Map) to create DataCollecting or
RmiDataCollecting instances out of property files returns an object
which may be cast to the appropriate type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyContainer |
|---|
PropertyContainer.URLResource |
| Field Summary | |
|---|---|
static String |
KEY_CLASS
The key mapping to the data collector class name. |
static String |
KEY_INTERVAL
The key mapping to the notification interval. |
static String |
KEY_RMIDATACOLLECT
The key mapping to the remote data collector bind name. |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES |
| Fields inherited from interface util.PropertyBearing |
|---|
CONFIG, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
protected |
AbstractDataCollector(Map prop)
Constructs a new data collector with the specified properties. |
| Method Summary | |
|---|---|
static Object |
createDataCollector(Map prop)
Constructs a new data collector instance using the mapping of the KEY_CLASS to the class name to derive the class to instantiate. |
private static RmiDataCollecting |
createRmiDataCollector(Map pr)
Returns a remote-enabled data collector instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface stella.sensor.DataCollecting |
|---|
getInterval, processData |
| Field Detail |
|---|
public static final String KEY_CLASS
public static final String KEY_RMIDATACOLLECT
public static final String KEY_INTERVAL
| Constructor Detail |
|---|
protected AbstractDataCollector(Map prop)
| Method Detail |
|---|
public static final Object createDataCollector(Map prop)
KEY_CLASS to the class name to derive the class to instantiate.
If this property is defined, a new DataCollecting
instance with the stated
class name is created, the supplied properties used as an argument in
the constructor. KEY_RMIDATACOLLECT key. In this case,
the
data collector is not constructed but rather looked up in the
registry. The remote reference found is returned as an
RmiDataCollecting instance.If unsuccessful due to various pits prtesent, null is returned.
DataCollecting or a
RmiDataCollecting instance.private static final RmiDataCollecting createRmiDataCollector(Map pr)
createDataCollector(java.util.Map) method, this method does not construct a
new object, but retrieves the instance of a registry-bound
RmiDataCollecting object via a registry lookup.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||