Package com.nt.udc.ndk.node
Interface DCNodePerformanceIfc
- All Known Implementing Classes:
DCNodePerformance
public interface DCNodePerformanceIfc
Defines methods that will be used to assess the performance of
a DCNode.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the average rate per second of nars passing through the stream handler since the node started.int
Returns the average rate per second of nars passing through the stream handler since the last performance check.int
Returns difference between the current time and the time of the last performance check.long
Returns number of nars processed in this check interval.long
getNars()
Returns total number of nars passed through the stream handler.Returns the string id for the node it came fromint
Returns time node has been upvoid
void
reset()
void
void
-
Method Details
-
getNars
long getNars()Returns total number of nars passed through the stream handler.- Returns:
- total nars
-
getNarDelta
long getNarDelta()Returns number of nars processed in this check interval.- Returns:
- nar delta
-
getLastCheckDelta
int getLastCheckDelta()Returns difference between the current time and the time of the last performance check.- Returns:
- check time delta
-
getNodeUpTime
int getNodeUpTime()Returns time node has been up- Returns:
- node up time
-
getAvgNarRate
int getAvgNarRate()Returns the average rate per second of nars passing through the stream handler since the node started.- Returns:
- average nars per second
-
getCurrentNarRate
int getCurrentNarRate()Returns the average rate per second of nars passing through the stream handler since the last performance check.- Returns:
- current nars per second
-
getNodeId
String getNodeId()Returns the string id for the node it came from- Returns:
- node id
-
refreshMetrics
void refreshMetrics() -
setActive
-
setStatus
-
reset
void reset()
-