java.lang.Object
org.open3sp.agent.system.SystemAgentBase
org.open3sp.agent.system.SystemAgentClient
- public class SystemAgentClient
- extends SystemAgentBase
| Fields inherited from class org.open3sp.agent.system.SystemAgentBase |
AGENT_CLOSE_FILE, AGENT_FILE_EXISTS, AGENT_GET_PROPERTY, AGENT_INIT, AGENT_IS_DIRECTORY, AGENT_MAKE_DIRECTORY, AGENT_OPEN_FILE, AGENT_READ_FILE, AGENT_STATUS_ERROR, AGENT_STATUS_OK, AGENT_WRITE_FILE, ERROR_FILE_ERROR, ERROR_FILE_NOT_FOUND, ERROR_MKDIR_FAILED, ERROR_PROPERTY_NOT_FOUND, ERROR_UNKNOWN_MESSAGE, OPEN_FILE_CREATE, OPEN_FILE_READ, OPEN_FILE_WRITE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
in
private java.io.DataInputStream in
out
private java.io.DataOutputStream out
running
private boolean running
SystemAgentClient
public SystemAgentClient(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
getProperty
public java.lang.String getProperty(java.lang.String name)
throws java.io.IOException
makeDirectory
public void makeDirectory(java.lang.String dir)
throws java.io.IOException
doesExist
public boolean doesExist(java.lang.String file)
throws java.io.IOException
isDirectory
public boolean isDirectory(java.lang.String file)
throws java.io.IOException
uploadFile
public void uploadFile(java.io.InputStream fin,
java.lang.String destination)
throws java.io.IOException
downloadFile
public void downloadFile(java.lang.String source,
java.io.OutputStream fout)
throws java.io.IOException