org.opennms.netmgt.snmpinterfacepoller.pollable
Class PollableNetwork

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

public class PollableNetwork
extends Object

Represents an SNMP PollableNetwork

Version:
$Id: $
Author:
Antonio Russo

Constructor Summary
PollableNetwork(PollContext context)
          Constructor for PollableNetwork.
 
Method Summary
 void activate(int nodeid)
          activate
 void activate(String ipaddress)
          activate
 PollableInterface create(int nodeid, String ipaddress, String packageName)
          create
 void delete(int nodeid)
          delete
 void delete(String ipaddress)
          delete
 void deleteAll()
          deleteAll
 PollContext getContext()
          getContext
 String getIp(int nodeid)
          getIp
 boolean hasPollableInterface(String ipaddr)
          hasPollableInterface
 void refresh(int nodeid)
          refresh
 void schedule(PollableSnmpInterface node, long interval, Scheduler scheduler)
          schedule
 void setContext(PollContext context)
          setContext
 void suspend(int nodeid)
          suspend
 void suspend(String ipaddress)
          suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollableNetwork

public PollableNetwork(PollContext context)

Constructor for PollableNetwork.

Parameters:
context - a PollContext object.
Method Detail

create

public PollableInterface create(int nodeid,
                                String ipaddress,
                                String packageName)

create

Parameters:
nodeid - a int.
ipaddress - a String object.
packageName - a String object.
Returns:
a PollableInterface object.

schedule

public void schedule(PollableSnmpInterface node,
                     long interval,
                     Scheduler scheduler)

schedule

Parameters:
node - a PollableSnmpInterface object.
criteria - a String object.
interval - a long.
scheduler - a Scheduler object.

deleteAll

public void deleteAll()

deleteAll


delete

public void delete(String ipaddress)

delete

Parameters:
ipaddress - a String object.

delete

public void delete(int nodeid)

delete

Parameters:
nodeid - a int.

refresh

public void refresh(int nodeid)

refresh

Parameters:
nodeid - a int.

suspend

public void suspend(String ipaddress)

suspend

Parameters:
ipaddress - a String object.

activate

public void activate(String ipaddress)

activate

Parameters:
ipaddress - a String object.

suspend

public void suspend(int nodeid)

suspend

Parameters:
nodeid - a int.

activate

public void activate(int nodeid)

activate

Parameters:
nodeid - a int.

getIp

public String getIp(int nodeid)

getIp

Parameters:
nodeid - a int.
Returns:
a String object.

hasPollableInterface

public boolean hasPollableInterface(String ipaddr)

hasPollableInterface

Parameters:
ipaddr - a String object.
Returns:
a boolean.

getContext

public PollContext getContext()

getContext

Returns:
a PollContext object.

setContext

public void setContext(PollContext context)

setContext

Parameters:
context - a PollContext object.


Copyright © 2011. All Rights Reserved.