public interface EmbeddedDiffusion
getConfig()
and then configuring any aspects that are required.
Once the server has been started, most aspects of the configuration can no
longer be changed.
Currently only one instance of the Diffusion Server can ever be instantiated
in a VM. Once one has been instantiated another can not be. Once a server has
been stopped it may not be restarted nor another instantiated. These
restrictions may be removed at a future release.Modifier and Type | Interface and Description |
---|---|
static interface |
EmbeddedDiffusion.LifecycleListener
Listener interface that is invoked when server state changes occur.
|
static class |
EmbeddedDiffusion.State
Diffusion lifecycle state.
|
Modifier and Type | Method and Description |
---|---|
void |
addLifecycleListener(EmbeddedDiffusion.LifecycleListener listener)
Register for lifecycle events.
|
ServerConfig |
getConfig()
Returns the root server configuration.
|
boolean |
isStarted() |
boolean |
isStopped() |
void |
removeLifecycleListener(EmbeddedDiffusion.LifecycleListener listener)
De-Register for lifecycle events.
|
void |
start()
Starts the server.
|
void |
stop()
Stops the server.
|
ServerConfig getConfig()
boolean isStarted()
boolean isStopped()
void start() throws APIException
APIException
- if unable to startvoid stop()
void addLifecycleListener(EmbeddedDiffusion.LifecycleListener listener)
listener
- that is called when a state transition occurs.void removeLifecycleListener(EmbeddedDiffusion.LifecycleListener listener)
listener
- to be removed.Copyright © 2021 Push Technology Ltd. All Rights Reserved.