Class AbstractAzkarraStreamsService
- java.lang.Object
-
- io.streamthoughts.azkarra.runtime.service.AbstractAzkarraStreamsService
-
- All Implemented Interfaces:
AzkarraContextAware
,AzkarraStreamsService
- Direct Known Subclasses:
LocalAzkarraStreamsService
public abstract class AbstractAzkarraStreamsService extends Object implements AzkarraStreamsService, AzkarraContextAware
-
-
Field Summary
Fields Modifier and Type Field Description protected AzkarraContext
context
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractAzkarraStreamsService()
Creates a newAbstractAzkarraStreamsService
instance.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.streamthoughts.azkarra.api.AzkarraStreamsService
addNewEnvironment, getAllStreamsContainersById, getContextConfig, getStreamsApplicationById, getStreamsContainerById, listAllKafkaStreamsApplicationIds, listAllKafkaStreamsContainerIds, restartStreamsContainer, startStreamsTopology, stopStreamsContainer, terminateStreamsApplication, terminateStreamsContainer
-
-
-
-
Field Detail
-
context
protected AzkarraContext context
-
-
Constructor Detail
-
AbstractAzkarraStreamsService
protected AbstractAzkarraStreamsService()
Creates a newAbstractAzkarraStreamsService
instance.
-
-
Method Detail
-
getTopologyProviders
public Set<TopologyDescriptor> getTopologyProviders()
Gets all topologies available locally.- Specified by:
getTopologyProviders
in interfaceAzkarraStreamsService
- Returns:
- a set of
TopologyDescriptor
instance.
-
getAllTopologies
public List<TopologyAndAliases> getAllTopologies()
Description copied from interface:AzkarraStreamsService
Gets the list of all topologies.- Specified by:
getAllTopologies
in interfaceAzkarraStreamsService
- Returns:
- the list
TopologyAndAliases
.
-
getTopologyByAliasAndVersion
public TopologyDescriptor getTopologyByAliasAndVersion(String alias, String version)
Gets theTopologyDescriptor
for the specified alias and version.- Specified by:
getTopologyByAliasAndVersion
in interfaceAzkarraStreamsService
- Parameters:
alias
- the topology alias.version
- the topology version.- Returns:
- the
TopologyDescriptor
.
-
getTopologyByAliasAndQualifiers
public TopologyDescriptor getTopologyByAliasAndQualifiers(String alias, Qualifier<? extends TopologyProvider> qualifier)
Gets theTopologyDescriptor
for the specified alias and qualifier.- Specified by:
getTopologyByAliasAndQualifiers
in interfaceAzkarraStreamsService
- Parameters:
alias
- the topology alias.qualifier
- the topology qualifier.- Returns:
- the
TopologyDescriptor
.
-
getTopologyVersionsByAlias
public List<Version> getTopologyVersionsByAlias(String alias)
Gets all versions ofTopologyDescriptor
for the specified alias.- Specified by:
getTopologyVersionsByAlias
in interfaceAzkarraStreamsService
- Parameters:
alias
- the topology alias.
-
getSupportedEnvironmentTypes
public Set<String> getSupportedEnvironmentTypes()
Gets all supported environment types.- Specified by:
getSupportedEnvironmentTypes
in interfaceAzkarraStreamsService
- Returns:
- the set of the environment types.
-
describeAllEnvironments
public Set<StreamsExecutionEnvironment.View> describeAllEnvironments()
Gets all existing streams environments.- Specified by:
describeAllEnvironments
in interfaceAzkarraStreamsService
- Returns:
- a set of
StreamsExecutionEnvironment
instance.
-
describeEnvironmentByName
public StreamsExecutionEnvironment.View describeEnvironmentByName(String name)
Gets theStreamsExecutionEnvironment
for the specified name.- Specified by:
describeEnvironmentByName
in interfaceAzkarraStreamsService
- Parameters:
name
- the environment name to find.- Returns:
- the
StreamsExecutionEnvironment
.
-
setAzkarraContext
public void setAzkarraContext(AzkarraContext context)
Set theAzkarraContext
that this object runs in.- Specified by:
setAzkarraContext
in interfaceAzkarraContextAware
- Parameters:
context
- theAzkarraContext
instance.
-
-