Package com.streambase.sb.monitor
Class OperatorInfo
java.lang.Object
com.streambase.sb.monitor.OperatorInfo
- All Implemented Interfaces:
Cloneable
Represents information about a single operator in a StreamBase application.
Instances of this class should be retrieved from a Snapshot.
- See Also:
-
Field Summary
Modifier and TypeFieldDescription(package private) boolean
Is active?(package private) long
Total number of processed tuples -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
clear()
Reset operator infoclone()
(package private) void
extractInfo
(StatTuple st) Extract thread info from the StatTuple, setting member data as appropriate.(package private) void
extractInfo
(com.streambase.sb.monitor.StatTuplev3 st) Extract operator info from this StatTuple.int
Deprecated.no replacementint
Deprecated.no replacementint
Deprecated.usegetTotalInputTuplesEnqueued()
insteadlong[]
Returns the number of input tuples enqueued on each of this operator's input streams since the StreamBase Server was started.int
Returns the number of tuples enqueued on this operator's input streams since the previous Snapshot.int
Deprecated.usegetTotalInputTuplesEnqueued()
insteadgetName()
Returns the fully qualified name of the operator.int
Deprecated.no replacementlong[]
Returns the number of output tuples produced by this operator from a each output port since the StreamBase Server was started.int
Returns the number of output tuples produced by this operator since the previous Snapshot.int
Deprecated.usegetTotalOutputTuplesEnqueued()
insteaddouble
The percentage of CPU this operator using, the value is Exponentially Weighted Moving Average with alpha 0.75.int
Deprecated.Replaced by getProfilerMS().long
int
Number of milliseconds used by the operator, since the previous Snapshot.long
int
Number of microseconds used by the operator, since the previous Snapshot.int
getSize()
Returns the size the operator.Returns the status of the operator.long
Returns the total number of input tuples enqueued on all of this operator's input streams since the StreamBase Server was started.long
Returns the total number of output tuples produced by this operator since the StreamBase Server was started.int
Deprecated.Replaced by getTotalProfilerMS().long
long
getType()
Returns the type of the operator.void
Pretty-print an OperatorInfo object to the standard output.(package private) void
Save for next reporting cycletoString()
-
Field Details
-
totalProcessed
long totalProcessedTotal number of processed tuples -
isActive
boolean isActiveIs active?
-
-
Constructor Details
-
OperatorInfo
Constructor- Parameters:
name
- Operator nametype
- Operator type
-
-
Method Details
-
extractInfo
void extractInfo(com.streambase.sb.monitor.StatTuplev3 st) Extract operator info from this StatTuple. It's only used by Stats v3.- Parameters:
st
- stats v3 tuple
-
extractInfo
Extract thread info from the StatTuple, setting member data as appropriate.- Parameters:
st
- Statistics tuple
-
clone
-
saveForNextCycle
void saveForNextCycle()Save for next reporting cycle -
getName
Returns the fully qualified name of the operator.- Returns:
- name of the operator
-
getType
Returns the type of the operator. Could return a null value if couldn't determine the type.- Returns:
- type of the operator, may return null
-
getStatus
Returns the status of the operator. Most operators do not make use of status strings, in which case this will return an empty string.- Returns:
- the status of the operator
-
getInputPortCount
Deprecated.no replacementReturns the number of input ports on this operator.- Returns:
- 0
-
getOutputPortCount
Deprecated.no replacementReturns the number of output ports on this operator.- Returns:
- 0
-
getInputTuplesEnqueuedDelta
public int getInputTuplesEnqueuedDelta()Returns the number of tuples enqueued on this operator's input streams since the previous Snapshot.- Returns:
- number of input tuples queued up
-
getInputTuplesDequeuedDelta
Deprecated.no replacementReturns the number of input tuples consumed by this operator since the previous Snapshot. If this number is less than the number of tuples enqueued to the input stream, then tuples are being queued up faster than the operator can consume them.- Returns:
- number of input tuples consumed
-
getOutputTuplesEnqueuedDelta
public int getOutputTuplesEnqueuedDelta()Returns the number of output tuples produced by this operator since the previous Snapshot.- Returns:
- number of output tuples produced
-
getInputTuplesEnqueuedTotal
Deprecated.usegetTotalInputTuplesEnqueued()
insteadReturns the total number of input tuples enqueued on this operator's input streams since the StreamBase Server was started.- Returns:
- number of tuples ever enqueued
-
getInputTuplesDequeuedTotal
Deprecated.usegetTotalInputTuplesEnqueued()
insteadReturns the total number of input tuples consumed by this operator since the StreamBase Server was started. If this number is less than the number of tuples enqueued to the input stream, then tuples are being queued up faster than the operator can consume them.- Returns:
- number of input tuples consumed
-
getOutputTuplesEnqueuedTotal
Deprecated.usegetTotalOutputTuplesEnqueued()
insteadReturns the total number of output tuples produced by this operator since the StreamBase Server was started.- Returns:
- number of output tuples produced
-
getTotalInputTuplesEnqueued
public long getTotalInputTuplesEnqueued()Returns the total number of input tuples enqueued on all of this operator's input streams since the StreamBase Server was started.- Returns:
- number of tuples ever enqueued
- Since:
- 1.4
-
getTotalOutputTuplesEnqueued
public long getTotalOutputTuplesEnqueued()Returns the total number of output tuples produced by this operator since the StreamBase Server was started.- Returns:
- number of output tuples produced
- Since:
- 1.4
-
getInputTuplesEnqueued
public long[] getInputTuplesEnqueued()Returns the number of input tuples enqueued on each of this operator's input streams since the StreamBase Server was started.- Returns:
- an array of tuple counts stored by port index. The array is truncated after the last non-zero tuple count
- Since:
- 1.4
-
getOutputTuplesEnqueued
public long[] getOutputTuplesEnqueued()Returns the number of output tuples produced by this operator from a each output port since the StreamBase Server was started.- Returns:
- an array of tuple counts stored by port index. The array is truncated after the last non-zero tuple count
- Since:
- 1.4
-
getSize
public int getSize()Returns the size the operator. The meaning of "size" varies by operator.- Returns:
- size of this operator
-
getProfilerHits
Deprecated.Replaced by getProfilerMS(). The number of minitics is not actually returned. It's actually the number of milliseconds used by the operatorNumber of miniticks used by the operator, as determined by profiler samples.- Returns:
- number of miniticks
- See Also:
-
getProfilerUSDelta
public int getProfilerUSDelta()Number of microseconds used by the operator, since the previous Snapshot.- Returns:
- number of microseconds used in this sample
- Since:
- 7.0
-
getProfilerMSDelta
public int getProfilerMSDelta()Number of milliseconds used by the operator, since the previous Snapshot.- Returns:
- number of milliseconds used in this sample
-
getProfilerUS
public long getProfilerUS()- Returns:
- The number of microseconds spent in the operator as determined by profiler samples
- Since:
- 7.0
-
getProfilerMS
public long getProfilerMS()- Returns:
- The number of milliseconds spent in the operator as determined by profiler samples
-
getTotalProfilerHits
Deprecated.Replaced by getTotalProfilerMS(). The number of minitics is not actually returned. It's actually the total number of milliseconds usedNumber of miniticks used by all operators in the contained ProfileState. (The percentage usage is then profiler hits/ total profiler hits.)- Returns:
- total number of miniticks
-
getTotalProfilerUS
public long getTotalProfilerUS()- Returns:
- The number of microseconds spent by all operators as determined by profiler samples
- Since:
- 7.0
-
getTotalProfilerMS
public long getTotalProfilerMS()- Returns:
- The number of milliseconds spent by all operators as determined by profiler samples
-
getPercentUsage
public double getPercentUsage()The percentage of CPU this operator using, the value is Exponentially Weighted Moving Average with alpha 0.75.- Returns:
- percent of usage of the operator
-
toString
-
prettyPrint
public void prettyPrint()Pretty-print an OperatorInfo object to the standard output. -
clear
void clear()Reset operator info
-