|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrockit.memleak.mlp.AbstractMemLeak.DelayedTruncatable<T>
T - protected abstract class AbstractMemLeak.DelayedTruncatable<T>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.jrockit.memleak.ITruncatable |
|---|
ITruncatable.Reason |
| Field Summary | |
|---|---|
protected com.jrockit.memleak.mlp.ServerRequest |
req
|
| Constructor Summary | |
|---|---|
AbstractMemLeak.DelayedTruncatable(RequestType reqType)
|
|
| Method Summary | |
|---|---|
T[] |
get()
The actual result array, possibly truncated. |
long |
getChangeTime()
Get the time stamp of when this result last changed state. |
protected T[] |
getEmptyResult()
|
java.lang.Exception |
getException()
If an exception was thrown, returns that Exception. |
ITruncatable.Reason |
getTruncationReason()
If the result was truncated, returns a ITruncatable.Reason for the truncation. |
boolean |
isDone()
Returns true if this task completed. |
boolean |
isDone(java.lang.Object notificationToken)
Checks if the result is available. |
boolean |
isTruncated()
|
protected abstract T[] |
parseResponse(java.io.DataInputStream dis)
|
AbstractMemLeak.DelayedTruncatable<T> |
send()
|
ITruncatable<T> |
sendIfSupported()
If this request is unsupported, returns a ITruncatable result
with an empty array and a reason of "UNSUPPORTED". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final com.jrockit.memleak.mlp.ServerRequest req
| Constructor Detail |
|---|
public AbstractMemLeak.DelayedTruncatable(RequestType reqType)
reqType - | Method Detail |
|---|
public long getChangeTime()
IResultIResult.isDone() is false, returns the time when the request
was sent. If IResult.isDone() is true, returns the time when the
response was received.
getChangeTime in interface IResult<T[]>public AbstractMemLeak.DelayedTruncatable<T> send()
public ITruncatable<T> sendIfSupported()
ITruncatable result
with an empty array and a reason of "UNSUPPORTED". Otherwise returns
as send().
ITruncatable<T>send()protected T[] getEmptyResult()
public boolean isDone()
IResult
isDone in interface IResult<T[]>public boolean isDone(java.lang.Object notificationToken)
IResultnotificationToken is added to the token set that will be
given to notification listeners once the result is available. And false
is returned.
isDone in interface IResult<T[]>public T[] get()
ITruncatable
get in interface IResult<T[]>get in interface ITruncatable<T>
protected abstract T[] parseResponse(java.io.DataInputStream dis)
throws java.io.IOException,
GarbageCollectedException,
SpiException
dis -
java.io.IOException
GarbageCollectedException
SpiExceptionpublic boolean isTruncated()
isTruncated in interface ITruncatable<T>public ITruncatable.Reason getTruncationReason()
ITruncatableITruncatable.Reason for the truncation.
Otherwise, null is returned. Note that if ITruncatable.getException()
returns non-null, this method will also return non-null, most probably
ITruncatable.Reason.EXCEPTION.
getTruncationReason in interface ITruncatable<T>public java.lang.Exception getException()
ITruncatableException. Otherwise,
null is returned.
getException in interface ITruncatable<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||