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(java.lang.String uei, int nodeId, java.lang.String address, java.lang.String netMask, java.util.Date date, OnmsSnmpInterface snmpinterface)
createEventjava.util.List<OnmsSnmpInterface>
get(int nodeId, java.lang.String criteria)
getjava.lang.String
getLocation(java.lang.Integer nodeId)
LocationAwareSnmpClient
getLocationAwareSnmpClient()
java.util.List<OnmsIpInterface>
getPollableNodes()
getPollableNodesjava.util.List<OnmsIpInterface>
getPollableNodesByIp(java.lang.String ipaddr)
getPollableNodesByIpjava.lang.String
getServiceName()
getServiceNamevoid
sendEvent(Event event)
sendEventvoid
setServiceName(java.lang.String serviceName)
setServiceNamevoid
update(OnmsSnmpInterface snmpinteface)
Update the OnmsSnmpInterface
-
-
-
Method Detail
-
getServiceName
java.lang.String getServiceName()
getServiceName
- Returns:
- a
String
object.
-
setServiceName
void setServiceName(java.lang.String serviceName)
setServiceName
- Parameters:
serviceName
- aString
object.
-
sendEvent
void sendEvent(Event event)
sendEvent
- Parameters:
event
- the event to send
-
createEvent
Event createEvent(java.lang.String uei, int nodeId, java.lang.String address, java.lang.String netMask, java.util.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
java.util.List<OnmsSnmpInterface> get(int nodeId, java.lang.String criteria)
get
- Parameters:
nodeId
- a int.criteria
- aString
object.- Returns:
- The List of OnmsSnmpInterfaces to be polled
-
getPollableNodesByIp
java.util.List<OnmsIpInterface> getPollableNodesByIp(java.lang.String ipaddr)
getPollableNodesByIp
- Parameters:
ipaddr
- the ip address of the node.- Returns:
- The List of OnmsIpInterfaces to be polled
-
getPollableNodes
java.util.List<OnmsIpInterface> getPollableNodes()
getPollableNodes
- Returns:
- The List of OnmsIpInterfaces to be polled
-
update
void update(OnmsSnmpInterface snmpinteface)
Update the OnmsSnmpInterface- Parameters:
snmpinteface
- aOnmsSnmpInterface
object.
-
getLocation
java.lang.String getLocation(java.lang.Integer nodeId)
-
getLocationAwareSnmpClient
LocationAwareSnmpClient getLocationAwareSnmpClient()
-
-