Class ImportOperationsManager
- java.lang.Object
-
- org.opennms.netmgt.provision.service.operations.ImportOperationsManager
-
public class ImportOperationsManager extends Object
This class tracks nodes that need to be deleted, inserted, or updated during provisioning import operations.- Author:
- david
-
-
Constructor Summary
Constructors Constructor Description ImportOperationsManager(Map<String,Integer> foreignIdToNodeMap, ProvisionService provisionService, String rescanExisting)
Constructor for ImportOperationsManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
auditNodes(Requisition requisition)
auditNodesSaveOrUpdateOperation
foundNode(String foreignId, String nodeLabel, String location, String building, String city)
foundNodeint
getDeleteCount()
getDeleteCountString
getForeignSource()
getForeignSourceint
getInsertCount()
getInsertCountint
getOperationCount()
getOperationCountCollection<ImportOperation>
getOperations()
getOperationsString
getRescanExisting()
int
getUpdateCount()
getUpdateCountvoid
setForeignSource(String foreignSource)
setForeignSourcevoid
shutdownAndWaitForCompletion(ExecutorService executorService, String msg)
shutdownAndWaitForCompletion
-
-
-
Constructor Detail
-
ImportOperationsManager
public ImportOperationsManager(Map<String,Integer> foreignIdToNodeMap, ProvisionService provisionService, String rescanExisting)
Constructor for ImportOperationsManager.
- Parameters:
foreignIdToNodeMap
- aMap
object.provisionService
- aProvisionService
object.rescanExisting
- TODO
-
-
Method Detail
-
foundNode
public SaveOrUpdateOperation foundNode(String foreignId, String nodeLabel, String location, String building, String city)
foundNode
-
getOperationCount
public int getOperationCount()
getOperationCount
- Returns:
- a int.
-
getInsertCount
public int getInsertCount()
getInsertCount
- Returns:
- a int.
-
getUpdateCount
public int getUpdateCount()
getUpdateCount
- Returns:
- a int.
-
getDeleteCount
public int getDeleteCount()
getDeleteCount
- Returns:
- a int.
-
shutdownAndWaitForCompletion
public void shutdownAndWaitForCompletion(ExecutorService executorService, String msg)
shutdownAndWaitForCompletion
- Parameters:
executorService
- aExecutorService
object.msg
- aString
object.
-
getOperations
public Collection<ImportOperation> getOperations()
getOperations
- Returns:
- a
Collection
object.
-
setForeignSource
public void setForeignSource(String foreignSource)
setForeignSource
- Parameters:
foreignSource
- aString
object.
-
getRescanExisting
public String getRescanExisting()
-
auditNodes
public void auditNodes(Requisition requisition)
auditNodes
- Parameters:
requisition
- aRequisition
object.
-
-