public class TopologyFactory extends Object implements org.thales.punch.libraries.storm.core.api.ITopologyFactory
Modifier and Type | Field and Description |
---|---|
static String |
DATE_PATTERN
The pattern appended to the topology name.
|
Constructor and Description |
---|
TopologyFactory(org.thales.punch.libraries.storm.core.api.ITopologyRegistry registry,
org.thales.punch.platform.api.IPlatform platform,
String containerId)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
buildName(org.thales.punch.libraries.storm.api.ITopologySettings config) |
protected Map<String,Object> |
createConfig(org.thales.punch.libraries.storm.api.ITopologySettings config)
Creates a Storm topology configuration from an PunchPlatform
configuration.
|
org.thales.punch.libraries.storm.core.api.ITopology |
createEmbeddedTopology(org.thales.punch.libraries.storm.api.ITopologySettings topoConfig,
List<String> pluginsJarPaths) |
org.thales.punch.libraries.storm.core.api.ITopology |
createLocalTopology(org.thales.punch.libraries.storm.api.ITopologySettings topoConfig,
List<String> pluginsJarPaths) |
org.thales.punch.libraries.storm.core.api.IRemoteTopology |
createRemoteTopology(org.thales.punch.libraries.storm.api.ITopologySettings topoConfig,
String jar,
List<String> pluginsJarPaths) |
void |
createTopology(ITopologyBuilder builder,
org.thales.punch.libraries.storm.api.ITopologySettings topoConfig,
org.thales.punch.platform.api.IPunchPlatformProperties punchplatformConfig)
Build a Storm or embedded topology from an PunchPlatform configuration.
|
public static final String DATE_PATTERN
public TopologyFactory(org.thales.punch.libraries.storm.core.api.ITopologyRegistry registry, org.thales.punch.platform.api.IPlatform platform, String containerId)
registry
- the registry of static bolt and spout factories.platform
- the platform handlecontainerId
- containerIdpublic org.thales.punch.libraries.storm.core.api.ITopology createLocalTopology(org.thales.punch.libraries.storm.api.ITopologySettings topoConfig, List<String> pluginsJarPaths) throws org.thales.punch.exceptions.ConfigurationException
createLocalTopology
in interface org.thales.punch.libraries.storm.core.api.ITopologyFactory
org.thales.punch.exceptions.ConfigurationException
public org.thales.punch.libraries.storm.core.api.ITopology createEmbeddedTopology(org.thales.punch.libraries.storm.api.ITopologySettings topoConfig, List<String> pluginsJarPaths) throws org.thales.punch.exceptions.ConfigurationException
createEmbeddedTopology
in interface org.thales.punch.libraries.storm.core.api.ITopologyFactory
org.thales.punch.exceptions.ConfigurationException
public org.thales.punch.libraries.storm.core.api.IRemoteTopology createRemoteTopology(org.thales.punch.libraries.storm.api.ITopologySettings topoConfig, String jar, List<String> pluginsJarPaths) throws org.thales.punch.exceptions.ConfigurationException
createRemoteTopology
in interface org.thales.punch.libraries.storm.core.api.ITopologyFactory
org.thales.punch.exceptions.ConfigurationException
protected String buildName(org.thales.punch.libraries.storm.api.ITopologySettings config)
config
- the PunchPlatform configuration.public void createTopology(ITopologyBuilder builder, org.thales.punch.libraries.storm.api.ITopologySettings topoConfig, org.thales.punch.platform.api.IPunchPlatformProperties punchplatformConfig) throws org.thales.punch.exceptions.ConfigurationException, org.thales.punch.exceptions.EnvironmentConfigurationException
builder
- buildertopoConfig
- the PunchPlatform configuration.punchplatformConfig
- punchplatform configorg.thales.punch.exceptions.ConfigurationException
org.thales.punch.exceptions.EnvironmentConfigurationException
Copyright © 2023. All rights reserved.