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 StringCREATE_ASSET_TOPOLOGYstatic StringREGENERATE_ALL_ASSET_TOPOLOGIESstatic StringREGENERATE_ASSET_TOPOLOGYstatic StringREMOVE_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 voidcreateAssetTopology(GeneratorConfig config)Generates and installs a new AssetTopology defined by the configvoiddestroy()StringgetName()Return the id of the listenervoidinit()voidonEvent(IEvent e)Process a sent event.voidregenerateAllAssetTopologies()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 regeneratedvoidregenerateAssetTopology(String providerId)Regenerates the AssetTopology defined by the providerIdvoidremoveAssetTopology(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:EventListenerReturn the id of the listener- Specified by:
getNamein interfaceEventListener- Returns:
- a
Stringobject.
-
onEvent
public void onEvent(IEvent e)
Description copied from interface:EventListenerProcess a sent event.- Specified by:
onEventin interfaceEventListener- Parameters:
e- aIEventobject.
-
-