public abstract class AbstractSrvcMgr extends java.lang.Thread implements SrvcMgr, TraceableIo, Debuggable
Manages services at TCP/IP port level.
Modifier and Type | Field and Description |
---|---|
protected boolean |
closePort |
protected boolean |
debugging |
protected boolean |
debugSrvc |
static java.lang.String[] |
DEP_LIST
Class dependencies.
|
protected Logger |
log |
protected static int |
LSTNR_TIMEOUT |
protected eventweb.servutil.SrvcRegistry |
registry |
protected boolean |
showServices |
protected int |
srvcPort |
protected java.net.ServerSocket |
srvSocket |
protected boolean |
traceSrvc |
protected boolean |
tracingIo |
static java.lang.String |
VERSION
Class version.
|
IF_VERSION
IF_VERSION
IF_VERSION
Constructor and Description |
---|
AbstractSrvcMgr() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
getEndSrvcName() |
protected java.util.Iterator<java.lang.String> |
getRsrcIterator(java.lang.Class<?> sClass) |
int |
getSrvcPort()
Get the port the service manager listens on.
|
void |
init(int portNumber,
eventweb.servutil.SrvcRegistry registry,
TvList srvcMgrParams)
Initialize the service manager.
|
boolean |
isDebugging()
Get debug state.
|
boolean |
isTracingIo() |
void |
setDebugging(boolean debug)
Set or clear debugging
|
void |
setShowServices(boolean show) |
void |
setTracingIo(boolean trace) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
requestStart, requestStop
public static final java.lang.String VERSION
public static final java.lang.String[] DEP_LIST
protected static final int LSTNR_TIMEOUT
protected int srvcPort
protected eventweb.servutil.SrvcRegistry registry
protected Logger log
protected boolean traceSrvc
protected boolean debugSrvc
protected java.net.ServerSocket srvSocket
protected boolean closePort
protected boolean showServices
protected boolean tracingIo
protected boolean debugging
public void setDebugging(boolean debug)
Debuggable
setDebugging
in interface Debuggable
debug
- If true, debugging is turned on,
otherwise, debugging is turned off.public boolean isDebugging()
Debuggable
isDebugging
in interface Debuggable
public void setTracingIo(boolean trace)
setTracingIo
in interface TraceableIo
public boolean isTracingIo()
isTracingIo
in interface TraceableIo
public void setShowServices(boolean show)
public void init(int portNumber, eventweb.servutil.SrvcRegistry registry, TvList srvcMgrParams) throws java.io.IOException
SrvcMgr
public int getSrvcPort()
SrvcMgr
getSrvcPort
in interface SrvcMgr
protected java.util.Iterator<java.lang.String> getRsrcIterator(java.lang.Class<?> sClass)
protected abstract java.lang.String getEndSrvcName()