Class SaveOrUpdateOperation
- java.lang.Object
-
- org.opennms.netmgt.provision.service.operations.ImportOperation
-
- org.opennms.netmgt.provision.service.operations.SaveOrUpdateOperation
-
- Direct Known Subclasses:
InsertOperation
,UpdateOperation
public abstract class SaveOrUpdateOperation extends ImportOperation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.provision.service.operations.ImportOperation
ImportOperation.OperationType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SaveOrUpdateOperation(java.lang.Integer nodeId, java.lang.String foreignSource, java.lang.String foreignId, java.lang.String nodeLabel, java.lang.String location, java.lang.String building, java.lang.String city, ProvisionService provisionService, java.lang.String rescanExisting)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
foundAsset(java.lang.String name, java.lang.String value)
foundAssetvoid
foundCategory(java.lang.String name)
foundCategoryvoid
foundInterface(java.lang.String ipAddr, java.lang.Object descr, PrimaryType primaryType, boolean managed, int status)
foundInterfacevoid
foundInterfaceMetaData(java.lang.String context, java.lang.String key, java.lang.String value)
void
foundMonitoredService(java.lang.String serviceName)
foundMonitoredServicevoid
foundNodeMetaData(java.lang.String context, java.lang.String key, java.lang.String value)
void
foundServiceMetaData(java.lang.String context, java.lang.String key, java.lang.String value)
protected OnmsNode
getNode()
getNodeImportOperation.OperationType
getOperationType()
protected java.lang.String
getRescanExisting()
ScanManager
getScanManager()
getScanManagervoid
scan()
scanprotected void
updateSnmpData()
updateSnmpData-
Methods inherited from class org.opennms.netmgt.provision.service.operations.ImportOperation
doPersist, getProvisionService, persist
-
-
-
-
Constructor Detail
-
SaveOrUpdateOperation
protected SaveOrUpdateOperation(java.lang.Integer nodeId, java.lang.String foreignSource, java.lang.String foreignId, java.lang.String nodeLabel, java.lang.String location, java.lang.String building, java.lang.String city, ProvisionService provisionService, java.lang.String rescanExisting)
-
-
Method Detail
-
getScanManager
public ScanManager getScanManager()
getScanManager
- Returns:
- a
ScanManager
object.
-
foundInterface
public void foundInterface(java.lang.String ipAddr, java.lang.Object descr, PrimaryType primaryType, boolean managed, int status)
foundInterface
- Parameters:
ipAddr
- aString
object.descr
- aObject
object.primaryType
- aInterfaceSnmpPrimaryType
object.managed
- a boolean.status
- a int.
-
scan
public void scan()
scan
- Specified by:
scan
in classImportOperation
-
updateSnmpData
protected void updateSnmpData()
updateSnmpData
-
foundMonitoredService
public void foundMonitoredService(java.lang.String serviceName)
foundMonitoredService
- Parameters:
serviceName
- aString
object.
-
foundCategory
public void foundCategory(java.lang.String name)
foundCategory
- Parameters:
name
- aString
object.
-
getRescanExisting
protected java.lang.String getRescanExisting()
-
foundAsset
public void foundAsset(java.lang.String name, java.lang.String value)
foundAsset
- Parameters:
name
- aString
object.value
- aString
object.
-
foundNodeMetaData
public void foundNodeMetaData(java.lang.String context, java.lang.String key, java.lang.String value)
-
foundInterfaceMetaData
public void foundInterfaceMetaData(java.lang.String context, java.lang.String key, java.lang.String value)
-
foundServiceMetaData
public void foundServiceMetaData(java.lang.String context, java.lang.String key, java.lang.String value)
-
getOperationType
public ImportOperation.OperationType getOperationType()
- Specified by:
getOperationType
in classImportOperation
-
-