Class AssetGraphMLProvider
- java.lang.Object
-
- org.opennms.features.topology.plugins.topo.asset.AssetGraphMLProvider
-
- All Implemented Interfaces:
EventListener
public class AssetGraphMLProvider extends Object implements EventListener
-
-
Field Summary
Fields Modifier and Type Field Description static String
CREATE_ASSET_TOPOLOGY
static String
REGENERATE_ALL_ASSET_TOPOLOGIES
static String
REGENERATE_ASSET_TOPOLOGY
static String
REMOVE_ASSET_TOPOLOGY
-
Constructor Summary
Constructors Constructor Description AssetGraphMLProvider(GraphmlRepository repository, EventIpcManager eventIpcManager, NodeProvider nodeProvider, org.springframework.transaction.support.TransactionOperations transactionOperations, AssetGraphDefinitionRepositoryImpl assetGraphDefinitionRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createAssetTopology(GeneratorConfig config)
Generates and installs a new AssetTopology defined by the configvoid
destroy()
String
getName()
Return the id of the listenervoid
init()
void
onEvent(IEvent e)
Process a sent event.void
regenerateAllAssetTopologies()
Makes a best effort to regenerated all of the asset topologies defined in the assetGraphDefinitionRepository Throws a runtime exception if all the topologies are not regeneratedvoid
regenerateAssetTopology(String providerId)
Regenerates the AssetTopology defined by the providerIdvoid
removeAssetTopology(String providerId)
Removes the AssetTopology defined by the config
-
-
-
Field Detail
-
CREATE_ASSET_TOPOLOGY
public static final String CREATE_ASSET_TOPOLOGY
- See Also:
- Constant Field Values
-
REMOVE_ASSET_TOPOLOGY
public static final String REMOVE_ASSET_TOPOLOGY
- See Also:
- Constant Field Values
-
REGENERATE_ASSET_TOPOLOGY
public static final String REGENERATE_ASSET_TOPOLOGY
- See Also:
- Constant Field Values
-
REGENERATE_ALL_ASSET_TOPOLOGIES
public static final String REGENERATE_ALL_ASSET_TOPOLOGIES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AssetGraphMLProvider
public AssetGraphMLProvider(GraphmlRepository repository, EventIpcManager eventIpcManager, NodeProvider nodeProvider, org.springframework.transaction.support.TransactionOperations transactionOperations, AssetGraphDefinitionRepositoryImpl assetGraphDefinitionRepository)
-
-
Method Detail
-
createAssetTopology
public void createAssetTopology(GeneratorConfig config)
Generates and installs a new AssetTopology defined by the config- Parameters:
config
-
-
removeAssetTopology
public void removeAssetTopology(String providerId)
Removes the AssetTopology defined by the config- Parameters:
providerId
- The providerId to delete.
-
regenerateAssetTopology
public void regenerateAssetTopology(String providerId)
Regenerates the AssetTopology defined by the providerId- Parameters:
providerId
- The providerId to regenerate.
-
regenerateAllAssetTopologies
public void regenerateAllAssetTopologies()
Makes a best effort to regenerated all of the asset topologies defined in the assetGraphDefinitionRepository Throws a runtime exception if all the topologies are not regenerated
-
init
public void init()
-
destroy
public void destroy()
-
getName
public String getName()
Description copied from interface:EventListener
Return the id of the listener- Specified by:
getName
in interfaceEventListener
- Returns:
- a
String
object.
-
onEvent
public void onEvent(IEvent e)
Description copied from interface:EventListener
Process a sent event.- Specified by:
onEvent
in interfaceEventListener
- Parameters:
e
- aIEvent
object.
-
-