com.ptc.wvs.server.cadagent
Class CadWorkers
java.lang.Object
com.ptc.wvs.server.cadagent.CadWorkers
- All Implemented Interfaces:
- ActionListener, EventListener
- public class CadWorkers
- extends Object
- implements ActionListener
Method Summary |
void |
actionPerformed(ActionEvent e)
|
Monitor |
addMonitor(String host,
String type,
Socket cadSocket)
|
Worker |
addWorker(String host,
String type,
Socket cadSocket)
|
Worker |
addWorker(String host,
String type,
Socket cadSocket,
boolean pseudoWorker,
int instance)
|
void |
autoStart()
|
Worker |
configWorker(String host,
String type,
Socket cadSocket)
|
void |
createLogs(JDesktopPane desktop,
String directory)
|
void |
createLogs(String directory)
|
private ShapeType |
createShapeTypeInstance(Worker worker,
String captureData)
|
JMenu |
getAdapterMenu()
|
Log |
getDistributedLog()
|
Vector |
getShapeTypes()
|
Log |
getStatusLog()
|
Vector |
getWorkers()
|
boolean |
isDistributed()
|
static boolean |
isHostEqual(String host1,
String host2)
|
void |
listWorkers()
|
void |
load(Inifile inifile)
|
private void |
logMessage(int i,
String text)
|
void |
reload()
|
void |
removeMonitor(Monitor monitor)
|
boolean |
removeWorker(String host,
String type,
Socket cadSocket)
|
void |
setDistributed(boolean distributed)
|
void |
setWorkerDistributedMessage(DistributedMessages dm,
String host,
String type,
int j)
|
void |
showPanes()
|
private static void |
sleep(long milliseconds)
|
void |
startAllWorkers()
|
boolean |
startedWorker(String host,
String type,
int instance)
|
private void |
startProcess(int i)
|
void |
startShapeTypeQueues()
|
void |
stopAllWorkers()
|
boolean |
stoppedWorker(String host,
String type,
int instance)
|
void |
stopShapeTypeQueues()
|
void |
testMonitor(String host,
String type,
Socket cadSocket)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
agentIni
private Inifile agentIni
numberOfWorkers
private int numberOfWorkers
adapterMenu
private JMenu adapterMenu
statusLogPane
private LogPane statusLogPane
distributedLogPane
private LogPane distributedLogPane
statusLog
private Log statusLog
distributedLog
private Log distributedLog
workers
private Vector workers
shapeTypes
private Vector shapeTypes
panes
private Vector panes
distributed
private boolean distributed
workerOnlineStatus
private WorkerOnlineStatus workerOnlineStatus
onlineInterval
private int onlineInterval
inMethodServer
private boolean inMethodServer
DEFAULTSTARTTIME
private static int DEFAULTSTARTTIME
CadWorkers
public CadWorkers(Inifile inifile)
CadWorkers
public CadWorkers(Inifile inifile,
boolean inMethodServer)
setDistributed
public void setDistributed(boolean distributed)
isDistributed
public boolean isDistributed()
getDistributedLog
public Log getDistributedLog()
load
public void load(Inifile inifile)
reload
public void reload()
getShapeTypes
public Vector getShapeTypes()
getWorkers
public Vector getWorkers()
getAdapterMenu
public JMenu getAdapterMenu()
createLogs
public void createLogs(String directory)
createLogs
public void createLogs(JDesktopPane desktop,
String directory)
showPanes
public void showPanes()
isHostEqual
public static boolean isHostEqual(String host1,
String host2)
addWorker
public Worker addWorker(String host,
String type,
Socket cadSocket)
addWorker
public Worker addWorker(String host,
String type,
Socket cadSocket,
boolean pseudoWorker,
int instance)
addMonitor
public Monitor addMonitor(String host,
String type,
Socket cadSocket)
removeMonitor
public void removeMonitor(Monitor monitor)
testMonitor
public void testMonitor(String host,
String type,
Socket cadSocket)
configWorker
public Worker configWorker(String host,
String type,
Socket cadSocket)
removeWorker
public boolean removeWorker(String host,
String type,
Socket cadSocket)
stopAllWorkers
public void stopAllWorkers()
startAllWorkers
public void startAllWorkers()
listWorkers
public void listWorkers()
getStatusLog
public Log getStatusLog()
logMessage
private void logMessage(int i,
String text)
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interface ActionListener
startProcess
private void startProcess(int i)
createShapeTypeInstance
private ShapeType createShapeTypeInstance(Worker worker,
String captureData)
startShapeTypeQueues
public void startShapeTypeQueues()
stopShapeTypeQueues
public void stopShapeTypeQueues()
autoStart
public void autoStart()
sleep
private static void sleep(long milliseconds)
setWorkerDistributedMessage
public void setWorkerDistributedMessage(DistributedMessages dm,
String host,
String type,
int j)
startedWorker
public boolean startedWorker(String host,
String type,
int instance)
stoppedWorker
public boolean stoppedWorker(String host,
String type,
int instance)