Package com.streambase.sb.monitor
Class Snapshot
java.lang.Object
com.streambase.sb.monitor.Snapshot
Stores a snapshot of information from a StreamBase application.
Snapshot objects are created by the StreamBaseMonitor class, and consumed
by MonitorListeners. New snapshots are produced at regular intervals,
depending on the period specified in the StreamBase Server's conf file.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn a list of the names of the current containersReturns an iterator over all the DecisionTableInfo objects.Returns the set of all decision table names.getDecisionTableInfo
(String name) Returns information about the specified decision table.getModuleInfo
(String name) Returns information about the specified module.getOperatorInfo
(String name) Returns information about the specified operator.getStreamInfo
(String name) Returns information about the specified stream.The SystemInfo object for this snapshot.getThreadInfo
(String name) Returns information about the specified thread.Return the time when this snapshot was taken.Returns an iterator over all the ModuleInfo objects.Returns the set of all thread names.Returns an iterator over all the OperatorInfo objects.Returns the set of all operator names.void
Shortcut for prettyPrint(true, true, true, false).protected void
reset()
Reset snapshotReturns an iterator over all the StreamInfo objects.Returns the set of all stream names.void
Ask the StreamBaseMonitor to terminate at the end of the current snapshot.Returns an iterator over all the ThreadInfo objects.Returns the set of all thread names.toString()
-
Method Details
-
terminate
public void terminate()Ask the StreamBaseMonitor to terminate at the end of the current snapshot.- See Also:
-
containerNames
-
getSystemInfo
The SystemInfo object for this snapshot.- Returns:
- the SystemInfo object
-
getOperatorInfo
Returns information about the specified operator.- Parameters:
name
- the operator name- Returns:
- the requested OperatorInfo object
-
getDecisionTableInfo
Returns information about the specified decision table.- Parameters:
name
- the decision table name- Returns:
- the requested DecisionTableInfo object
-
getThreadInfo
Returns information about the specified thread.- Parameters:
name
- the thread name- Returns:
- the requested ThreadInfo object
-
getModuleInfo
Returns information about the specified module.- Parameters:
name
- the module name- Returns:
- the requested ModuleInfo object
-
getStreamInfo
Returns information about the specified stream.- Parameters:
name
- the stream name- Returns:
- the requested StreamInfo object
-
operatorInfos
Returns an iterator over all the OperatorInfo objects.- Returns:
- an Iterator of OperatorInfos
- See Also:
-
operatorNames
-
decisionTableInfos
Returns an iterator over all the DecisionTableInfo objects.- Returns:
- an Iterator of DecisionTableInfo
- See Also:
-
decisionTableNames
-
threadInfos
Returns an iterator over all the ThreadInfo objects.- Returns:
- an Iterator of ThreadInfos
- See Also:
-
threadNames
-
moduleInfos
Returns an iterator over all the ModuleInfo objects.- Returns:
- an Iterator of ModuleInfo
- See Also:
-
moduleInfoStream
- Returns:
- The module info stream
-
moduleNames
-
streamInfos
Returns an iterator over all the StreamInfo objects.- Returns:
- an Iterator of StreamInfo
- See Also:
-
streamNames
-
getTimestamp
Return the time when this snapshot was taken. It is the timestamp of the first tuple of this snapshot.- Returns:
- timestamp of whhen this snapshot was taken
-
reset
protected void reset()Reset snapshot -
toString
-
prettyPrint
public void prettyPrint()Shortcut for prettyPrint(true, true, true, false).- See Also:
-