Public Member Functions | |
| StreamConnection (InputStream in, OutputStream out) | |
| void | Server (RemoteJob job) throws DirectorException |
| void | Agent () throws DirectorException |
Protected Member Functions | |
| void | leanBackAndWait () throws DirectorException |
| synchronized void | imDone () |
| String | readNextLine () throws IOException |
| boolean | commonListen (String cmd) |
| void | masterlistener (StoppableThread thread) |
| void | waitEvent () |
| void | send (byte[] buf, int offset, int size) throws IOException |
| void | send_string (String str) throws IOException |
| void | send_final_string (String str) |
| boolean | send_cmd (String cmd) throws IOException |
| void | master (StoppableThread thread) |
| void | agentlistener (StoppableThread thread) |
| void | agent (StoppableThread thread) |
| InputStream | retrieve (String url) throws DirectorException |
| This implements the ServerConnection retrieve method. | |
| OutputStream | send (String url) throws DirectorException |
| This implements the ServerConnection send method. | |
| void | log (LogEntry log) throws DirectorException |
| This implements the ServerConnection log method. | |
Package Attributes | |
| InputStream | in |
| byte | inputbuffer [] = new byte[16384] |
| OutputStream | out |
| RemoteJob | job |
| StoppableThread | commander = null |
| StoppableThread | sender |
| StoppableThread | receiver |
| Thread | master |
| boolean | working |
| int | commands_to_complete = 0 |
| int | commands_failed = 0 |
| DirectorException | result = null |
| boolean | jobdone = false |
| StoppableThread | bgexe = null |
| long | watchdog |
| long | keepalive |
| pusher | inline_out |
| popper | inline_in |
| byte | inlinebuf [] |
| Object | cmd_lock = new Object() |
| StringBuffer | _linebuf = new StringBuffer() |
Static Package Attributes | |
| static final String | transferEncoding = "utf8" |
Classes | |
| class | popper |
| class | pusher |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This implements the ServerConnection log method.
|
|
|
|
|
|
|
|
|
|
|
|
This implements the ServerConnection retrieve method.
|
|
|
This implements the ServerConnection send method.
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5