|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.poller.scheduler.utils.PollerInterface
This class represents a BlueBird interface and operations that can be made on them.
Inner Class Summary | |
private class |
PollerInterface.Service
|
Field Summary | |
private static int |
DAY_MULTIPLIER
|
private static char |
DAYS
|
private static int |
HOUR_MULTIPLIER
|
private static char |
HOURS
|
private String |
m_address
The ip address of the interface |
private DBConnection |
m_connection
|
private String |
m_managedStatus
Indicates if the interface is managed or not |
private PollerPackage |
m_package
The list of packages that this interface is a member of |
private int |
m_packageIndex
This is the index into the list that the scheduler has. |
private HashMap |
m_services
The list of services that this interface supports |
static String |
MANAGED
|
private static int |
MINUTE_MULTIPLIER
|
private static char |
MINUTES
|
static String |
NOT_MANAGED
|
private static int |
SECOND_MULTIPLIER
|
private static char |
SECONDS
|
Constructor Summary | |
PollerInterface(String anAddress,
PollerPackage aPackage,
int aPackageIndex)
Constructor, sets the ip address |
Method Summary | |
String |
getAddress()
This method returns the ip address |
private int |
getDownIntervalSeconds(String aServiceName,
Calendar lastUp)
|
String |
getManaged()
This method returns the managed status of the interface |
private String |
getManagedStatus(DBConnection aConnection,
String anAddress)
|
Integer |
getNewInterval(String aServiceName,
int aStatus)
|
PollerNode |
getNode()
This method returns the PollerNode associated with this interface |
PollerPackage |
getPackage()
|
int |
getPackageIndex()
|
int |
getServiceLastKnownStatus(String aServiceName)
|
private HashMap |
getServices(DBConnection aConnection,
String anAddress)
|
private int |
getUpIntervalSeconds(String aServiceName)
|
boolean |
supportsService(String aService)
|
String |
toString()
This method returns a string representation of the PollerInterface |
void |
updateStatus(String aServiceName,
int aStatus)
|
Methods inherited from class java.lang.Object |
|
Field Detail |
private String m_address
private HashMap m_services
private String m_managedStatus
private PollerPackage m_package
private int m_packageIndex
private DBConnection m_connection
public static final String MANAGED
public static final String NOT_MANAGED
private static final char SECONDS
private static final char MINUTES
private static final char HOURS
private static final char DAYS
private static final int SECOND_MULTIPLIER
private static final int MINUTE_MULTIPLIER
private static final int HOUR_MULTIPLIER
private static final int DAY_MULTIPLIER
Constructor Detail |
public PollerInterface(String anAddress, PollerPackage aPackage, int aPackageIndex) throws SQLException, DBOpenFailureException
Integer
- anAddress, the ip address of the interfaceMethod Detail |
public void updateStatus(String aServiceName, int aStatus)
private int getUpIntervalSeconds(String aServiceName)
private int getDownIntervalSeconds(String aServiceName, Calendar lastUp)
public Integer getNewInterval(String aServiceName, int aStatus)
public int getServiceLastKnownStatus(String aServiceName)
public PollerPackage getPackage()
public int getPackageIndex()
private HashMap getServices(DBConnection aConnection, String anAddress) throws SQLException
private String getManagedStatus(DBConnection aConnection, String anAddress) throws SQLException
public String getManaged()
public String getAddress()
public PollerNode getNode()
public boolean supportsService(String aService)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |