org.opennms.netmgt.snmpinterfacepoller.pollable
Class PollableInterface

java.lang.Object
  extended by org.opennms.netmgt.snmpinterfacepoller.pollable.PollableInterface

public class PollableInterface
extends Object

Represents an SNMP PollableInterface

Version:
$Id: $
Author:
Antonio Russo

Constructor Summary
PollableInterface(PollableNetwork parent)
          Constructor for PollableInterface.
 
Method Summary
protected  void activate()
          activate
 PollableSnmpInterface createPollableSnmpInterface(String name, String criteria, boolean hasPort, int port, boolean hasTimeout, int timeout, boolean hasRetries, int retries, boolean hasMaxVarsPerPdu, int maxVarsPerPdu)
          createPollableSnmpInterface
protected  void delete()
          delete
 PollContext getContext()
          getContext
 String getIpaddress()
          getIpaddress
 int getNodeid()
          getNodeid
 String getPackageName()
          getPackageName
 PollableNetwork getParent()
          getParent
 HashMap<String,PollableSnmpInterface> getSnmpinterfacepollableNodes()
          getSnmpinterfacepollableNodes
protected  void initialize()
           Initialize the service monitor.
 boolean polling()
          polling
protected  void refresh()
          refresh
 void setIpaddress(String ipaddress)
          setIpaddress
 void setNodeid(int nodeid)
          setNodeid
 void setPackageName(String packageName)
          setPackageName
 void setParent(PollableNetwork parent)
          setParent
protected  void suspend()
          suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollableInterface

public PollableInterface(PollableNetwork parent)

Constructor for PollableInterface.

Parameters:
parent - a PollableNetwork object.
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.

getIpaddress

public String getIpaddress()

getIpaddress

Returns:
a String object.

setIpaddress

public void setIpaddress(String ipaddress)

setIpaddress

Parameters:
ipaddress - a String object.

createPollableSnmpInterface

public PollableSnmpInterface createPollableSnmpInterface(String name,
                                                         String criteria,
                                                         boolean hasPort,
                                                         int port,
                                                         boolean hasTimeout,
                                                         int timeout,
                                                         boolean hasRetries,
                                                         int retries,
                                                         boolean hasMaxVarsPerPdu,
                                                         int maxVarsPerPdu)

createPollableSnmpInterface

Parameters:
name - a String object.
criteria - a String 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 HashMap<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 - a PollableNetwork object.

getContext

public PollContext getContext()

getContext

Returns:
a PollContext object.

getPackageName

public String getPackageName()

getPackageName

Returns:
a String object.

setPackageName

public void setPackageName(String packageName)

setPackageName

Parameters:
packageName - a String object.


Copyright © 2011. All Rights Reserved.