|
||||||||||
| 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_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER |
| Method Summary | |
|---|---|
void |
addListener(TcpSocketLinkListener listener)
Registers a listener with the service. |
static ListenService |
createAndAddService()
|
TcpSocketLinkListener |
createListener()
Creates a listener with the defaults applied. |
static ListenService |
getCurrent()
|
java.util.Collection<TcpSocketLinkListener> |
getListeners()
Returns the TcpSocketLinkListeners 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, 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 TcpSocketLinkListener createListener()
public void addListener(TcpSocketLinkListener listener)
public java.util.Collection<TcpSocketLinkListener> getListeners()
TcpSocketLinkListeners for this server.
public int getStartPriority()
ResinSubSystem
getStartPriority in interface ResinSubSystemgetStartPriority in class AbstractResinSubSystem
public void start()
throws java.lang.Exception
ResinSubSystem
start in interface ResinSubSystemstart in class AbstractResinSubSystemjava.lang.Exception
public void stop()
throws java.lang.Exception
ResinSubSystem
stop in interface ResinSubSystemstop in class AbstractResinSubSystemjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||