public final class HTTPServerActivator extends ServiceActivator implements HTTPServerActivatorMBean
HTTPServerImpl
StatsHolder.UpdateNotification
NAME_ARG_PREFIX, OBJECT_NAME_PROPERTY
ACTIVATOR_CLASS_NAME_SUFFIX, DEFAULT_DOMAIN, DOMAIN_PROPERTY, NAME_KEY, STATS_UPDATE_TYPE, TYPE_KEY
Constructor and Description |
---|
HTTPServerActivator() |
Modifier and Type | Method and Description |
---|---|
protected ServiceImpl |
createServiceImpl()
Creates the service implementation.
|
String[] |
getAddresses()
Gets the listening IP addresses.
|
int[] |
getPorts()
Gets the listening IP ports.
|
Version |
getVersion()
Gets the version object.
|
static void |
main(String[] args)
Allows operation in stand alone mode.
|
acceptMainArg, create, createServiceImpl, createServiceImpl, destroy, export, getConfig, getConfigURL, getObjectVersion, getService, getStats, isRunning, isStarted, isStopped, isZombie, setConfigURL, setWait, start, start, stop, tearDownStandAlone, updateStats
created, destroyed, equals, getObjectName, getProperties, getProperty, getServer, hashCode, postDeregister, postRegister, preDeregister, preRegister, restart, restart, run, setListener, setObjectNameProperty, setProperties, setProperty, started, starting, stopped, stopping, terminate, toString
getDefaultDomain, getStatsStrings, getThisLogger, makeObjectName, makeObjectName, objectName, onStatsUpdated, setObjectName
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
getConfigURL, isZombie, setConfigURL
create, destroy, getProperties, getProperty, isRunning, isStarted, isStopped, restart, setProperties, setProperty, start, stop
getStatsStrings
public static void main(@Nonnull String[] args)
As a program, it expects one optional argument: the configuration file specification. It will default to "rvpf-config.xml".
args
- The program arguments.public String[] getAddresses()
getAddresses
in interface HTTPServerActivatorMBean
public int[] getPorts()
getPorts
in interface HTTPServerActivatorMBean
public Version getVersion()
getVersion
in class ServiceActivatorBase
protected ServiceImpl createServiceImpl()
This must be implemented by the subclasses to provide the actual service.
createServiceImpl
in class ServiceActivator
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.