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 byteflagsprotected 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 booleangetEndOfFile()Returns the EndOfFile flagintgetLength()The number of Stats in this resultWSStatsgetStat(int i)Get the requested Stat objectWSStats[]getStatsArray()Get the entire array of StatslonggetTime(int i)Get the timestamp for the specified Statslong[]getTimeArray()Get the entire array of timestampsbooleangetUpdateAvailable()Returns the update availablevoidsetEndOfFile(boolean b)Sets the boolean endOfFilevoidsetStats(WSStats[] stats)Sets the Stats array associated with this StatResultvoidsetTime(long[] time)Sets the timestamp array associated with this StatResultvoidsetUpdateAvailable(boolean update)Sets the update available byte of the StatResultjava.lang.StringtoString()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:
toStringin classjava.lang.Object
-
-