|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.web.element.ElementUtil
public class ElementUtil
ElementUtil class.
| Field Summary | |
|---|---|
static int |
DEFAULT_TRUNCATE_THRESHOLD
Constant DEFAULT_TRUNCATE_THRESHOLD=28 |
| Method Summary | |
|---|---|
static Interface |
getInterfaceByParams(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
getInterfaceByParams |
static Interface |
getInterfaceByParams(javax.servlet.http.HttpServletRequest request,
String ipInterfaceIdParam,
String nodeIdParam,
String ipAddrParam,
String ifIndexParam,
javax.servlet.ServletContext servletContext)
getInterfaceByParams |
protected static Map<Character,String> |
getInterfaceStatusMap()
Returns the interface status map, initializing a new one if necessary. |
static String |
getInterfaceStatusString(char c)
Return the human-readable name for a interface status character, may be null. |
static String |
getInterfaceStatusString(Interface intf)
Return the human-readable name for a interface's status, may be null. |
static Node |
getNodeByParams(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
getNodeByParams |
static Node |
getNodeByParams(javax.servlet.http.HttpServletRequest request,
String nodeIdParam,
javax.servlet.ServletContext servletContext)
getNodeByParams |
protected static Map<Character,String> |
getNodeStatusMap()
Returns the interface status map, initializing a new one if necessary. |
static String |
getNodeStatusString(char c)
Return the human-readable name for a interface status character, may be null. |
static String |
getNodeStatusString(Node node)
Return the human-readable name for a node's status, may be null. |
static Service |
getServiceByParams(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
getServiceByParams |
static Service |
getServiceByParams(javax.servlet.http.HttpServletRequest request,
String ifServiceIdParam,
String nodeIdParam,
String ipAddrParam,
String serviceIdParam,
javax.servlet.ServletContext servletContext)
getServiceByParams |
static Service[] |
getServicesOnNodeByParams(javax.servlet.http.HttpServletRequest request,
int serviceId,
javax.servlet.ServletContext servletContext)
getServicesOnNodeByParams |
protected static Map<Character,String> |
getServiceStatusMap()
Returns the service status map, initializing a new one if necessary. |
static String |
getServiceStatusString(char c)
Return the human-readable name for a service status character, may be null. |
static String |
getServiceStatusString(Service svc)
Return the human-readable name for a service's status, may be null. |
static Interface |
getSnmpInterfaceByParams(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
Return interface from snmpinterface table given a servlet request. |
static Interface |
getSnmpInterfaceByParams(javax.servlet.http.HttpServletRequest request,
String nodeIdParam,
String ifIndexParam,
javax.servlet.ServletContext servletContext)
Return interface from snmpinterface table given a servlet request, nodeId param name and ifIndex param name. |
protected static Map<Character,String> |
getSnmpInterfaceStatusMap()
Returns the interface status map, initializing a new one if necessary. |
static String |
getSnmpInterfaceStatusString(char c)
Return the human-readable name for a interface status character, may be null. |
static String |
getSnmpInterfaceStatusString(Interface intf)
Return the human-readable name for a snmp interface's status, may be null. |
static boolean |
hasLocallyMonitoredServices(Service[] svcs)
hasLocallyMonitoredServices |
static boolean |
isRouteInfoNodeByParams(javax.servlet.http.HttpServletRequest request)
isRouteInfoNodeByParams |
static String |
truncateLabel(String label)
truncateLabel |
static String |
truncateLabel(String label,
int truncateThreshold)
truncateLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_TRUNCATE_THRESHOLD
DEFAULT_TRUNCATE_THRESHOLD=28
| Method Detail |
|---|
protected static Map<Character,String> getNodeStatusMap()
public static String getNodeStatusString(Node node)
node - a Node object.
String object.public static String getNodeStatusString(char c)
c - a char.
String object.protected static Map<Character,String> getInterfaceStatusMap()
protected static Map<Character,String> getSnmpInterfaceStatusMap()
public static String getInterfaceStatusString(Interface intf)
intf - a Interface object.
String object.public static String getInterfaceStatusString(char c)
c - a char.
String object.public static String getSnmpInterfaceStatusString(Interface intf)
intf - a Interface object.
String object.public static String getSnmpInterfaceStatusString(char c)
c - a char.
String object.protected static Map<Character,String> getServiceStatusMap()
public static String getServiceStatusString(Service svc)
svc - a Service object.
String object.public static String getServiceStatusString(char c)
c - a char.
String object.public static boolean hasLocallyMonitoredServices(Service[] svcs)
hasLocallyMonitoredServices
svcs - an array of Service objects.
public static String truncateLabel(String label)
truncateLabel
label - a String object.
String object.
public static String truncateLabel(String label,
int truncateThreshold)
truncateLabel
label - a String object.truncateThreshold - a int.
String object.
public static Node getNodeByParams(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException,
SQLException
getNodeByParams
request - a HttpServletRequest object.
Node object.
javax.servlet.ServletException - if any.
SQLException - if any.
public static Node getNodeByParams(javax.servlet.http.HttpServletRequest request,
String nodeIdParam,
javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException,
SQLException
getNodeByParams
request - a HttpServletRequest object.nodeIdParam - a String object.
Node object.
javax.servlet.ServletException - if any.
SQLException - if any.
public static Interface getInterfaceByParams(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException,
SQLException
getInterfaceByParams
request - a HttpServletRequest object.
Interface object.
javax.servlet.ServletException - if any.
SQLException - if any.
public static Interface getInterfaceByParams(javax.servlet.http.HttpServletRequest request,
String ipInterfaceIdParam,
String nodeIdParam,
String ipAddrParam,
String ifIndexParam,
javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException,
SQLException
getInterfaceByParams
request - a HttpServletRequest object.ipInterfaceIdParam - a String object.nodeIdParam - a String object.ipAddrParam - a String object.ifIndexParam - a String object.
Interface object.
javax.servlet.ServletException - if any.
SQLException - if any.
public static Interface getSnmpInterfaceByParams(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException,
SQLException
request - a HttpServletRequest object.
javax.servlet.ServletException, - SQLException
SQLException - if any.
javax.servlet.ServletException
public static Interface getSnmpInterfaceByParams(javax.servlet.http.HttpServletRequest request,
String nodeIdParam,
String ifIndexParam,
javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException,
SQLException
request - a HttpServletRequest object.nodeIdParam - a String object.ifIndexParam - a String object.
javax.servlet.ServletException, - SQLException
SQLException - if any.
javax.servlet.ServletException
public static Service getServiceByParams(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException,
SQLException
getServiceByParams
request - a HttpServletRequest object.
Service object.
javax.servlet.ServletException - if any.
SQLException - if any.
public static Service getServiceByParams(javax.servlet.http.HttpServletRequest request,
String ifServiceIdParam,
String nodeIdParam,
String ipAddrParam,
String serviceIdParam,
javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException,
SQLException
getServiceByParams
request - a HttpServletRequest object.ifServiceIdParam - a String object.nodeIdParam - a String object.ipAddrParam - a String object.serviceIdParam - a String object.
Service object.
javax.servlet.ServletException - if any.
SQLException - if any.
public static Service[] getServicesOnNodeByParams(javax.servlet.http.HttpServletRequest request,
int serviceId,
javax.servlet.ServletContext servletContext)
throws SQLException
getServicesOnNodeByParams
request - a HttpServletRequest object.serviceId - a int.
Service objects.
SQLException - if any.
public static boolean isRouteInfoNodeByParams(javax.servlet.http.HttpServletRequest request)
throws SQLException
isRouteInfoNodeByParams
request - a HttpServletRequest object.
SQLException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||