public class Snapshot extends Object
StreamBaseMonitor
,
MonitorListener
Modifier and Type | Field and Description |
---|---|
protected Timestamp |
prev_timestamp |
static long |
TICKS_PER_MICROSECOND |
static long |
TICKS_PER_MILLISECOND |
Modifier and Type | Method and Description |
---|---|
Set<String> |
containerNames()
Return a list of the names of the current containers
|
int |
getCycle()
Returns the cycle number of this snapshot.
|
ModuleInfo |
getModuleInfo(String name)
Returns information about the specified module.
|
OperatorInfo |
getOperatorInfo(String name)
Returns information about the specified operator.
|
StreamInfo |
getStreamInfo(String name)
Returns information about the specified stream.
|
SystemInfo |
getSystemInfo()
The SystemInfo object for this snapshot.
|
ThreadInfo |
getThreadInfo(String name)
Returns information about the specified thread.
|
Timestamp |
getTimestamp()
Return the time when this snapshot was taken.
|
Iterator<ModuleInfo> |
moduleInfos()
Returns an iterator over all the ModuleInfo objects.
|
Set<String> |
moduleNames()
Returns the set of all thread names.
|
Iterator<OperatorInfo> |
operatorInfos()
Returns an iterator over all the OperatorInfo objects.
|
Set<String> |
operatorNames()
Returns the set of all operator names.
|
void |
prettyPrint()
Shortcut for prettyPrint(true, true, true, false).
|
Iterator<StreamInfo> |
streamInfos()
Returns an iterator over all the StreamInfo objects.
|
Set<String> |
streamNames()
Returns the set of all stream names.
|
void |
terminate()
Ask the StreamBaseMonitor to terminate at the end of the current
snapshot.
|
Iterator<ThreadInfo> |
threadInfos()
Returns an iterator over all the ThreadInfo objects.
|
Set<String> |
threadNames()
Returns the set of all thread names.
|
String |
toString()
Returns a string representation of the Snapshot object.
|
public static final long TICKS_PER_MILLISECOND
public static final long TICKS_PER_MICROSECOND
protected Timestamp prev_timestamp
public void terminate()
StreamBaseMonitor.terminate()
public Set<String> containerNames()
public SystemInfo getSystemInfo()
public OperatorInfo getOperatorInfo(String name)
public ThreadInfo getThreadInfo(String name)
public ModuleInfo getModuleInfo(String name)
public StreamInfo getStreamInfo(String name)
public Iterator<OperatorInfo> operatorInfos()
Snapshot.getOperatorInfo(java.lang.String)
public Set<String> operatorNames()
Snapshot.getOperatorInfo(java.lang.String)
public Iterator<ThreadInfo> threadInfos()
Snapshot.getThreadInfo(java.lang.String)
public Set<String> threadNames()
Snapshot.getThreadInfo(java.lang.String)
public Iterator<ModuleInfo> moduleInfos()
Snapshot.getModuleInfo(java.lang.String)
public Set<String> moduleNames()
Snapshot.getThreadInfo(java.lang.String)
public Iterator<StreamInfo> streamInfos()
Snapshot.getStreamInfo(java.lang.String)
public Set<String> streamNames()
Snapshot.getStreamInfo(java.lang.String)
public int getCycle()
public Timestamp getTimestamp()
public String toString()
public void prettyPrint()