public class SimpleMeasurementContext extends java.rmi.server.UnicastRemoteObject implements MeasurementContext
Constructor and Description |
---|
SimpleMeasurementContext()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.UUID |
getMeasurementUUID()
Returns the unique identifier of the measurement containing this component.
|
java.io.Serializable |
getProperty(java.lang.String identifier)
Returns a previously-by this or another measurement component-stored property.
|
<T extends java.io.Serializable> |
getProperty(java.lang.String identifier,
java.lang.Class<T> propertyType)
Returns a previously-by this or another measurement component-stored property.
|
java.lang.String[] |
getPropertyIdentifiers()
Returns the identifiers of all stored properties.
|
void |
notifyMeasurementStructureChanged()
Should be called if the structure of the measurement changed during execution, e.g.
|
void |
setProperty(java.lang.String identifier,
java.io.Serializable property)
Sets a property, such that it can be loaded by any other job in the measurement.
|
clone, exportObject, exportObject, exportObject, unexportObject
public SimpleMeasurementContext() throws java.rmi.RemoteException
java.rmi.RemoteException
public void setProperty(java.lang.String identifier, java.io.Serializable property)
MeasurementContext
setProperty
in interface MeasurementContext
identifier
- a short identifier for the property.property
- The property which should be saved.public java.lang.String[] getPropertyIdentifiers()
MeasurementContext
getPropertyIdentifiers
in interface MeasurementContext
public java.io.Serializable getProperty(java.lang.String identifier)
MeasurementContext
getProperty
in interface MeasurementContext
identifier
- identifier of the property.public <T extends java.io.Serializable> T getProperty(java.lang.String identifier, java.lang.Class<T> propertyType)
MeasurementContext
getProperty
in interface MeasurementContext
identifier
- identifier of the property.propertyType
- type to which the property should be casted.public void notifyMeasurementStructureChanged() throws java.rmi.RemoteException
MeasurementContext
notifyMeasurementStructureChanged
in interface MeasurementContext
java.rmi.RemoteException
public java.util.UUID getMeasurementUUID() throws java.rmi.RemoteException
MeasurementContext
getMeasurementUUID
in interface MeasurementContext
java.rmi.RemoteException