public class RPMConnectionServiceImpl extends AbstractService implements RPMConnectionService
| Modifier and Type | Field and Description |
|---|---|
static long |
APP_SERVER_PORT_TIMEOUT |
static long |
INITIAL_APP_SERVER_PORT_DELAY |
static long |
MIN_CONNECT_ATTEMPT_INTERVAL |
static java.lang.String |
RPM_CONNECTION_THREAD_NAME |
static long |
SUBSEQUENT_APP_SERVER_PORT_DELAY |
logger| Constructor and Description |
|---|
RPMConnectionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(IRPMService rpmService)
Start a connection task for the service.
|
void |
connectImmediate(IRPMService rpmService)
Start an immediate connection task for the RPM service.
|
protected void |
doStart() |
protected void |
doStop() |
long |
getAppServerPortTimeout()
Tests can override.
|
long |
getInitialAppServerPortDelay()
Tests can override.
|
boolean |
isEnabled()
Is the service enabled.
|
boolean |
shouldPreventNewConnectionTask()
Checks whether tasks have begun piling up in the scheduled executor's work queue.
|
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitawaitConnectImmediategetLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stoppublic static final java.lang.String RPM_CONNECTION_THREAD_NAME
public static final long INITIAL_APP_SERVER_PORT_DELAY
public static final long SUBSEQUENT_APP_SERVER_PORT_DELAY
public static final long APP_SERVER_PORT_TIMEOUT
public static final long MIN_CONNECT_ATTEMPT_INTERVAL
protected void doStart()
doStart in class AbstractServiceprotected void doStop()
doStop in class AbstractServicepublic void connect(IRPMService rpmService)
connect in interface RPMConnectionServicepublic void connectImmediate(IRPMService rpmService)
connectImmediate in interface RPMConnectionServicepublic boolean isEnabled()
Servicepublic long getInitialAppServerPortDelay()
public long getAppServerPortTimeout()
public boolean shouldPreventNewConnectionTask()