public abstract class Naflet extends Object
In addition to overriding the explicit methods of this interface, subclasses that want to be automatically
created from the naf.xml config must also provide a constructor with this signature:
classname(String naflet_name, com.grey.naf.reactor.Dispatcher, com.grey.base.config.XmlConfig)
That subclass constructor must in turn call the Naflet constructor of the same signature (see below).
Modifier and Type | Field and Description |
---|---|
String |
naflet_name |
Constructor and Description |
---|
Naflet(String name,
Dispatcher dsptch_p,
XmlConfig cfg) |
Modifier and Type | Method and Description |
---|---|
protected void |
abortOnStartup() |
Dispatcher |
getDispatcher() |
Logger |
getLogger() |
protected void |
nafletStopped() |
void |
start(EntityReaper rpr) |
protected abstract void |
startNaflet() |
boolean |
stop() |
protected boolean |
stopNaflet() |
XmlConfig |
taskConfig() |
protected String |
taskConfigFile() |
public final String naflet_name
public Naflet(String name, Dispatcher dsptch_p, XmlConfig cfg) throws IOException
IOException
protected abstract void startNaflet() throws IOException
IOException
public Dispatcher getDispatcher()
protected String taskConfigFile()
public Logger getLogger()
protected boolean stopNaflet()
protected void abortOnStartup()
public XmlConfig taskConfig()
public final void start(EntityReaper rpr) throws IOException
IOException
public final boolean stop()
protected final void nafletStopped()
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.