public class SimpleTopologyRegistry extends Object implements org.thales.punch.libraries.storm.core.api.ITopologyRegistry
Modifier and Type | Field and Description |
---|---|
protected Map<String,Class<? extends org.thales.punch.libraries.storm.api.IBoltFactory>> |
boltFactories
The registered bolt factories by type.
|
protected Map<String,Class<? extends org.thales.punch.libraries.storm.api.ISpoutFactory>> |
spoutFactories
The registered spout factories by type.
|
Constructor and Description |
---|
SimpleTopologyRegistry()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.thales.punch.libraries.storm.api.IBoltFactory |
boltFactoryFor(String type) |
Class<? extends org.thales.punch.libraries.storm.api.IBoltFactory> |
registerBoltFactory(String key,
Class<? extends org.thales.punch.libraries.storm.api.IBoltFactory> clazz)
Adds a bolt factory to the registry.
|
Class<? extends org.thales.punch.libraries.storm.api.ISpoutFactory> |
registerSpoutFactory(String key,
Class<? extends org.thales.punch.libraries.storm.api.ISpoutFactory> clazz)
Adds a spout factory to the registry.
|
org.thales.punch.libraries.storm.api.ISpoutFactory |
spoutFactoryFor(String type) |
protected final Map<String,Class<? extends org.thales.punch.libraries.storm.api.IBoltFactory>> boltFactories
public org.thales.punch.libraries.storm.api.IBoltFactory boltFactoryFor(String type)
boltFactoryFor
in interface org.thales.punch.libraries.storm.core.api.ITopologyRegistry
public org.thales.punch.libraries.storm.api.ISpoutFactory spoutFactoryFor(String type)
spoutFactoryFor
in interface org.thales.punch.libraries.storm.core.api.ITopologyRegistry
public Class<? extends org.thales.punch.libraries.storm.api.IBoltFactory> registerBoltFactory(String key, Class<? extends org.thales.punch.libraries.storm.api.IBoltFactory> clazz)
key
- the key.clazz
- the class.public Class<? extends org.thales.punch.libraries.storm.api.ISpoutFactory> registerSpoutFactory(String key, Class<? extends org.thales.punch.libraries.storm.api.ISpoutFactory> clazz)
key
- the key.clazz
- the class.Copyright © 2023. All rights reserved.