org.dfdaemon.il2.core.console
Class TelnetCommandExecutor
java.lang.Object
org.dfdaemon.il2.core.console.AbstractCommandExecutor
org.dfdaemon.il2.core.console.TelnetCommandExecutor
- All Implemented Interfaces:
- CoreTask, CommandExecutor
public class TelnetCommandExecutor
- extends AbstractCommandExecutor
- Author:
- aka50
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TelnetCommandExecutor
public TelnetCommandExecutor()
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.