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

Quick Search    Search Deep

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

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

public class SystemAgent
extends SystemAgentBase


Field Summary
private  java.util.HashMap files
           
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
SystemAgent()
           
 
Method Summary
private  void closeFile()
           
private  void exists()
           
private  void getProperty()
           
private  void isDir()
           
static void main(java.lang.String[] args)
           
private  void makeDirectory()
           
private  void openFile()
           
private  void readFile()
           
private  void sendStatusError(int errorCode, java.lang.String msg)
           
private  void sendStatusOK()
           
private  void writeFile()
           
 
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

files

private java.util.HashMap files
Constructor Detail

SystemAgent

public SystemAgent()
            throws java.io.IOException
Method Detail

openFile

private void openFile()
               throws java.io.IOException

readFile

private void readFile()
               throws java.io.IOException

writeFile

private void writeFile()
                throws java.io.IOException

closeFile

private void closeFile()
                throws java.io.IOException

sendStatusOK

private void sendStatusOK()
                   throws java.io.IOException

sendStatusError

private void sendStatusError(int errorCode,
                             java.lang.String msg)
                      throws java.io.IOException

getProperty

private void getProperty()
                  throws java.io.IOException

exists

private void exists()
             throws java.io.IOException

isDir

private void isDir()
            throws java.io.IOException

makeDirectory

private void makeDirectory()
                    throws java.io.IOException

main

public static void main(java.lang.String[] args)