public class DatabaseServiceActivator extends ServiceActivator
DatabaseServiceImpl
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 |
---|
DatabaseServiceActivator() |
Modifier and Type | Method and Description |
---|---|
protected ServiceImpl |
createServiceImpl()
Creates the service implementation.
|
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, getVersion, 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
getProperties, getProperty, restart, setProperties, setProperty
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.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.