Class PollableNetwork
- java.lang.Object
-
- org.opennms.netmgt.snmpinterfacepoller.pollable.PollableNetwork
-
public class PollableNetwork extends java.lang.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(java.lang.String ipaddress)
activatePollableInterface
create(int nodeid, java.lang.String ipaddress, java.lang.String netMask, java.lang.String packageName)
createvoid
delete(int nodeid)
deletevoid
delete(java.lang.String ipaddress)
deletevoid
deleteAll()
deleteAllPollContext
getContext()
getContextjava.lang.String
getIp(int nodeid)
getIpboolean
hasPollableInterface(java.lang.String ipaddr)
hasPollableInterfacevoid
refresh(int nodeid)
refreshvoid
schedule(PollableSnmpInterface node, long interval, Scheduler scheduler)
schedulevoid
setContext(PollContext context)
setContextvoid
suspend(int nodeid)
suspendvoid
suspend(java.lang.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, java.lang.String ipaddress, java.lang.String netMask, java.lang.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(java.lang.String ipaddress)
delete
- Parameters:
ipaddress
- aString
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(java.lang.String ipaddress)
suspend
- Parameters:
ipaddress
- aString
object.
-
activate
public void activate(java.lang.String ipaddress)
activate
- Parameters:
ipaddress
- aString
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 java.lang.String getIp(int nodeid)
getIp
- Parameters:
nodeid
- a int.- Returns:
- a
String
object.
-
hasPollableInterface
public boolean hasPollableInterface(java.lang.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.
-
-