org.dfdaemon.il2.core.console
Class AbstractCommandExecutor
java.lang.Object
org.dfdaemon.il2.core.console.AbstractCommandExecutor
- All Implemented Interfaces:
- CoreTask, CommandExecutor
- Direct Known Subclasses:
- TelnetCommandExecutor
public abstract class AbstractCommandExecutor
- extends Object
- implements CommandExecutor, CoreTask
- Author:
- aka50
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCommandExecutor
public AbstractCommandExecutor()
isTerminated
protected abstract boolean isTerminated()
isInputValid
protected abstract boolean isInputValid()
executeCommand
public <C extends Command<R>,R> R executeCommand(C cmd)
throws InterruptedException
- Specified by:
executeCommand in interface CommandExecutor
- Throws:
InterruptedException
doWork
protected void doWork(Reader reader,
Writer writer)
throws Exception
- Throws:
Exception
setEventProcessor
public void setEventProcessor(EventProcessor eventProcessor)
setPollFreq
public void setPollFreq(long pollFreq)
addLineFilter
public void addLineFilter(LineFilter lineFilter)
- Specified by:
addLineFilter in interface CommandExecutor
addCommandParser
public void addCommandParser(Class cmdClz,
CommandParser<?,? extends Command<?>> cmdPareser)
- Specified by:
addCommandParser in interface CommandExecutor
Copyright © 2007-2008. All Rights Reserved.