public interface IManagementContext
Modifier and Type | Method and Description |
---|---|
boolean |
abortOperation(long opId)
Abort a previously executed in or rd operation
The method is successful only if the operation has not completed
|
void |
addInspector(InspectableEventListener l) |
void |
addObserver(ObservableEventListener l) |
void |
disablePersistency(java.lang.String path,
TucsonTupleCentreId ttcid) |
void |
enablePersistency(java.lang.String path,
TucsonTupleCentreId ttcid) |
java.util.ArrayList<InspectableEventListener> |
getInspectors() |
RespectSpecification |
getSpec()
Get current behaviour specification
|
LogicTuple[] |
getTRSet(LogicTuple filter)
Gets current content of the triggered reactions in terms of logic tuples
|
LogicTuple[] |
getTSet(LogicTuple filter)
Gets current content of the tuple set
|
WSetEvent[] |
getWSet(LogicTuple filter)
Gets current content of the query set in terms of logic tuples
|
void |
goCommand()
Resumes VM execution (management mode)
|
boolean |
hasInspectors() |
boolean |
hasObservers() |
boolean |
isStepModeCommand()
enable/disable VM step mode
|
void |
nextStepCommand()
Executes a single execution step (step mode)
|
void |
recoveryPersistent(java.lang.String path,
java.lang.String file,
TucsonTupleCentreId ttcid) |
void |
removeInspector(InspectableEventListener l) |
void |
removeObserver(ObservableEventListener l) |
void |
reset() |
void |
setManagementMode(boolean activate) |
void |
setSpec(RespectSpecification spec)
Specify the behaviour of the tuple centre
|
void |
setWSet(java.util.List<LogicTuple> wSet)
Sets current content of the query set in terms of logic tuples
|
void |
stepModeCommand()
enable/disable VM step mode
|
void |
stopCommand()
Stops the VM (management mode, debugging)
|
boolean abortOperation(long opId)
opId
- the operation identifiervoid addInspector(InspectableEventListener l)
l
- the listener of inspectable eventsvoid addObserver(ObservableEventListener l)
l
- the listener of observable eventsvoid disablePersistency(java.lang.String path, TucsonTupleCentreId ttcid)
void enablePersistency(java.lang.String path, TucsonTupleCentreId ttcid)
java.util.ArrayList<InspectableEventListener> getInspectors()
RespectSpecification getSpec()
LogicTuple[] getTRSet(LogicTuple filter)
filter
- tuple filtering tuples to be retrievedLogicTuple[] getTSet(LogicTuple filter)
filter
- tuple filtering tuples to be retrievedWSetEvent[] getWSet(LogicTuple filter)
filter
- tuple filtering tuples to be retrievedvoid goCommand() throws OperationNotPossibleException
OperationNotPossibleException
- if the operation is not possible according to current VM
stateboolean hasInspectors()
true
if the tuple centre has some inspector
listeningboolean hasObservers()
true
if the tuple centre has some observers
listeningboolean isStepModeCommand()
void nextStepCommand() throws OperationNotPossibleException
OperationNotPossibleException
- if the operation cannot be performedvoid recoveryPersistent(java.lang.String path, java.lang.String file, TucsonTupleCentreId ttcid)
void removeInspector(InspectableEventListener l)
l
- the listener of inspectable eventsvoid removeObserver(ObservableEventListener l)
l
- the listener of observable eventsvoid reset()
void setManagementMode(boolean activate)
void setSpec(RespectSpecification spec) throws InvalidSpecificationException
spec
- The specification in ReSpecT languageInvalidSpecificationException
- If the specification is not correctvoid setWSet(java.util.List<LogicTuple> wSet)
wSet
- set in terms of logic tuplesvoid stepModeCommand()
void stopCommand() throws OperationNotPossibleException
OperationNotPossibleException
- if the operation is not possible according to current VM
state