com.ptc.wvs.server.cadagent
Class WorkerMessages
java.lang.Object
java.lang.Thread
com.ptc.wvs.server.cadagent.WorkerMessages
- All Implemented Interfaces:
- Runnable
- public class WorkerMessages
- extends Thread
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
agentSocket
private Socket agentSocket
hostname
private String hostname
port
private int port
command
private String command
commandClass
private String commandClass
directory
private String directory
debug
private boolean debug
sleepTime
private int sleepTime
outputLog
private Log outputLog
WorkerMessages
WorkerMessages()
setSleepTime
public void setSleepTime(int sleepTime)
setCommand
public void setCommand(String command)
getCommand
public String getCommand()
setCommandClass
public void setCommandClass(String commandClass)
getCommandClass
public String getCommandClass()
setDirectory
public void setDirectory(String directory)
getDirectory
public String getDirectory()
setDebug
public void setDebug(boolean debug)
isDebug
public boolean isDebug()
setOutputLog
public void setOutputLog(String logfile,
String directory)
log
public void log(String message)
connect
public boolean connect(String hostname,
int port)
throws Exception
- Throws:
Exception
closeSocket
public void closeSocket()
throws Exception
- Throws:
Exception
run
public void run()
getMessage
public String getMessage(Socket clientSocket)
throws IOException
- Throws:
IOException
sendMessage
public void sendMessage(String message)
finalize
protected void finalize()