public class IOPerformanceCounter
extends Object
IOPerformanceCounter: data object that tracks the server performance of a particular component (client, vHost, server, stream). It tracks bytes and messages sent to and from the object being measured.
| Constructor | Description |
|---|---|
IOPerformanceCounter() |
Create an empty performance counter.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(IOPerformanceCounter value) |
Add (value) to this counter.
|
void |
addDifference(IOPerformanceCounter current,
IOPerformanceCounter last) |
Add the result of (current-last) to this counter.
|
void |
clear() |
Clear or reset this counter back to zero.
|
IOPerformanceCounter |
clone() |
Create a deep clone (copy) if this object.
|
void |
doSet(IOPerformanceCounter value) |
Set this object to value.
|
void |
dummy() |
|
long |
getFileInBytes() |
Get file in bytes
|
double |
getFileInBytesRate() |
Get estimate of file byte-in byte rate.
|
long |
getFileOutBytes() |
Get file byte-out bytes (not implemented)
|
double |
getFileOutBytesRate() |
Get estimate of file byte-out message byte rate (not implemented).
|
long |
getMessagesInBytes() |
Get byte-in bytes
|
double |
getMessagesInBytesRate() |
Get estimate of byte-in message byte rate.
|
long |
getMessagesInCount() |
Get byte-in message count
|
long |
getMessagesInCountRate() |
Get estimate of byte-in message count rate.
|
long |
getMessagesLossBytes() |
Get byte-loss bytes
|
double |
getMessagesLossBytesRate() |
Get estimate of byte-loss message byte rate.
|
long |
getMessagesLossCount() |
Get byte-loss message count
|
long |
getMessagesLossCountRate() |
Get estimate of byte-loss message count rate.
|
long |
getMessagesOutBytes() |
Get byte-out bytes
|
double |
getMessagesOutBytesRate() |
Get estimate of byte-out message byte rate.
|
long |
getMessagesOutCount() |
Get byte-out message count
|
long |
getMessagesOutCountRate() |
Get estimate of byte-out message count rate.
|
long |
incrementBytesIn(long bytes) |
Increment bytes-in by bytes and increment message count by 0.
|
long |
incrementBytesLoss(long bytes) |
Increment bytes-loss by bytes and increment message count by 0.
|
long |
incrementBytesOut(long bytes) |
Increment bytes-out by bytes and increment message count by 0.
|
long |
incrementFileIn(long bytes) |
Increment file-bytes-in by bytes.
|
long |
incrementFileOut(long bytes) |
Increment file bytes-out by bytes.
|
long |
incrementMessagesIn() |
Increment byte-in message count by 1.
|
long |
incrementMessagesIn(long bytes) |
Increment bytes-in by bytes and increment message count by 1.
|
long |
incrementMessagesIn(long bytes,
long count) |
Increment bytes-in by bytes and message count by count.
|
long |
incrementMessagesLoss() |
Increment byte-loss message count by 1.
|
long |
incrementMessagesLoss(long bytes) |
Increment bytes-loss by bytes and increment message count by 1.
|
long |
incrementMessagesLoss(long bytes,
long count) |
Increment bytes-loss by bytes and message count by count.
|
long |
incrementMessagesOut() |
Increment byte-out message count by 1.
|
long |
incrementMessagesOut(long bytes) |
Increment bytes-out by bytes and increment message count by 1.
|
long |
incrementMessagesOut(long bytes,
long count) |
Increment bytes-out by bytes and message count by count.
|
boolean |
isDebugLog() |
|
void |
setDebugLog(boolean debugLog) |
public IOPerformanceCounter()
public void add(IOPerformanceCounter value)
value - value to addpublic void addDifference(IOPerformanceCounter current, IOPerformanceCounter last)
current - current counterlast - last counterpublic void clear()
public IOPerformanceCounter clone()
clone in class Objectpublic void doSet(IOPerformanceCounter value)
value - value to setpublic void dummy()
public long getFileInBytes()
public double getFileInBytesRate()
public long getFileOutBytes()
public double getFileOutBytesRate()
public long getMessagesInBytes()
public double getMessagesInBytesRate()
public long getMessagesInCount()
public long getMessagesInCountRate()
public long getMessagesLossBytes()
public double getMessagesLossBytesRate()
public long getMessagesLossCount()
public long getMessagesLossCountRate()
public long getMessagesOutBytes()
public double getMessagesOutBytesRate()
public long getMessagesOutCount()
public long getMessagesOutCountRate()
public long incrementBytesIn(long bytes)
bytes - public long incrementBytesLoss(long bytes)
bytes - public long incrementBytesOut(long bytes)
bytes - public long incrementFileIn(long bytes)
bytes - number of bytespublic long incrementFileOut(long bytes)
bytes - number of bytespublic long incrementMessagesIn()
public long incrementMessagesIn(long bytes)
bytes - number of bytespublic long incrementMessagesIn(long bytes,
long count)
bytes - number of bytescount - number of messagespublic long incrementMessagesLoss()
public long incrementMessagesLoss(long bytes)
bytes - number of bytespublic long incrementMessagesLoss(long bytes,
long count)
bytes - number of bytescount - number of messagespublic long incrementMessagesOut()
public long incrementMessagesOut(long bytes)
bytes - number of bytespublic long incrementMessagesOut(long bytes,
long count)
bytes - number of bytescount - number of messagespublic boolean isDebugLog()
public void setDebugLog(boolean debugLog)