org.dfdaemon.il2.core.console
Class TelnetCommandExecutor

java.lang.Object
  extended by org.dfdaemon.il2.core.console.AbstractCommandExecutor
      extended by org.dfdaemon.il2.core.console.TelnetCommandExecutor
All Implemented Interfaces:
CoreTask, CommandExecutor

public class TelnetCommandExecutor
extends AbstractCommandExecutor

Author:
aka50

Constructor Summary
TelnetCommandExecutor()
           
 
Method Summary
 void afterRun()
          
protected  boolean isInputValid()
          
protected  boolean isTerminated()
          
 void preRun()
          
 void run()
          
 void setHost(String host)
           
 void setPort(int port)
           
 void setRetryDelay(long retryDelay)
           
 void setTelnetClient(org.apache.commons.net.telnet.TelnetClient telnetClient)
          Mainly for testing.
 boolean stop()
           
 
Methods inherited from class org.dfdaemon.il2.core.console.AbstractCommandExecutor
addCommandParser, addLineFilter, doWork, executeCommand, setEventProcessor, setPollFreq
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TelnetCommandExecutor

public TelnetCommandExecutor()
Method Detail

preRun

public void preRun()
            throws Exception

Throws:
Exception

run

public void run()
         throws Exception

Throws:
Exception

afterRun

public void afterRun()


stop

public boolean stop()

isTerminated

protected boolean isTerminated()

Specified by:
isTerminated in class AbstractCommandExecutor

isInputValid

protected boolean isInputValid()

Specified by:
isInputValid in class AbstractCommandExecutor

setTelnetClient

public void setTelnetClient(org.apache.commons.net.telnet.TelnetClient telnetClient)
Mainly for testing.

Parameters:
telnetClient - custom telnet telnetClient

setRetryDelay

public void setRetryDelay(long retryDelay)

setHost

public void setHost(String host)

setPort

public void setPort(int port)


Copyright © 2007-2008. All Rights Reserved.