public class ListenService extends AbstractResinSubSystem
| Modifier and Type | Field and Description |
|---|---|
static int |
START_PRIORITY_CLUSTER |
static int |
START_PRIORITY_LISTEN |
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, STOP_PRIORITY_CLASSLOADER| Modifier and Type | Method and Description |
|---|---|
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
TcpPorts 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.
|
destroy, getStopPriority, isActive, preCreate, toStringpublic static final int START_PRIORITY_LISTEN
public static final int START_PRIORITY_CLUSTER
public static ListenService createAndAddService()
public static ListenService getCurrent()
public TcpPort createListener()
public void addListener(TcpPort listener)
public java.util.Collection<TcpPort> getListeners()
TcpPorts for this server.public int getStartPriority()
ResinSubSystemgetStartPriority in interface ResinSubSystemgetStartPriority in class AbstractResinSubSystempublic void start()
throws java.lang.Exception
ResinSubSystemstart in interface ResinSubSystemstart in class AbstractResinSubSystemjava.lang.Exceptionpublic void stop()
throws java.lang.Exception
ResinSubSystemstop in interface ResinSubSystemstop in class AbstractResinSubSystemjava.lang.Exception