Class PollableInterface
- java.lang.Object
-
- org.opennms.netmgt.snmpinterfacepoller.pollable.PollableInterface
-
public class PollableInterface extends java.lang.Object
Represents an SNMP PollableInterface- Version:
- $Id: $
- Author:
- Antonio Russo
-
-
Constructor Summary
Constructors Constructor Description PollableInterface(PollableNetwork parent)
Constructor for PollableInterface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate()
activatePollableSnmpInterface
createPollableSnmpInterface(java.lang.String location, java.lang.String name, java.lang.String criteria, boolean hasPort, int port, boolean hasTimeout, int timeout, boolean hasRetries, int retries, boolean hasMaxVarsPerPdu, int maxVarsPerPdu, int[] upValues, int[] downValues)
createPollableSnmpInterfaceprotected void
delete()
deletePollContext
getContext()
getContextjava.lang.String
getIpaddress()
getIpaddressjava.lang.String
getNetMask()
int
getNodeid()
getNodeidjava.lang.String
getPackageName()
getPackageNamePollableNetwork
getParent()
getParentjava.util.Map<java.lang.String,PollableSnmpInterface>
getSnmpinterfacepollableNodes()
getSnmpinterfacepollableNodesprotected void
initialize()
Initialize the service monitor.boolean
polling()
pollingprotected void
refresh()
refreshvoid
setIpaddress(java.lang.String ipaddress)
setIpaddressvoid
setNetMask(java.lang.String netMask)
void
setNodeid(int nodeid)
setNodeidvoid
setPackageName(java.lang.String packageName)
setPackageNamevoid
setParent(PollableNetwork parent)
setParentprotected void
suspend()
suspend
-
-
-
Constructor Detail
-
PollableInterface
public PollableInterface(PollableNetwork parent)
Constructor for PollableInterface.
- Parameters:
parent
- aPollableNetwork
object.
-
-
Method Detail
-
initialize
protected void initialize()
Initialize the service monitor.
- Throws:
java.lang.RuntimeException
- Thrown if an unrecoverable error occurs that prevents the plug-in from functioning.
-
getNodeid
public int getNodeid()
getNodeid
- Returns:
- a int.
-
setNodeid
public void setNodeid(int nodeid)
setNodeid
- Parameters:
nodeid
- a int.
-
getIpaddress
public java.lang.String getIpaddress()
getIpaddress
- Returns:
- a
String
object.
-
setIpaddress
public void setIpaddress(java.lang.String ipaddress)
setIpaddress
- Parameters:
ipaddress
- aString
object.
-
getNetMask
public java.lang.String getNetMask()
-
setNetMask
public void setNetMask(java.lang.String netMask)
-
createPollableSnmpInterface
public PollableSnmpInterface createPollableSnmpInterface(java.lang.String location, java.lang.String name, java.lang.String criteria, boolean hasPort, int port, boolean hasTimeout, int timeout, boolean hasRetries, int retries, boolean hasMaxVarsPerPdu, int maxVarsPerPdu, int[] upValues, int[] downValues)
createPollableSnmpInterface
- Parameters:
location
-name
- aString
object.criteria
- aString
object.hasPort
- a boolean.port
- a int.hasTimeout
- a boolean.timeout
- a int.hasRetries
- a boolean.retries
- a int.hasMaxVarsPerPdu
- a boolean.maxVarsPerPdu
- a int.- Returns:
- a
PollableSnmpInterface
object.
-
refresh
protected void refresh()
refresh
-
suspend
protected void suspend()
suspend
-
activate
protected void activate()
activate
-
getSnmpinterfacepollableNodes
public java.util.Map<java.lang.String,PollableSnmpInterface> getSnmpinterfacepollableNodes()
getSnmpinterfacepollableNodes
- Returns:
- a
HashMap
object.
-
polling
public boolean polling()
polling
- Returns:
- a boolean.
-
delete
protected void delete()
delete
-
getParent
public PollableNetwork getParent()
getParent
- Returns:
- a
PollableNetwork
object.
-
setParent
public void setParent(PollableNetwork parent)
setParent
- Parameters:
parent
- aPollableNetwork
object.
-
getContext
public PollContext getContext()
getContext
- Returns:
- a
PollContext
object.
-
getPackageName
public java.lang.String getPackageName()
getPackageName
- Returns:
- a
String
object.
-
setPackageName
public void setPackageName(java.lang.String packageName)
setPackageName
- Parameters:
packageName
- aString
object.
-
-