org.symcomp.wupsi.handlers
Class WupsiHandler

java.lang.Object
  extended by org.symcomp.wupsi.handlers.WupsiHandler
Direct Known Subclasses:
AliasHandler, ConnectHandler, DescribeHandler, DisconnectHandler, HelpHandler, IrcHandler, LocalHandler, PrintHandler, QuitHandler, ReadHandler, SetHandler, ShowHandler, SPSDHandler, UseHandler, WebHandler

public abstract class WupsiHandler
extends java.lang.Object

WupsiHandlers are used to encapsulate the functionality of the command line commands of the WUPSI. These are the commands that are not evaluated by the remote SCSCP systems.


Constructor Summary
WupsiHandler()
           
 
Method Summary
abstract  java.lang.String command()
          If the beginning of the current command mathes this string, this is the correct handler to be called.
abstract  void handle(java.lang.String in)
          this method is called with the entered command by Wupsifer
abstract  java.lang.String help()
          some usage infos
 void shutdownHook()
          called on shutdown so that the handler can do necessary cleanup actions
 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

WupsiHandler

public WupsiHandler()
Method Detail

command

public abstract java.lang.String command()
If the beginning of the current command mathes this string, this is the correct handler to be called.

Returns:
the command to match for

handle

public abstract void handle(java.lang.String in)
this method is called with the entered command by Wupsifer

Parameters:
in - the entered command

help

public abstract java.lang.String help()
some usage infos

Returns:
usage info for this command (family)

shutdownHook

public void shutdownHook()
called on shutdown so that the handler can do necessary cleanup actions


systemDiedHook

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



Copyright © 2010. All Rights Reserved.