com.ibm.aglets.tahiti
Class CommandLine

java.lang.Object
  |
  +--com.ibm.aglets.tahiti.CommandLine
All Implemented Interfaces:
ContextListener, java.util.EventListener, java.lang.Runnable

public final class CommandLine
extends java.lang.Object
implements ContextListener, java.lang.Runnable

CommandLine is a simple command line interface to an aglet server.

Version:
1.10 $Date: 2001/07/28 06:32:30 $
Author:
Mitsuru Oshima
See Also:
ContextListener, ContextEvent

Constructor Summary
CommandLine()
           
 
Method Summary
 void agletActivated(ContextEvent event)
          Called when an aglet has been activated
 void agletArrived(ContextEvent event)
          Called when an aglet has arived
 void agletCloned(ContextEvent event)
          Called when an aglet has been cloned
 void agletCreated(ContextEvent event)
          Called when an aglet has been created
 void agletDeactivated(ContextEvent event)
          Called when an aglet has been deactivated
 void agletDispatched(ContextEvent event)
          Called when an aglet has been dispatched
 void agletDisposed(ContextEvent event)
          Called when an aglet has been disposed
 void agletResumed(ContextEvent event)
          Called when an aglet has been resumed
 void agletReverted(ContextEvent event)
          Called when an aglet has been reverted
 void agletStateChanged(ContextEvent event)
          Called when an aglet has been updated
 void agletSuspended(ContextEvent event)
          Called when an aglet has been suspended
 void contextShutdown(ContextEvent ev)
          Called when shutting down
 void contextStarted(ContextEvent ev)
          Initializes the Viewer with the context.
static UserManager getUserManager()
           
 void run()
          Infinite loop to process inputs
 void showDocument(ContextEvent event)
          Called when an aglet request to show the document given as URL
 void showMessage(ContextEvent event)
          Called to show the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLine

public CommandLine()
Method Detail

agletActivated

public void agletActivated(ContextEvent event)
Called when an aglet has been activated
Specified by:
agletActivated in interface ContextListener
Parameters:
event - an ContextEvent

agletArrived

public void agletArrived(ContextEvent event)
Called when an aglet has arived
Specified by:
agletArrived in interface ContextListener
Parameters:
event - an ContextEvent

agletCloned

public void agletCloned(ContextEvent event)
Called when an aglet has been cloned
Specified by:
agletCloned in interface ContextListener
Parameters:
event - an ContextEvent

agletCreated

public void agletCreated(ContextEvent event)
Called when an aglet has been created
Specified by:
agletCreated in interface ContextListener
Parameters:
event - an AgletEvent

agletDeactivated

public void agletDeactivated(ContextEvent event)
Called when an aglet has been deactivated
Specified by:
agletDeactivated in interface ContextListener
Parameters:
event - an ContextEvent

agletDispatched

public void agletDispatched(ContextEvent event)
Called when an aglet has been dispatched
Specified by:
agletDispatched in interface ContextListener
Parameters:
event - an ContextEvent

agletDisposed

public void agletDisposed(ContextEvent event)
Called when an aglet has been disposed
Specified by:
agletDisposed in interface ContextListener
Parameters:
event - an ContextEvent

agletResumed

public void agletResumed(ContextEvent event)
Called when an aglet has been resumed
Specified by:
agletResumed in interface ContextListener
Parameters:
event - an ContextEvent

agletReverted

public void agletReverted(ContextEvent event)
Called when an aglet has been reverted
Specified by:
agletReverted in interface ContextListener
Parameters:
event - an ContextEvent

agletStateChanged

public void agletStateChanged(ContextEvent event)
Called when an aglet has been updated
Specified by:
agletStateChanged in interface ContextListener
Parameters:
event - an ContextEvent

agletSuspended

public void agletSuspended(ContextEvent event)
Called when an aglet has been suspended
Specified by:
agletSuspended in interface ContextListener
Parameters:
event - an ContextEvent

contextShutdown

public void contextShutdown(ContextEvent ev)
Description copied from interface: ContextListener
Called when shutting down
Specified by:
contextShutdown in interface ContextListener

contextStarted

public void contextStarted(ContextEvent ev)
Initializes the Viewer with the context.
Specified by:
contextStarted in interface ContextListener
Parameters:
context - the AgletContext assigned to this Viewer.

getUserManager

public static final UserManager getUserManager()

run

public void run()
Infinite loop to process inputs
Specified by:
run in interface java.lang.Runnable

showDocument

public void showDocument(ContextEvent event)
Called when an aglet request to show the document given as URL
Specified by:
showDocument in interface ContextListener
Parameters:
event - an ContextEvent
See Also:
Aglet#showDocument

showMessage

public void showMessage(ContextEvent event)
Called to show the message
Specified by:
showMessage in interface ContextListener
Parameters:
event - an ContextEvent