Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.open3sp.agent.system
Class SystemAgentClient  view SystemAgentClient download SystemAgentClient.java

java.lang.Object
  extended byorg.open3sp.agent.system.SystemAgentBase
      extended byorg.open3sp.agent.system.SystemAgentClient

public class SystemAgentClient
extends SystemAgentBase


Field Summary
private  java.io.DataInputStream in
           
private  java.io.DataOutputStream out
           
private  boolean running
           
 
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
 
Constructor Summary
SystemAgentClient(java.io.InputStream input, java.io.OutputStream output)
           
 
Method Summary
 boolean doesExist(java.lang.String file)
           
 void downloadFile(java.lang.String source, java.io.OutputStream fout)
           
 java.lang.String getProperty(java.lang.String name)
           
 boolean isDirectory(java.lang.String file)
           
 void makeDirectory(java.lang.String dir)
           
 void uploadFile(java.io.InputStream fin, java.lang.String destination)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

private java.io.DataInputStream in

out

private java.io.DataOutputStream out

running

private boolean running
Constructor Detail

SystemAgentClient

public SystemAgentClient(java.io.InputStream input,
                         java.io.OutputStream output)
                  throws java.io.IOException
Method Detail

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