public abstract class CM_Listener extends ChannelMonitor implements EntityReaper
Modifier and Type | Class and Description |
---|---|
static interface |
CM_Listener.Reporter |
Modifier and Type | Field and Description |
---|---|
static String |
CFGMAP_BACKLOG |
static String |
CFGMAP_FACTCLASS |
static String |
CFGMAP_IFACE |
static String |
CFGMAP_INCRSPAWN |
static String |
CFGMAP_INITSPAWN |
static String |
CFGMAP_MAXSPAWN |
static String |
CFGMAP_PORT |
static String |
CFGMAP_SSLPORT |
String |
name |
Constructor and Description |
---|
CM_Listener(String lname,
Dispatcher d,
Object controller,
EntityReaper rpr,
XmlConfig cfg,
Map<String,Object> cfgdflts) |
Modifier and Type | Method and Description |
---|---|
Object |
getController() |
protected static int |
getInt(Map<String,Object> cfg,
String key,
int dflt) |
InetAddress |
getIP() |
int |
getPort() |
protected CM_Listener.Reporter |
getReporter() |
abstract Class<?> |
getServerType() |
protected boolean |
inShutdown() |
protected void |
listenerStopped() |
protected static Map<String,Object> |
makeDefaults(Class<?> clss,
String iface,
int port) |
void |
start() |
boolean |
stop() |
protected boolean |
stop(boolean notify) |
protected boolean |
stopListener() |
protected void |
stopped(boolean notify) |
String |
toString() |
disconnect, disconnect, dumpAppState, dumpState, eventError, getChannel, getCMID, getDatagramChannel, getDispatcher, getLogger, getReaper, getSocketChannel, getStartTime, getSystemTime, initChannelMonitor, ioDisconnected, setReaper
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
entityStopped
public static final String CFGMAP_IFACE
public static final String CFGMAP_PORT
public static final String CFGMAP_SSLPORT
public static final String CFGMAP_FACTCLASS
public static final String CFGMAP_BACKLOG
public static final String CFGMAP_INITSPAWN
public static final String CFGMAP_MAXSPAWN
public static final String CFGMAP_INCRSPAWN
public final String name
public CM_Listener(String lname, Dispatcher d, Object controller, EntityReaper rpr, XmlConfig cfg, Map<String,Object> cfgdflts) throws IOException
IOException
public abstract Class<?> getServerType()
public int getPort()
public InetAddress getIP()
public Object getController()
protected CM_Listener.Reporter getReporter()
protected void listenerStopped()
protected boolean stopListener()
protected boolean inShutdown()
public void start() throws IOException
IOException
public boolean stop()
protected boolean stop(boolean notify)
protected void stopped(boolean notify)
protected static Map<String,Object> makeDefaults(Class<?> clss, String iface, int port)
public String toString()
toString
in class ChannelMonitor
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.