Package org.opennms.netmgt.dao.api
Interface NodeLabel
-
- All Known Implementing Classes:
NodeLabelDaoImpl
,NodeLabelJDBCImpl
public interface NodeLabel
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SELECT_METHOD
Default primary interface select method.static int
MAX_NODE_LABEL_LENGTH
Maximum length for node labelstatic String
PROP_PRIMARY_INTERFACE_SELECT_METHOD
The property string in the properties file which specifies the method to use for determining which interface is primary on a multi-interface box.static String
SELECT_METHOD_MAX
Primary interface selection method MAX.static String
SELECT_METHOD_MIN
Primary interface selection method MIN.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
assignLabel(int nodeID, NodeLabel nodeLabel)
NodeLabel
computeLabel(int nodeID)
String
getLabel()
OnmsNode.NodeLabelSource
getSource()
NodeLabel
retrieveLabel(int nodeID)
String
toString()
-
-
-
Field Detail
-
PROP_PRIMARY_INTERFACE_SELECT_METHOD
static final String PROP_PRIMARY_INTERFACE_SELECT_METHOD
The property string in the properties file which specifies the method to use for determining which interface is primary on a multi-interface box.- See Also:
- Constant Field Values
-
MAX_NODE_LABEL_LENGTH
static final int MAX_NODE_LABEL_LENGTH
Maximum length for node label- See Also:
- Constant Field Values
-
SELECT_METHOD_MIN
static final String SELECT_METHOD_MIN
Primary interface selection method MIN. Using this selection method the interface with the smallest numeric IP address is considered the primary interface.- See Also:
- Constant Field Values
-
SELECT_METHOD_MAX
static final String SELECT_METHOD_MAX
Primary interface selection method MAX. Using this selection method the interface with the greatest numeric IP address is considered the primary interface.- See Also:
- Constant Field Values
-
DEFAULT_SELECT_METHOD
static final String DEFAULT_SELECT_METHOD
Default primary interface select method.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLabel
String getLabel()
-
getSource
OnmsNode.NodeLabelSource getSource()
-
retrieveLabel
NodeLabel retrieveLabel(int nodeID) throws SQLException
- Throws:
SQLException
-
assignLabel
void assignLabel(int nodeID, NodeLabel nodeLabel) throws SQLException
- Throws:
SQLException
-
computeLabel
NodeLabel computeLabel(int nodeID) throws SQLException
- Throws:
SQLException
-
-