|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.capsd.JdbcCapsdDbSyncer
public class JdbcCapsdDbSyncer
JdbcCapsdDbSyncer class.
| Nested Class Summary | |
|---|---|
protected static class |
JdbcCapsdDbSyncer.LightWeightIfEntry
LightWeightIfEntry is designed to hold specific information about an IP interface in the database such as its IP address, its parent node id, and its managed status and represents a lighter weight version of the DbIpInterfaceEntry class. |
| Field Summary | |
|---|---|
static String |
RETRIEVE_IPADDR_NODEID_SQL
The SQL statement used to determine if an IP address is already in the ipInterface table and if so what its parent nodeid is. |
static String |
RETRIEVE_IPADDR_SQL
The SQL statement used to determine if an IP address is already in the ipInterface table and there is known. |
| Constructor Summary | |
|---|---|
JdbcCapsdDbSyncer()
Constructor for JdbcCapsdDbSyncer. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
afterPropertiesSet |
CapsdConfig |
getCapsdConfig()
getCapsdConfig |
CollectdConfigFactory |
getCollectdConfig()
getCollectdConfig |
int |
getInterfaceDbNodeId(Connection dbConn,
InetAddress ifAddress,
int ifIndex)
getInterfaceDbNodeId |
String |
getNextSvcIdSql()
getNextSvcIdSql |
OpennmsServerConfigFactory |
getOpennmsServerConfig()
getOpennmsServerConfig |
PollerConfig |
getPollerConfig()
getPollerConfig |
Integer |
getServiceId(String name)
Returns the service ID from the service table that was loaded during class initialization for the specified name. |
String |
getServiceName(Integer id)
Returns the service name from the service table that was loaded during class initialization for the specified ID. |
boolean |
isInterfaceInDB(Connection dbConn,
InetAddress ifAddress)
isInterfaceInDB |
boolean |
isInterfaceInDB(InetAddress ifAddress)
isInterfaceInDB |
void |
setCapsdConfig(CapsdConfig capsdConfig)
setCapsdConfig |
void |
setCollectdConfig(CollectdConfigFactory collectdConfigFactory)
setCollectdConfig |
void |
setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
setJdbcTemplate |
void |
setNextSvcIdSql(String nextSvcIdSql)
setNextSvcIdSql |
void |
setOpennmsServerConfig(OpennmsServerConfigFactory serverConfigFactory)
setOpennmsServerConfig |
void |
setPollerConfig(PollerConfig pollerConfig)
setPollerConfig |
void |
syncManagementState()
syncManagementState |
void |
syncManagementState(Connection conn)
syncManagementState |
void |
syncServices()
syncServices |
void |
syncServices(Connection conn)
syncServices |
List<String> |
syncServicesTable()
syncServicesTable |
List<String> |
syncServicesTable(Connection conn)
syncServicesTable |
void |
syncSnmpPrimaryState()
syncSnmpPrimaryState |
void |
syncSnmpPrimaryState(Connection conn)
syncSnmpPrimaryState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RETRIEVE_IPADDR_NODEID_SQL
public static final String RETRIEVE_IPADDR_SQL
| Constructor Detail |
|---|
public JdbcCapsdDbSyncer()
Constructor for JdbcCapsdDbSyncer.
| Method Detail |
|---|
public Integer getServiceId(String name)
getServiceId in interface CapsdDbSyncername - the name of the service to look up
public String getServiceName(Integer id)
getServiceName in interface CapsdDbSyncerid - a Integer object.
public void syncServices()
syncServices
syncServices in interface CapsdDbSyncer
public void syncServices(Connection conn)
throws SQLException
syncServices
conn - a Connection object.
SQLException - if any.public List<String> syncServicesTable()
syncServicesTable
syncServicesTable in interface CapsdDbSyncerList object.
public List<String> syncServicesTable(Connection conn)
throws SQLException
syncServicesTable
conn - a Connection object.
List object.
SQLException - if any.public void syncManagementState()
syncManagementState
syncManagementState in interface CapsdDbSyncer
public void syncManagementState(Connection conn)
throws SQLException
syncManagementState
conn - a Connection object.
SQLException - if any.public void syncSnmpPrimaryState()
syncSnmpPrimaryState
syncSnmpPrimaryState in interface CapsdDbSyncer
public void syncSnmpPrimaryState(Connection conn)
throws SQLException
syncSnmpPrimaryState
conn - a Connection object.
SQLException - if any.public CapsdConfig getCapsdConfig()
getCapsdConfig
CapsdConfig object.public void setCapsdConfig(CapsdConfig capsdConfig)
setCapsdConfig
capsdConfig - a CapsdConfig object.public OpennmsServerConfigFactory getOpennmsServerConfig()
getOpennmsServerConfig
OpennmsServerConfigFactory object.public void setOpennmsServerConfig(OpennmsServerConfigFactory serverConfigFactory)
setOpennmsServerConfig
serverConfigFactory - a OpennmsServerConfigFactory object.public PollerConfig getPollerConfig()
getPollerConfig
PollerConfig object.public void setPollerConfig(PollerConfig pollerConfig)
setPollerConfig
pollerConfig - a PollerConfig object.public CollectdConfigFactory getCollectdConfig()
getCollectdConfig
CollectdConfigFactory object.public void setCollectdConfig(CollectdConfigFactory collectdConfigFactory)
setCollectdConfig
collectdConfigFactory - a CollectdConfigFactory object.public void afterPropertiesSet()
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
public int getInterfaceDbNodeId(Connection dbConn,
InetAddress ifAddress,
int ifIndex)
throws SQLException
getInterfaceDbNodeId
dbConn - a Connection object.ifAddress - a InetAddress object.ifIndex - a int.
SQLException - if any.public boolean isInterfaceInDB(InetAddress ifAddress)
isInterfaceInDB
isInterfaceInDB in interface CapsdDbSyncerifAddress - a InetAddress object.
public boolean isInterfaceInDB(Connection dbConn,
InetAddress ifAddress)
throws SQLException
isInterfaceInDB
isInterfaceInDB in interface CapsdDbSyncerdbConn - a Connection object.ifAddress - a InetAddress object.
SQLException - if any.public void setNextSvcIdSql(String nextSvcIdSql)
setNextSvcIdSql
nextSvcIdSql - a String object.public String getNextSvcIdSql()
getNextSvcIdSql
String object.public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
setJdbcTemplate
jdbcTemplate - a JdbcTemplate object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||