org.jgroups.util
Class StateTransferResult
java.lang.Object
org.jgroups.util.StateTransferResult
public class StateTransferResult
- extends java.lang.Object
Encapsulates the result of a state transfer. When buffer is set, then this is the result of a state transfer with
STATE_TRANSFER. When exception is non-null, then an exception occurred. When both fields are null, then the
(streaming) state transfer was successful.
- Since:
- 3.0
- Author:
- Bela Ban
Field Summary |
protected byte[] |
buffer
|
protected java.lang.Throwable |
exception
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
buffer
protected final byte[] buffer
exception
protected final java.lang.Throwable exception
StateTransferResult
public StateTransferResult()
StateTransferResult
public StateTransferResult(byte[] buffer)
StateTransferResult
public StateTransferResult(java.lang.Throwable t)
hasBuffer
public boolean hasBuffer()
hasException
public boolean hasException()
getBuffer
public byte[] getBuffer()
getException
public java.lang.Throwable getException()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.