|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.core.ProperObject
proper.core.ArgumentObject
proper.app.Application
proper.remote.Server
proper.remote.JobClient
public class JobClient
This class acts as a client to a server distributing jobs to be carried
out.
Every request the client sends to the server has the type of request in the
first line, the port it is listening to in the second line and any other
data after that.
For a complete list of commandline parameters just run it with the option
"-help".
JobServer
Field Summary | |
---|---|
static int |
PORT
the standard port to bind to |
Fields inherited from class proper.remote.Server |
---|
ALIVE_CHECK, LIST_CLIENTS, REQUEST_ISALIVE, REQUEST_NOP |
Fields inherited from interface proper.core.ProperInterface |
---|
VERSION |
Constructor Summary | |
---|---|
JobClient()
|
Method Summary | |
---|---|
java.lang.String |
getOutput()
returns the output directory where to store the logfiles |
boolean |
getRunning()
whether the client is still runnning |
java.lang.String |
getServerHostName()
returns the server to connect to |
int |
getServerPort()
returns the server port to connect to |
boolean |
isOperational()
this method determines whether the server should continue accepting connections or not |
static void |
main(java.lang.String[] args)
starts the application |
void |
printDescription()
prints a short description of this class |
boolean |
register()
registers it self at the server |
void |
setRunning(boolean running)
can only set the running state of the client to FALSE |
boolean |
unregister()
unregisters it self at the server |
Methods inherited from class proper.remote.Server |
---|
addToAccessLog, addToErrorLog, checkClients, createMessage, createMessage, getClientList, getHostName, getPort |
Methods inherited from class proper.app.Application |
---|
checkCommandLine, createInstance, fromXML, parameterError, printUsage, run, run, setArgs, setArgs, toString, toXML |
Methods inherited from class proper.core.ArgumentObject |
---|
fixAdditionalArg |
Methods inherited from class proper.core.ProperObject |
---|
addListener, addOutput, classInVerbose, debugprint, debugprint, debugprint, debugprint, debugprintln, debugprintln, debugprintln, debugprintln, debugprintln, getListeners, getRuntime, getVerbose, getVerboseLevel, getVerboseLevelForClass, getVerboseString, getVerboseStringForClass, notifyListener, notifyListeners, print, print, print, print, println, println, println, println, println, printMemory, removeListener, setOutput, setVerbose, setVerboseLevel, setVerboseString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PORT
Constructor Detail |
---|
public JobClient()
Method Detail |
---|
public void printDescription()
printDescription
in interface CommandLineInterface
printDescription
in class Application
public boolean getRunning()
public void setRunning(boolean running)
public java.lang.String getServerHostName()
public int getServerPort()
public java.lang.String getOutput()
public boolean register()
public boolean unregister()
public boolean isOperational()
isOperational
in class Server
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |