Interface PollContext
-
- All Known Implementing Classes:
DefaultPollContext
public interface PollContext
Represents a PollContext- Version:
- $Id: $
- Author:
- Antonio Russo, Mathew Brozowski
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Event
createEvent(String uei, int nodeId, String address, String netMask, Date date, OnmsSnmpInterface snmpinterface)
createEventList<OnmsSnmpInterface>
get(int nodeId, String criteria)
getString
getLocation(Integer nodeId)
LocationAwareSnmpClient
getLocationAwareSnmpClient()
List<OnmsIpInterface>
getPollableNodes()
getPollableNodesList<OnmsIpInterface>
getPollableNodesByIp(String ipaddr)
getPollableNodesByIpString
getServiceName()
getServiceNamevoid
sendEvent(Event event)
sendEventvoid
setServiceName(String serviceName)
setServiceNamevoid
update(OnmsSnmpInterface snmpinteface)
Update the OnmsSnmpInterface
-
-
-
Method Detail
-
setServiceName
void setServiceName(String serviceName)
setServiceName
- Parameters:
serviceName
- aString
object.
-
sendEvent
void sendEvent(Event event)
sendEvent
- Parameters:
event
- the event to send
-
createEvent
Event createEvent(String uei, int nodeId, String address, String netMask, Date date, OnmsSnmpInterface snmpinterface)
createEvent
- Parameters:
uei
- aString
object.nodeId
- a int.address
- aString
object.netMask
- aString
object.date
- aDate
object.snmpinterface
- aOnmsSnmpInterface
object.- Returns:
- the event
-
get
List<OnmsSnmpInterface> get(int nodeId, String criteria)
get
- Parameters:
nodeId
- a int.criteria
- aString
object.- Returns:
- The List of OnmsSnmpInterfaces to be polled
-
getPollableNodesByIp
List<OnmsIpInterface> getPollableNodesByIp(String ipaddr)
getPollableNodesByIp
- Parameters:
ipaddr
- the ip address of the node.- Returns:
- The List of OnmsIpInterfaces to be polled
-
getPollableNodes
List<OnmsIpInterface> getPollableNodes()
getPollableNodes
- Returns:
- The List of OnmsIpInterfaces to be polled
-
update
void update(OnmsSnmpInterface snmpinteface)
Update the OnmsSnmpInterface- Parameters:
snmpinteface
- aOnmsSnmpInterface
object.
-
getLocationAwareSnmpClient
LocationAwareSnmpClient getLocationAwareSnmpClient()
-
-