public class DCNodePerformance extends java.lang.Object implements DCNodePerformanceIfc, java.io.Serializable
Constructor and Description |
---|
DCNodePerformance() |
DCNodePerformance(java.lang.String node_id) |
Modifier and Type | Method and Description |
---|---|
int |
getAvgNarRate()
Returns the average rate per second of nars passing through
the stream handler since the node started.
|
int |
getCurrentNarRate()
Returns the average rate per second of nars passing through
the stream handler since the last performance check.
|
int |
getLastCheckDelta()
Returns difference between the current time and the time of
the last performance check.
|
long |
getNarDelta()
Returns number of nars processed in this check interval.
|
long |
getNars()
Returns total number of nars passed through the stream handler.
|
java.lang.String |
getNodeId()
Returns the string id for the node it came from
|
java.lang.String |
getNodeManagerIpAndPort() |
int |
getNodeUpTime()
Returns time node has been up
|
void |
reset() |
void |
setCheckTime(int check) |
void |
setNars(long n) |
void |
setNodeId(java.lang.String id) |
void |
setNodeManagerIpAndPort(java.lang.String nodeManagerIpAndPort) |
void |
setNodeStartTime(int startTime) |
java.lang.String |
toString() |
public DCNodePerformance()
public DCNodePerformance(java.lang.String node_id)
public void reset()
public void setNars(long n)
public long getNars()
DCNodePerformanceIfc
getNars
in interface DCNodePerformanceIfc
public long getNarDelta()
DCNodePerformanceIfc
getNarDelta
in interface DCNodePerformanceIfc
public void setCheckTime(int check)
public int getLastCheckDelta()
DCNodePerformanceIfc
getLastCheckDelta
in interface DCNodePerformanceIfc
public int getNodeUpTime()
DCNodePerformanceIfc
getNodeUpTime
in interface DCNodePerformanceIfc
public int getAvgNarRate()
DCNodePerformanceIfc
getAvgNarRate
in interface DCNodePerformanceIfc
public int getCurrentNarRate()
DCNodePerformanceIfc
getCurrentNarRate
in interface DCNodePerformanceIfc
public void setNodeStartTime(int startTime)
public java.lang.String getNodeId()
DCNodePerformanceIfc
getNodeId
in interface DCNodePerformanceIfc
public void setNodeId(java.lang.String id)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getNodeManagerIpAndPort()
public void setNodeManagerIpAndPort(java.lang.String nodeManagerIpAndPort)