edg.workload.userinterface.jclient
Class ListenerConsole

java.lang.Object
  extended byedg.workload.userinterface.jclient.ListenerConsole
All Implemented Interfaces:
Listener

public class ListenerConsole
extends java.lang.Object
implements Listener

Implementation of the Listener interface.

IT provides a simple command-line from the same console where the java exututahble has been launched which is able to perform interactivity between the user and the bypass background shadow process

See Also:
Listener, Shadow

Constructor Summary
ListenerConsole()
          Default Constructor
 
Method Summary
 void run(Shadow sh)
          This is the core method implemented for Listener interface.
 void setTerminator(java.lang.String tr)
          Set the terminator string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerConsole

public ListenerConsole()
Default Constructor

Method Detail

setTerminator

public void setTerminator(java.lang.String tr)
Set the terminator string. Once the interactivity is started the console needs a string that indicates that the session is finished and the Shadow must be detached


run

public void run(Shadow sh)
This is the core method implemented for Listener interface. It launch in the background a series of threads which read/write the pipe streams and performs interactivity

Specified by:
run in interface Listener
Parameters:
sh - this Shadow instance allows the Listener to retrieve any needed information for the interaction