Package com.sshtools.common.ssh
Class GlobalRequest
java.lang.Object
com.sshtools.common.ssh.AbstractRequestFuture
com.sshtools.common.ssh.GlobalRequest
- All Implemented Interfaces:
RequestFuture
This class represents a global request.
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalRequest(String name, SshConnection con, byte[] requestdata) Contstruct a request. -
Method Summary
Methods inherited from class com.sshtools.common.ssh.AbstractRequestFuture
addFutureListener, done, isDone, isSuccess, waitFor, waitForeverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sshtools.common.ssh.RequestFuture
isDoneAndSuccess
-
Constructor Details
-
GlobalRequest
Contstruct a request.- Parameters:
name- the name of the requestthe- connection of the requestrequestdata- the request data
-
-
Method Details
-
getName
Get the name of the request.- Returns:
- String
-
getConnection
-
getData
public byte[] getData()Get the request data, if the request has been sent and processed, this will return the response data (which can be null).- Returns:
- either the request data or response data according to the current state.
-
setData
public void setData(byte[] requestdata) Set the data.- Parameters:
requestdata-
-
complete
public void complete(boolean success)
-