org.jgroups.util
Class StateTransferResult

java.lang.Object
  extended by 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
           
 
Constructor Summary
StateTransferResult()
           
StateTransferResult(byte[] buffer)
           
StateTransferResult(java.lang.Throwable t)
           
 
Method Summary
 byte[] getBuffer()
           
 java.lang.Throwable getException()
           
 boolean hasBuffer()
           
 boolean hasException()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

buffer

protected final byte[] buffer

exception

protected final java.lang.Throwable exception
Constructor Detail

StateTransferResult

public StateTransferResult()

StateTransferResult

public StateTransferResult(byte[] buffer)

StateTransferResult

public StateTransferResult(java.lang.Throwable t)
Method Detail

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.