org.symcomp.wupsi.handlers
Class SPSDHandler

java.lang.Object
  extended by org.symcomp.wupsi.handlers.WupsiHandler
      extended by org.symcomp.wupsi.handlers.SPSDHandler

public class SPSDHandler
extends WupsiHandler

handle the 'spsd' command family which is used to administer the 'Simple Parallel SCSCP Dispatcher'.


Constructor Summary
SPSDHandler(Wupsifer w)
           
 
Method Summary
 void addWorkers(java.lang.String[] args)
           
 void clearWorker(org.symcomp.scscp.SCSCPClient client)
           
 void clearWorkers()
           
 java.lang.String command()
          If the beginning of the current command mathes this string, this is the correct handler to be called.
 void handle(java.lang.String in)
          this method is called with the entered command by Wupsifer
 java.lang.String help()
          some usage infos
 void showWorkers()
           
 void shutdownHook()
          called on shutdown so that the handler can do necessary cleanup actions
 void startServer(int port)
           
 void startServer(java.lang.String spsdName)
           
 void systemDiedHook(org.symcomp.scscp.SCSCPClient client)
          called when a system dies so that the handler can do necessary cleanup actions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPSDHandler

public SPSDHandler(Wupsifer w)
Method Detail

command

public java.lang.String command()
Description copied from class: WupsiHandler
If the beginning of the current command mathes this string, this is the correct handler to be called.

Specified by:
command in class WupsiHandler
Returns:
the command to match for

startServer

public void startServer(java.lang.String spsdName)

addWorkers

public void addWorkers(java.lang.String[] args)

clearWorkers

public void clearWorkers()

clearWorker

public void clearWorker(org.symcomp.scscp.SCSCPClient client)

showWorkers

public void showWorkers()

startServer

public void startServer(int port)

handle

public void handle(java.lang.String in)
Description copied from class: WupsiHandler
this method is called with the entered command by Wupsifer

Specified by:
handle in class WupsiHandler
Parameters:
in - the entered command

help

public java.lang.String help()
Description copied from class: WupsiHandler
some usage infos

Specified by:
help in class WupsiHandler
Returns:
usage info for this command (family)

shutdownHook

public void shutdownHook()
Description copied from class: WupsiHandler
called on shutdown so that the handler can do necessary cleanup actions

Overrides:
shutdownHook in class WupsiHandler

systemDiedHook

public void systemDiedHook(org.symcomp.scscp.SCSCPClient client)
Description copied from class: WupsiHandler
called when a system dies so that the handler can do necessary cleanup actions

Overrides:
systemDiedHook in class WupsiHandler


Copyright © 2010. All Rights Reserved.