|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.env.service.AbstractResinSubSystem
com.caucho.network.listen.ListenService
public class ListenService
The socket listen service, which accepts sockets and dispatches them to protocols.
Field Summary | |
---|---|
static int |
START_PRIORITY_CLUSTER
|
static int |
START_PRIORITY_LISTEN
|
Fields inherited from interface com.caucho.env.service.ResinSubSystem |
---|
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DATABASE_SYSTEM, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER |
Method Summary | |
---|---|
void |
addListener(TcpPort listener)
Registers a listener with the service. |
static ListenService |
createAndAddService()
|
TcpPort |
createListener()
Creates a listener with the defaults applied. |
static ListenService |
getCurrent()
|
java.util.Collection<TcpPort> |
getListeners()
Returns the TcpPort s for this server. |
int |
getStartPriority()
Returns the start priority of the service, used to determine which services to start first. |
void |
start()
Starts the service. |
void |
stop()
Stops the service. |
Methods inherited from class com.caucho.env.service.AbstractResinSubSystem |
---|
destroy, getStopPriority, isActive, preCreate, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int START_PRIORITY_LISTEN
public static final int START_PRIORITY_CLUSTER
Method Detail |
---|
public static ListenService createAndAddService()
public static ListenService getCurrent()
public TcpPort createListener()
public void addListener(TcpPort listener)
public java.util.Collection<TcpPort> getListeners()
TcpPort
s for this server.
public int getStartPriority()
ResinSubSystem
getStartPriority
in interface ResinSubSystem
getStartPriority
in class AbstractResinSubSystem
public void start() throws java.lang.Exception
ResinSubSystem
start
in interface ResinSubSystem
start
in class AbstractResinSubSystem
java.lang.Exception
public void stop() throws java.lang.Exception
ResinSubSystem
stop
in interface ResinSubSystem
stop
in class AbstractResinSubSystem
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |