public class AssetGraphMLProvider extends Object implements EventListener
| Modifier and Type | Field and Description | 
|---|---|
static String | 
CREATE_ASSET_TOPOLOGY  | 
static String | 
REGENERATE_ALL_ASSET_TOPOLOGIES  | 
static String | 
REGENERATE_ASSET_TOPOLOGY  | 
static String | 
REMOVE_ASSET_TOPOLOGY  | 
| Constructor and Description | 
|---|
AssetGraphMLProvider(GraphmlRepository repository,
                    EventIpcManager eventIpcManager,
                    NodeProvider nodeProvider,
                    org.springframework.transaction.support.TransactionOperations transactionOperations,
                    AssetGraphDefinitionRepositoryImpl assetGraphDefinitionRepository)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
createAssetTopology(GeneratorConfig config)
Generates and installs a new AssetTopology defined by the config 
 | 
void | 
destroy()  | 
String | 
getName()
Return the id of the listener 
 | 
void | 
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 regenerated 
 | 
void | 
regenerateAssetTopology(String providerId)
Regenerates the AssetTopology defined by the providerId 
 | 
void | 
removeAssetTopology(String providerId)
Removes the AssetTopology defined by the config 
 | 
public static final String CREATE_ASSET_TOPOLOGY
public static final String REMOVE_ASSET_TOPOLOGY
public static final String REGENERATE_ASSET_TOPOLOGY
public static final String REGENERATE_ALL_ASSET_TOPOLOGIES
public AssetGraphMLProvider(GraphmlRepository repository, EventIpcManager eventIpcManager, NodeProvider nodeProvider, org.springframework.transaction.support.TransactionOperations transactionOperations, AssetGraphDefinitionRepositoryImpl assetGraphDefinitionRepository)
public void createAssetTopology(GeneratorConfig config)
config - public void removeAssetTopology(String providerId)
providerId - The providerId to delete.public void regenerateAssetTopology(String providerId)
providerId - The providerId to regenerate.public void regenerateAllAssetTopologies()
public void init()
public void destroy()
public String getName()
EventListenergetName in interface EventListenerString object.public void onEvent(IEvent e)
EventListeneronEvent in interface EventListenere - a IEvent object.Copyright © 2020. All rights reserved.