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()
DCNodePerformanceIfcgetNars in interface DCNodePerformanceIfcpublic long getNarDelta()
DCNodePerformanceIfcgetNarDelta in interface DCNodePerformanceIfcpublic void setCheckTime(int check)
public int getLastCheckDelta()
DCNodePerformanceIfcgetLastCheckDelta in interface DCNodePerformanceIfcpublic int getNodeUpTime()
DCNodePerformanceIfcgetNodeUpTime in interface DCNodePerformanceIfcpublic int getAvgNarRate()
DCNodePerformanceIfcgetAvgNarRate in interface DCNodePerformanceIfcpublic int getCurrentNarRate()
DCNodePerformanceIfcgetCurrentNarRate in interface DCNodePerformanceIfcpublic void setNodeStartTime(int startTime)
public java.lang.String getNodeId()
DCNodePerformanceIfcgetNodeId in interface DCNodePerformanceIfcpublic void setNodeId(java.lang.String id)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getNodeManagerIpAndPort()
public void setNodeManagerIpAndPort(java.lang.String nodeManagerIpAndPort)