Class PollableNetwork
- java.lang.Object
-
- org.opennms.netmgt.snmpinterfacepoller.pollable.PollableNetwork
-
public class PollableNetwork extends Object
Represents an SNMP PollableNetwork- Version:
- $Id: $
- Author:
- Antonio Russo
-
-
Constructor Summary
Constructors Constructor Description PollableNetwork(PollContext context)
Constructor for PollableNetwork.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(int nodeid)
activatevoid
activate(String ipaddress)
activatePollableInterface
create(int nodeid, String ipaddress, String netMask, String packageName)
createvoid
delete(int nodeid)
deletevoid
delete(String ipaddress)
deletevoid
deleteAll()
deleteAllPollContext
getContext()
getContextString
getIp(int nodeid)
getIpboolean
hasPollableInterface(String ipaddr)
hasPollableInterfacevoid
refresh(int nodeid)
refreshvoid
schedule(PollableSnmpInterface node, long interval, Scheduler scheduler)
schedulevoid
setContext(PollContext context)
setContextvoid
suspend(int nodeid)
suspendvoid
suspend(String ipaddress)
suspend
-
-
-
Constructor Detail
-
PollableNetwork
public PollableNetwork(PollContext context)
Constructor for PollableNetwork.
- Parameters:
context
- aPollContext
object.
-
-
Method Detail
-
create
public PollableInterface create(int nodeid, String ipaddress, String netMask, String packageName)
create
- Parameters:
nodeid
- a int.ipaddress
- aString
object.packageName
- aString
object.- Returns:
- a
PollableInterface
object.
-
schedule
public void schedule(PollableSnmpInterface node, long interval, Scheduler scheduler)
schedule
- Parameters:
node
- aPollableSnmpInterface
object.criteria
- aString
object.interval
- a long.scheduler
- aScheduler
object.
-
deleteAll
public void deleteAll()
deleteAll
-
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(int nodeid)
suspend
- Parameters:
nodeid
- a int.
-
activate
public void activate(int nodeid)
activate
- Parameters:
nodeid
- a int.
-
hasPollableInterface
public boolean hasPollableInterface(String ipaddr)
hasPollableInterface
- Parameters:
ipaddr
- aString
object.- Returns:
- a boolean.
-
getContext
public PollContext getContext()
getContext
- Returns:
- a
PollContext
object.
-
setContext
public void setContext(PollContext context)
setContext
- Parameters:
context
- aPollContext
object.
-
-