Package com.streambase.sb.monitor
Class ModuleInfo
java.lang.Object
com.streambase.sb.monitor.ModuleInfo
- All Implemented Interfaces:
Cloneable
Represents information about a parallel module in a StreamBase Server.
Instances of this class should be retrieved from a Snapshot.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInformation about a Queue between modules or containers. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidclear()Clear (reset) module infoclone()(package private) voidextractInfo(StatTuple st) extract module info from the StatTuple, setting member data as appropriate(package private) voidextractInfo(com.streambase.sb.monitor.StatTuplev3 st) extract module info from the StatTuple, setting member data as appropriateprotected voidextractQueueInfo(String name, com.streambase.sb.monitor.StatTuplev3 st) extract queue info from the StatTuple.getName()Returns the name of the thread.intReturn the number of tasks on the task queue(package private) voidPretty-print a module info object to the standard output.queues()Return a Collection of QueueInfo's which contains information about each queue(package private) voidSave module information
-
Field Details
-
isActive
boolean isActiveIs active?
-
-
Constructor Details
-
ModuleInfo
ModuleInfo(String name) Constructor- Parameters:
name- Module name
-
-
Method Details
-
extractInfo
void extractInfo(com.streambase.sb.monitor.StatTuplev3 st) extract module info from the StatTuple, setting member data as appropriate- Parameters:
st- Statistics tuple
-
extractQueueInfo
extract queue info from the StatTuple. It's used only by Stats v3.- Parameters:
name- queue namest- statistics (v3)
-
extractInfo
extract module info from the StatTuple, setting member data as appropriate- Parameters:
st- Statistics tuple
-
queues
Return a Collection of QueueInfo's which contains information about each queue- Returns:
- a Collection of QueueInfos
-
queueInfoStream
- Returns:
- The queue info stream
-
clone
-
saveForNextCycle
void saveForNextCycle()Save module information -
getName
Returns the name of the thread.- Returns:
- the name of the thread
-
getNumTasks
public int getNumTasks()Return the number of tasks on the task queue- Returns:
- number of tasks on the task queue
-
prettyPrint
void prettyPrint()Pretty-print a module info object to the standard output. -
clear
void clear()Clear (reset) module info
-