Static Public Attributes | |
| static final int | STREAM_OBJECT = 1 |
| static final int | STREAM_ASCII = 2 |
SchedulerProxy agent provides a command line interface to Scheduler agent through a TCP connection and a SchedulerStream.
The SchedulerProxy agent has a name so that it may be found by the client from that name. An example client code is:
<blockquote>
SchedulerProxy proxy = new SchedulerProxy("scheduler name", schedulerId,
SchedulerProxy.STREAM_ASCII);
proxy.deploy();
Socket socket = SchedulerProxy.connect("scheduler name");
Writer scheduler = new OutputStreamWriter(socket.getOutputStream());
scheduler.write("schedule \"event name\" start=\"21 sep 98 14:29:18\"");
scheduler.flush();
</blockquote>Dates are interpreted using the default locale.
SchedulerStream
Locale
Definition at line 46 of file SchedulerProxy.java.
final int com.scalagent.scheduler.proxy.SchedulerProxy.STREAM_OBJECT = 1 [static] |
Gets a socket to a proxy agent from its name.
| name | file name provided at agent creation |
Definition at line 68 of file SchedulerProxy.java.
1.5.0