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 voidactivate(int nodeid)activatevoidactivate(String ipaddress)activatePollableInterfacecreate(int nodeid, String ipaddress, String netMask, String packageName)createvoiddelete(int nodeid)deletevoiddelete(String ipaddress)deletevoiddeleteAll()deleteAllPollContextgetContext()getContextStringgetIp(int nodeid)getIpbooleanhasPollableInterface(String ipaddr)hasPollableInterfacevoidrefresh(int nodeid)refreshvoidschedule(PollableSnmpInterface node, long interval, Scheduler scheduler)schedulevoidsetContext(PollContext context)setContextvoidsuspend(int nodeid)suspendvoidsuspend(String ipaddress)suspend
-
-
-
Constructor Detail
-
PollableNetwork
public PollableNetwork(PollContext context)
Constructor for PollableNetwork.
- Parameters:
context- aPollContextobject.
-
-
Method Detail
-
create
public PollableInterface create(int nodeid, String ipaddress, String netMask, String packageName)
create
- Parameters:
nodeid- a int.ipaddress- aStringobject.packageName- aStringobject.- Returns:
- a
PollableInterfaceobject.
-
schedule
public void schedule(PollableSnmpInterface node, long interval, Scheduler scheduler)
schedule
- Parameters:
node- aPollableSnmpInterfaceobject.criteria- aStringobject.interval- a long.scheduler- aSchedulerobject.
-
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- aStringobject.- Returns:
- a boolean.
-
getContext
public PollContext getContext()
getContext
- Returns:
- a
PollContextobject.
-
setContext
public void setContext(PollContext context)
setContext
- Parameters:
context- aPollContextobject.
-
-