public interface ApplicationService
ApplicationServiceMXBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALIAS
Default alias a service registers its control MBean as.
|
static java.lang.String |
SYSTEM_APP_PREFIX
Prefix ("edgent") reserved for system application names.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getApplicationNames()
Returns the names of applications registered with this service.
|
void |
registerJar(java.lang.String jarURL,
java.lang.String jsonConfig)
Register a jar file containing new applications.
|
void |
registerTopology(java.lang.String applicationName,
BiConsumer<Topology,com.google.gson.JsonObject> builder)
Add a topology that can be started though a control mbean.
|
static final java.lang.String ALIAS
static final java.lang.String SYSTEM_APP_PREFIX
void registerTopology(java.lang.String applicationName, BiConsumer<Topology,com.google.gson.JsonObject> builder)
submit
is invoked builder.accept(topology, config)
is called passing:
topology
- An empty topology with the name applicationName
.
config
- JSON submission configuration from
submit
.
builder.accept(topology, config)
returns it is submitted
to the Submitter
associated with the implementation of this service.
Application names starting with edgent
are reserved
for system applications.
applicationName
- Application name to register.builder
- How to build the topology for this application.ApplicationServiceMXBean
void registerJar(java.lang.String jarURL, java.lang.String jsonConfig) throws java.lang.Exception
TopologyBuilder
will be registered
as
a topology.
The jar cannot have any new dependencies, its classpath will
be the classpath of this service.jarURL
- URL of Jar containing new applications.jsonConfig
- Configuration information, currently unused.java.lang.Exception
- if failurejava.util.Set<java.lang.String> getApplicationNames()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641