|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WatchDataSource
The WatchDataSource interface defines the semantics for a Watch to store Calculable records
| Method Summary | |
|---|---|
void |
addCalculable(Calculable calculable)
Add a Calculable record to the Calculable history |
boolean |
addWatchDataReplicator(WatchDataReplicator replicator)
Add a WatchDataReplicator, |
void |
clear()
Clears the history |
void |
close()
Closes the watch data source and unexports it from the runtime |
Calculable[] |
getCalculable()
Get all Calculable records from the Calculable history |
Calculable[] |
getCalculable(long from,
long to)
Get Calculable records from the Calculable history for the specified time range |
int |
getCurrentSize()
Get the current size for the Calculable history |
String |
getID()
Get the ID for the WatchDataSource |
Calculable |
getLastCalculable()
Gets the last Calculable from the history |
int |
getMaxSize()
Get the maximum size for the Calculable history |
ThresholdValues |
getThresholdValues()
Getter for property thresholdValues. |
String |
getView()
Getter for property view. |
void |
initialize()
Initialize the WatchDataSource |
boolean |
removeWatchDataReplicator(WatchDataReplicator replicator)
Remove a WatchDataReplicator |
void |
setConfiguration(Configuration config)
Set the WatchDataSource configuration |
void |
setID(String id)
Set the ID for the WatchDataSource |
void |
setMaxSize(int size)
Set the maximum size for the Calculable history |
void |
setThresholdValues(ThresholdValues tValues)
Set the ThresholdValues |
void |
setView(String view)
Setter for property view. |
| Method Detail |
|---|
void setConfiguration(Configuration config)
throws RemoteException
config - The configuration
RemoteException - If communication errors occur
void setID(String id)
throws RemoteException
id - The identifier for the WatchDataSource
RemoteException - If communication errors occur
String getID()
throws RemoteException
RemoteException - If communication errors occur
void initialize()
throws RemoteException
RemoteException - if the WatchDataSource cannot be exported
void setMaxSize(int size)
throws RemoteException
size - The maximum size for the Calculable history
RemoteException - If communication errors occur
int getMaxSize()
throws RemoteException
RemoteException - If communication errors occur
void clear()
throws RemoteException
RemoteException - If communication errors occur
int getCurrentSize()
throws RemoteException
RemoteException - If communication errors occur
void addCalculable(Calculable calculable)
throws RemoteException
calculable - The Calculable record
RemoteException - If communication errors occur
Calculable[] getCalculable()
throws RemoteException
RemoteException - If communication errors occur
Calculable[] getCalculable(long from,
long to)
throws RemoteException
from - The start timeto - The end time
RemoteException - If communication errors occur
Calculable getLastCalculable()
throws RemoteException
RemoteException - If communication errors occur
ThresholdValues getThresholdValues()
throws RemoteException
RemoteException - If communication errors occur
void setThresholdValues(ThresholdValues tValues)
throws RemoteException
tValues - The ThresholdValues to set
RemoteException - If communication errors occur
void close()
throws RemoteException
RemoteException - If communication errors occur
void setView(String view)
throws RemoteException
view - The view class name, suitable for Class.forName
RemoteException - If communication errors occur
String getView()
throws RemoteException
RemoteException - If communication errors occur
boolean addWatchDataReplicator(WatchDataReplicator replicator)
throws RemoteException
WatchDataReplicator,
replicator - The WatchDataReplicator to add.
RemoteException - If communication errors occur
boolean removeWatchDataReplicator(WatchDataReplicator replicator)
throws RemoteException
WatchDataReplicator
replicator - The WatchDataReplicator to remove.
RemoteException - If communication errors occur
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||