public interface CoreService
| Modifier and Type | Field and Description |
|---|---|
static String |
CORE_APP_NAME
Name of the core "application".
|
static ProviderId |
CORE_PROVIDER_ID
Identifier of the core "provider".
|
| Modifier and Type | Method and Description |
|---|---|
ApplicationId |
getAppId(Short id)
Returns an existing application id from a given id.
|
ApplicationId |
getAppId(String name)
Returns an existing application id from a given id.
|
Set<ApplicationId> |
getAppIds()
Returns the set of currently registered application identifiers.
|
IdGenerator |
getIdGenerator(String topic)
Returns an id generator for a given topic.
|
ApplicationId |
registerApplication(String name)
Registers a new application by its name, which is expected
to follow the reverse DNS convention, e.g.
|
ApplicationId |
registerApplication(String name,
Runnable preDeactivate)
Registers a new application by its name, which is expected
to follow the reverse DNS convention, e.g.
|
Version |
version()
Returns the product version.
|
static final String CORE_APP_NAME
static final ProviderId CORE_PROVIDER_ID
Version version()
Set<ApplicationId> getAppIds()
ApplicationId getAppId(Short id)
id - the short value of the idApplicationId getAppId(String name)
name - the name portion of the ID to look upApplicationId registerApplication(String name)
org.flying.circus.appname - string identifierApplicationId registerApplication(String name, Runnable preDeactivate)
org.flying.circus.app, along with its pre-deactivation hook.name - string identifierpreDeactivate - pre-deactivation hookIdGenerator getIdGenerator(String topic)
topic - topic identified