public class InspectorContextStub extends java.lang.Object implements InspectorContext
Modifier and Type | Field and Description |
---|---|
protected TucsonTupleCentreId |
tid
id of the tuple centre to be observed
|
Constructor and Description |
---|
InspectorContextStub(TucsonAgentId i,
TucsonTupleCentreId tc) |
Modifier and Type | Method and Description |
---|---|
void |
acceptVMEvent()
waits and processes TuCSoN virtual machine events
|
void |
addInspectorContextListener(InspectorContextListener l)
adds a new listener to the event generated by this context
|
void |
exit()
shutdown inspector
|
void |
getSnapshot(byte snapshotMsg)
gets a snapshot of tuple set
|
TucsonTupleCentreId |
getTid() |
void |
isStepMode()
verify is step mode
|
void |
nextStep()
when doing trace, asks for a new virtual machine step
|
void |
removeInspectorContextListener(InspectorContextListener l)
Removes a listener to Inspector Events
|
void |
reset()
resets the tuple centre
|
protected void |
resolveTupleCentreInfo(TucsonTupleCentreId titcd)
resolve information about a tuple centre
|
void |
setEventSet(java.util.List<Tuple> wset)
sets the entire content of the event set
|
void |
setProtocol(InspectorProtocol p)
specifies the protocol used by the inspector
|
void |
setTupleSet(java.util.List<Tuple> tset)
sets the entire content of the tuple set
|
void |
vmStepMode()
do the next step of the VM
|
protected TucsonTupleCentreId tid
public InspectorContextStub(TucsonAgentId i, TucsonTupleCentreId tc)
i
- the agent identifier to be used by this inspectortc
- the identifier of the tuple centre to inspectpublic void acceptVMEvent() throws DialogException
InspectorContext
acceptVMEvent
in interface InspectorContext
DialogException
- if the inspected node disconnets unexpectedlypublic void addInspectorContextListener(InspectorContextListener l)
InspectorContext
addInspectorContextListener
in interface InspectorContext
l
- the listener of inspection events to addpublic void exit() throws DialogSendException
InspectorContext
exit
in interface InspectorContext
DialogSendException
- if something goes wrong in the underlying networkpublic void getSnapshot(byte snapshotMsg) throws DialogSendException
InspectorContext
getSnapshot
in interface InspectorContext
snapshotMsg
- the type of snapshot the inspector wants to receiveDialogSendException
- if something goes wrong in the underlying networkpublic TucsonTupleCentreId getTid()
getTid
in interface InspectorContext
public void isStepMode()
InspectorContext
isStepMode
in interface InspectorContext
public void nextStep() throws DialogSendException
InspectorContext
nextStep
in interface InspectorContext
DialogSendException
- if something goes wrong in the underlying networkpublic void removeInspectorContextListener(InspectorContextListener l)
InspectorContext
removeInspectorContextListener
in interface InspectorContext
l
- the listener of inspection events to removepublic void reset() throws DialogSendException
InspectorContext
reset
in interface InspectorContext
DialogSendException
- if something goes wrong in the underlying networkpublic void setEventSet(java.util.List<Tuple> wset) throws DialogSendException
InspectorContext
setEventSet
in interface InspectorContext
wset
- the list of tuples representing events to overwrite current
InQ withDialogSendException
- if something goes wrong in the underlying networkpublic void setProtocol(InspectorProtocol p) throws DialogSendException
InspectorContext
setProtocol
in interface InspectorContext
p
- the inspection protocol to be usedDialogSendException
- if something goes wrong in the underlying networkpublic void setTupleSet(java.util.List<Tuple> tset) throws DialogSendException
InspectorContext
setTupleSet
in interface InspectorContext
tset
- the list of tuples to overwrite current tuple set withDialogSendException
- if something goes wrong in the underlying networkpublic void vmStepMode() throws DialogSendException
InspectorContext
vmStepMode
in interface InspectorContext
DialogSendException
- if the VM is not reachable due to network problemsprotected void resolveTupleCentreInfo(TucsonTupleCentreId titcd)
titcd
- the identifier of the tuple centre to be resolved