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 java.lang.String
DEFAULT_SELECT_METHOD
Default primary interface select method.static int
MAX_NODE_LABEL_LENGTH
Maximum length for node labelstatic java.lang.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 java.lang.String
SELECT_METHOD_MAX
Primary interface selection method MAX.static java.lang.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)
java.lang.String
getLabel()
OnmsNode.NodeLabelSource
getSource()
NodeLabel
retrieveLabel(int nodeID)
java.lang.String
toString()
-
-
-
Field Detail
-
PROP_PRIMARY_INTERFACE_SELECT_METHOD
static final java.lang.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 java.lang.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 java.lang.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 java.lang.String DEFAULT_SELECT_METHOD
Default primary interface select method.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLabel
java.lang.String getLabel()
-
getSource
OnmsNode.NodeLabelSource getSource()
-
retrieveLabel
NodeLabel retrieveLabel(int nodeID) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
assignLabel
void assignLabel(int nodeID, NodeLabel nodeLabel) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
computeLabel
NodeLabel computeLabel(int nodeID) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
toString
java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-