public abstract class AbstractDataCollector extends PropertyContainer implements DataCollecting
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<java.lang.String, java.lang.String>) to create DataCollecting or
RmiDataCollecting instances out of property files returns an object
which may be cast to the appropriate type.
On 2014, 21th Oct, 13:10 UTC, the digital measurements had been replaced
by analog ones, 0.0175 corresponding roughly to digital 1.| Modifier and Type | Field and Description |
|---|---|
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.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataCollector(Map<String,String> prop)
Constructs a new data collector with the specified properties.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
createDataCollector(Map<String,String> 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<String,String> pr)
Returns a remote-enabled data collector instance.
|
augment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInterval, processDatapublic static final String KEY_CLASS
public static final String KEY_RMIDATACOLLECT
public static final String KEY_INTERVAL
public static final Object createDataCollector(Map<String,String> 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<String,String> pr)
createDataCollector(java.util.Map<java.lang.String, java.lang.String>) method, this method does not construct a
new object, but retrieves the instance of a registry-bound
RmiDataCollecting object via a registry lookup.