public abstract class NafManAgent extends Object implements NafManCommand.Handler
Modifier | Constructor and Description |
---|---|
protected |
NafManAgent(Dispatcher d,
NafManRegistry reg,
XmlConfig cfg) |
Modifier and Type | Method and Description |
---|---|
protected void |
commandReceived(NafManCommand cmd) |
Dispatcher |
getDispatcher() |
abstract int |
getPort() |
abstract PrimaryAgent |
getPrimary() |
NafManRegistry |
getRegistry() |
CharSequence |
handleNAFManCommand(NafManCommand cmd) |
abstract boolean |
isPrimary() |
CharSequence |
listDispatchers() |
CharSequence |
nafmanHandlerID() |
protected void |
processCommand(NafManCommand cmd) |
protected void |
setShutdown() |
void |
start() |
abstract void |
stop() |
protected boolean |
stopDispatcher() |
protected NafManAgent(Dispatcher d, NafManRegistry reg, XmlConfig cfg)
public abstract boolean isPrimary()
public abstract PrimaryAgent getPrimary()
public abstract int getPort()
public abstract void stop()
public CharSequence nafmanHandlerID()
nafmanHandlerID
in interface NafManCommand.Handler
public Dispatcher getDispatcher()
public NafManRegistry getRegistry()
protected void setShutdown()
public void start() throws IOException
IOException
protected void commandReceived(NafManCommand cmd) throws IOException
IOException
protected void processCommand(NafManCommand cmd) throws IOException
IOException
public CharSequence handleNAFManCommand(NafManCommand cmd) throws IOException
handleNAFManCommand
in interface NafManCommand.Handler
IOException
public CharSequence listDispatchers()
protected boolean stopDispatcher()
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.