org.opennms.netmgt.snmpinterfacepoller.pollable
Interface PollContext

All Known Implementing Classes:
DefaultPollContext

public interface PollContext

Represents a PollContext

Version:
$Id: $
Author:
Antonio Russo, Mathew Brozowski, Antonio Russo, Mathew Brozowski

Method Summary
 Event createEvent(String uei, int nodeId, String address, Date date, OnmsSnmpInterface snmpinterface)
          createEvent
 List<OnmsSnmpInterface> get(int nodeId, String criteria)
          get
 String getServiceName()
          getServiceName
 void sendEvent(Event event)
          sendEvent
 void setServiceName(String serviceName)
          setServiceName
 void update(OnmsSnmpInterface snmpinteface)
          Update the OnmsSnmpInterface
 void updatePollStatus(int nodeId, String status)
          Update the pollstatus for OnmsSnmpInterfaces having nodeid nodeId
 void updatePollStatus(int nodeId, String criteria, String status)
          Update the pollstatus using the specified criteria for OnmsSnmpInterfaces having nodeid nodeId
 void updatePollStatus(String status)
          Update the pollstatus for OnmsSnmpInterfaces
 

Method Detail

getServiceName

String getServiceName()

getServiceName

Returns:
a String object.

setServiceName

void setServiceName(String serviceName)

setServiceName

Parameters:
serviceName - a String object.

sendEvent

void sendEvent(Event event)

sendEvent

Parameters:
event - the event to send

createEvent

Event createEvent(String uei,
                  int nodeId,
                  String address,
                  Date date,
                  OnmsSnmpInterface snmpinterface)

createEvent

Parameters:
uei - a String object.
nodeId - a int.
address - a String object.
date - a Date object.
snmpinterface - a OnmsSnmpInterface object.
Returns:
the event

get

List<OnmsSnmpInterface> get(int nodeId,
                            String criteria)

get

Parameters:
nodeId - a int.
criteria - a String object.
Returns:
The List of OnmsSnmpInterfaces to be polled

updatePollStatus

void updatePollStatus(int nodeId,
                      String criteria,
                      String status)
Update the pollstatus using the specified criteria for OnmsSnmpInterfaces having nodeid nodeId

Parameters:
nodeId - a int.
criteria - a String object.
status - a String object.

updatePollStatus

void updatePollStatus(int nodeId,
                      String status)
Update the pollstatus for OnmsSnmpInterfaces having nodeid nodeId

Parameters:
nodeId - a int.
status - a String object.

updatePollStatus

void updatePollStatus(String status)
Update the pollstatus for OnmsSnmpInterfaces

Parameters:
status - a String object.

update

void update(OnmsSnmpInterface snmpinteface)
Update the OnmsSnmpInterface

Parameters:
snmpinteface - a OnmsSnmpInterface object.


Copyright © 2011. All Rights Reserved.