|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.importer.operations.AbstractImportOperation
org.opennms.netmgt.importer.operations.AbstractSaveOrUpdateOperation
public abstract class AbstractSaveOrUpdateOperation
Abstract AbstractSaveOrUpdateOperation class.
| Constructor Summary | |
|---|---|
AbstractSaveOrUpdateOperation(Integer nodeId,
String foreignSource,
String foreignId,
String nodeLabel,
String building,
String city)
Constructor for AbstractSaveOrUpdateOperation. |
|
AbstractSaveOrUpdateOperation(String foreignSource,
String foreignId,
String nodeLabel,
String building,
String city)
Constructor for AbstractSaveOrUpdateOperation. |
|
| Method Summary | |
|---|---|
protected abstract List<Event> |
doPersist()
doPersist |
void |
foundAsset(String name,
String value)
foundAsset |
void |
foundCategory(String name)
foundCategory |
void |
foundInterface(String ipAddr,
Object descr,
InterfaceSnmpPrimaryType snmpPrimary,
boolean managed,
int status)
foundInterface |
void |
foundMonitoredService(String serviceName)
foundMonitoredService |
void |
gatherAdditionalData()
gatherAdditionalData |
CategoryDao |
getCategoryDao()
getCategoryDao |
protected DistPollerDao |
getDistPollerDao()
getDistPollerDao |
protected Map<String,OnmsIpInterface> |
getIpAddrToInterfaceMap(OnmsNode imported)
getIpAddrToInterfaceMap |
protected OnmsNode |
getNode()
getNode |
protected NodeDao |
getNodeDao()
getNodeDao |
protected boolean |
isSnmpDataForInterfacesUpToDate()
isSnmpDataForInterfacesUpToDate |
protected boolean |
isSnmpDataForNodeUpToDate()
isSnmpDataForNodeUpToDate |
protected ThreadCategory |
log()
log |
boolean |
nullSafeEquals(Object o1,
Object o2)
nullSafeEquals |
List<Event> |
persist()
persist |
void |
setCategoryCache(ThreadLocal<HashMap<String,OnmsCategory>> categoryCache)
setCategoryCache |
void |
setCategoryDao(CategoryDao categoryDao)
setCategoryDao |
void |
setDistPollerDao(DistPollerDao distPollerDao)
setDistPollerDao |
void |
setNodeDao(NodeDao nodeDao)
setNodeDao |
void |
setServiceTypeDao(ServiceTypeDao svcTypeDao)
setServiceTypeDao |
void |
setTypeCache(ThreadLocal<HashMap<String,OnmsServiceType>> typeCache)
setTypeCache |
protected void |
updateSnmpData()
updateSnmpData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSaveOrUpdateOperation(String foreignSource,
String foreignId,
String nodeLabel,
String building,
String city)
Constructor for AbstractSaveOrUpdateOperation.
foreignSource - a String object.foreignId - a String object.nodeLabel - a String object.building - a String object.city - a String object.
public AbstractSaveOrUpdateOperation(Integer nodeId,
String foreignSource,
String foreignId,
String nodeLabel,
String building,
String city)
Constructor for AbstractSaveOrUpdateOperation.
nodeId - a Integer object.foreignSource - a String object.foreignId - a String object.nodeLabel - a String object.building - a String object.city - a String object.| Method Detail |
|---|
public void foundInterface(String ipAddr,
Object descr,
InterfaceSnmpPrimaryType snmpPrimary,
boolean managed,
int status)
foundInterface
foundInterface in interface SaveOrUpdateOperationipAddr - a String object.descr - a Object object.snmpPrimary - a InterfaceSnmpPrimaryType object.managed - a boolean.status - a int.public void gatherAdditionalData()
gatherAdditionalData
gatherAdditionalData in interface ImportOperationpublic List<Event> persist()
persist
persist in interface ImportOperationList object.protected abstract List<Event> doPersist()
doPersist
List object.protected void updateSnmpData()
updateSnmpData
protected boolean isSnmpDataForNodeUpToDate()
isSnmpDataForNodeUpToDate
protected boolean isSnmpDataForInterfacesUpToDate()
isSnmpDataForInterfacesUpToDate
public void foundMonitoredService(String serviceName)
foundMonitoredService
foundMonitoredService in interface SaveOrUpdateOperationserviceName - a String object.public void foundCategory(String name)
foundCategory
foundCategory in interface SaveOrUpdateOperationname - a String object.
public void foundAsset(String name,
String value)
foundAsset
foundAsset in interface SaveOrUpdateOperationname - a String object.value - a String object.protected OnmsNode getNode()
getNode
OnmsNode object.protected NodeDao getNodeDao()
getNodeDao
NodeDao object.protected DistPollerDao getDistPollerDao()
getDistPollerDao
DistPollerDao object.protected Map<String,OnmsIpInterface> getIpAddrToInterfaceMap(OnmsNode imported)
getIpAddrToInterfaceMap
imported - a OnmsNode object.
Map object.public CategoryDao getCategoryDao()
getCategoryDao
CategoryDao object.public void setCategoryDao(CategoryDao categoryDao)
setCategoryDao
categoryDao - a CategoryDao object.public void setServiceTypeDao(ServiceTypeDao svcTypeDao)
setServiceTypeDao
svcTypeDao - a ServiceTypeDao object.public void setNodeDao(NodeDao nodeDao)
setNodeDao
nodeDao - a NodeDao object.public void setDistPollerDao(DistPollerDao distPollerDao)
setDistPollerDao
distPollerDao - a DistPollerDao object.public void setTypeCache(ThreadLocal<HashMap<String,OnmsServiceType>> typeCache)
setTypeCache
typeCache - a ThreadLocal object.public void setCategoryCache(ThreadLocal<HashMap<String,OnmsCategory>> categoryCache)
setCategoryCache
categoryCache - a ThreadLocal object.protected ThreadCategory log()
log
ThreadCategory object.
public boolean nullSafeEquals(Object o1,
Object o2)
nullSafeEquals
o1 - a Object object.o2 - a Object object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||