public interface ServiceActivatorBaseMBean extends StatsHolderMBean
| Modifier and Type | Method and Description |
|---|---|
void |
create()
Creates the service.
|
void |
destroy()
Destroys the service.
|
Properties |
getProperties()
Gets the MBean properties.
|
Optional<String> |
getProperty(String key)
Gets the value of a property.
|
boolean |
isRunning()
Asks if the service is running.
|
boolean |
isStarted()
Asks if the service has been started.
|
boolean |
isStopped()
Asks if the service has been stopped.
|
void |
restart()
Restarts the service.
|
void |
setProperties(Properties properties)
Sets the MBean properties.
|
void |
setProperty(String key,
String value)
Sets a property.
|
void |
start()
Starts the service.
|
void |
stop()
Stops the service.
|
getStatsStringsvoid create()
throws Exception
Exception - As appropriate for the service.void destroy()
@Nonnull @CheckReturnValue Properties getProperties()
@Nonnull
@CheckReturnValue
Optional<String> getProperty(@Nonnull
String key)
key - The name of the property.@CheckReturnValue boolean isRunning()
@CheckReturnValue boolean isStarted()
@CheckReturnValue boolean isStopped()
void restart()
throws Exception
Exception - As appropriate for the service.void setProperties(@Nonnull
Properties properties)
properties - The MBean properties.void setProperty(@Nonnull
String key,
@Nonnull
String value)
key - The name of the property.value - The value of the property.void start()
throws Exception
Exception - As appropriate for the service.void stop()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.