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 StringDEFAULT_SELECT_METHODDefault primary interface select method.static intMAX_NODE_LABEL_LENGTHMaximum length for node labelstatic StringPROP_PRIMARY_INTERFACE_SELECT_METHODThe property string in the properties file which specifies the method to use for determining which interface is primary on a multi-interface box.static StringSELECT_METHOD_MAXPrimary interface selection method MAX.static StringSELECT_METHOD_MINPrimary interface selection method MIN.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidassignLabel(int nodeID, NodeLabel nodeLabel)NodeLabelcomputeLabel(int nodeID)StringgetLabel()OnmsNode.NodeLabelSourcegetSource()NodeLabelretrieveLabel(int nodeID)StringtoString()
-
-
-
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
-
-