Class PollableInterface
- java.lang.Object
-
- org.opennms.netmgt.snmpinterfacepoller.pollable.PollableInterface
-
public class PollableInterface extends 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 voidactivate()activatePollableSnmpInterfacecreatePollableSnmpInterface(String location, String name, String criteria, boolean hasPort, int port, boolean hasTimeout, int timeout, boolean hasRetries, int retries, boolean hasMaxVarsPerPdu, int maxVarsPerPdu, int[] upValues, int[] downValues)createPollableSnmpInterfaceprotected voiddelete()deletePollContextgetContext()getContextStringgetIpaddress()getIpaddressStringgetNetMask()intgetNodeid()getNodeidStringgetPackageName()getPackageNamePollableNetworkgetParent()getParentMap<String,PollableSnmpInterface>getSnmpinterfacepollableNodes()getSnmpinterfacepollableNodesprotected voidinitialize()Initialize the service monitor.booleanpolling()pollingprotected voidrefresh()refreshvoidsetIpaddress(String ipaddress)setIpaddressvoidsetNetMask(String netMask)voidsetNodeid(int nodeid)setNodeidvoidsetPackageName(String packageName)setPackageNamevoidsetParent(PollableNetwork parent)setParentprotected voidsuspend()suspend
-
-
-
Constructor Detail
-
PollableInterface
public PollableInterface(PollableNetwork parent)
Constructor for PollableInterface.
- Parameters:
parent- aPollableNetworkobject.
-
-
Method Detail
-
initialize
protected void initialize()
Initialize the service monitor.
- Throws:
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.
-
setIpaddress
public void setIpaddress(String ipaddress)
setIpaddress
- Parameters:
ipaddress- aStringobject.
-
getNetMask
public String getNetMask()
-
setNetMask
public void setNetMask(String netMask)
-
createPollableSnmpInterface
public PollableSnmpInterface createPollableSnmpInterface(String location, String name, 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- aStringobject.criteria- aStringobject.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
PollableSnmpInterfaceobject.
-
refresh
protected void refresh()
refresh
-
suspend
protected void suspend()
suspend
-
activate
protected void activate()
activate
-
getSnmpinterfacepollableNodes
public Map<String,PollableSnmpInterface> getSnmpinterfacepollableNodes()
getSnmpinterfacepollableNodes
- Returns:
- a
HashMapobject.
-
polling
public boolean polling()
polling
- Returns:
- a boolean.
-
delete
protected void delete()
delete
-
getParent
public PollableNetwork getParent()
getParent
- Returns:
- a
PollableNetworkobject.
-
setParent
public void setParent(PollableNetwork parent)
setParent
- Parameters:
parent- aPollableNetworkobject.
-
getContext
public PollContext getContext()
getContext
- Returns:
- a
PollContextobject.
-
-