public interface ClientCommand
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFileHash()
Returns the hash value of the file that was transferred.
|
int |
getResult()
Returns the result of the command.
|
java.lang.String |
getServerException()
Returns the exception from the server when
getResult() returns
CommandResult#FAILED. |
java.lang.String |
getServerResponse()
Returns whatever the server may have sent to the client at the end of the
command.
|
void |
init(java.util.Properties properties)
Initializes the ClientCommand with a set of properties.
|
void |
run()
Starts the job for the command.
|
void init(java.util.Properties properties)
properties - a set of properties for the command to usevoid run()
throws java.io.IOException
init(Properties) must be called to prepare the command for
execution.java.io.IOException - thrown if something happened during the execution of the
commandint getResult()
run() was
called.CommandResult or -1 if the method
could not determine the state of the commandjava.lang.String getServerException()
getResult() returns
CommandResult#FAILED. If no exception happened on the server this
method returns null. Only usable after run() was called.java.lang.String getServerResponse()
java.lang.String getFileHash()
null
if not applicable