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_VERSIONIF_VERSIONIF_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, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrequestStart, requestStoppublic 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)
DebuggablesetDebugging in interface Debuggabledebug - If true, debugging is turned on,
otherwise, debugging is turned off.public boolean isDebugging()
DebuggableisDebugging in interface Debuggablepublic void setTracingIo(boolean trace)
setTracingIo in interface TraceableIopublic boolean isTracingIo()
isTracingIo in interface TraceableIopublic void setShowServices(boolean show)
public void init(int portNumber,
eventweb.servutil.SrvcRegistry registry,
TvList srvcMgrParams)
throws java.io.IOException
SrvcMgrpublic int getSrvcPort()
SrvcMgrgetSrvcPort in interface SrvcMgrprotected java.util.Iterator<java.lang.String> getRsrcIterator(java.lang.Class<?> sClass)
protected abstract java.lang.String getEndSrvcName()