org.tranche.remote
Class CheckForErrorCallback
java.lang.Object
org.tranche.commons.Debuggable
org.tranche.remote.RemoteCallback
org.tranche.remote.CheckForErrorCallback
public class CheckForErrorCallback
- extends RemoteCallback
Represents an error report request.
- Author:
- Jayson Falkner - jfalkner@umich.edu
|
Field Summary |
static java.lang.String |
NAME
|
|
Method Summary |
void |
callback(byte[] bytes)
Sets the response from the server. |
void |
checkForError()
Returns the server response. |
static void |
writeResponse(java.io.OutputStream out)
|
| Methods inherited from class org.tranche.remote.RemoteCallback |
getCachedException, getDescription, getID, getName, getPurgeMsg, getRemoteTrancheServer, getTimeCompleted, getTimeStarted, isComplete, isPurged, keepAlive, notifyTimedOut, notifyWaiting, purge, setCachedException, waitForCallback |
| Methods inherited from class org.tranche.commons.Debuggable |
debugErr, debugErr, debugOut, isDebug, setDebug |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
CheckForErrorCallback
public CheckForErrorCallback(long id,
RemoteTrancheServer rts,
java.lang.String description)
throws java.lang.InterruptedException
- Parameters:
rts - the remote tranche server receivedid - Unique Identification for the Callback
- Throws:
java.lang.InterruptedException - if an interrupted exception occurs
checkForError
public void checkForError()
throws java.lang.Exception
Returns the server response.
- Throws:
java.lang.Exception
callback
public void callback(byte[] bytes)
Sets the response from the server.
- Specified by:
callback in class RemoteCallback
- Parameters:
bytes -
writeResponse
public static void writeResponse(java.io.OutputStream out)
throws java.lang.Exception
- Parameters:
out -
- Throws:
java.lang.Exception
This code is free for use both commercially and non-commercially as stated in the project's license