com.ibm.ws.tpv.engine.buffer
Class StatResult
- java.lang.Object
-
- com.ibm.ws.tpv.engine.buffer.StatResult
-
- All Implemented Interfaces:
- java.io.Serializable
public class StatResult extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description protected byte
flags
protected WSStats[]
stats
-
Constructor Summary
Constructors Constructor and Description StatResult()
Creates a new empty StatResult with no errors
-
Method Summary
Methods Modifier and Type Method and Description boolean
getEndOfFile()
Returns the EndOfFile flagint
getLength()
The number of Stats in this resultWSStats
getStat(int i)
Get the requested Stat objectWSStats[]
getStatsArray()
Get the entire array of Statslong
getTime(int i)
Get the timestamp for the specified Statslong[]
getTimeArray()
Get the entire array of timestampsboolean
getUpdateAvailable()
Returns the update availablevoid
setEndOfFile(boolean b)
Sets the boolean endOfFilevoid
setStats(WSStats[] stats)
Sets the Stats array associated with this StatResultvoid
setTime(long[] time)
Sets the timestamp array associated with this StatResultvoid
setUpdateAvailable(boolean update)
Sets the update available byte of the StatResultjava.lang.String
toString()
Returns a string representation of StatResult
-
-
-
Field Detail
-
flags
protected byte flags
-
stats
protected WSStats[] stats
-
-
Method Detail
-
setUpdateAvailable
public void setUpdateAvailable(boolean update)
Sets the update available byte of the StatResult- Parameters:
update
-
-
setStats
public void setStats(WSStats[] stats)
Sets the Stats array associated with this StatResult- Parameters:
stats
-
-
setTime
public void setTime(long[] time)
Sets the timestamp array associated with this StatResult- Parameters:
time
-
-
setEndOfFile
public void setEndOfFile(boolean b)
Sets the boolean endOfFile- Parameters:
b
-
-
getEndOfFile
public boolean getEndOfFile()
Returns the EndOfFile flag- Returns:
- boolean
-
getUpdateAvailable
public boolean getUpdateAvailable()
Returns the update available- Returns:
- boolean
-
getLength
public int getLength()
The number of Stats in this result- Returns:
- int
-
getStat
public WSStats getStat(int i)
Get the requested Stat object- Parameters:
i
-- Returns:
- Stats
-
getStatsArray
public WSStats[] getStatsArray()
Get the entire array of Stats- Returns:
- Stats[]
-
getTime
public long getTime(int i)
Get the timestamp for the specified Stats- Parameters:
i
-- Returns:
- long
-
getTimeArray
public long[] getTimeArray()
Get the entire array of timestamps- Returns:
- long[]
-
toString
public java.lang.String toString()
Returns a string representation of StatResult- Overrides:
toString
in classjava.lang.Object
-
-