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
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.
|
destroy, getStopPriority, isActive, preCreate, toString
public 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()
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