Class PollableSnmpInterface
- java.lang.Object
-
- org.opennms.netmgt.snmpinterfacepoller.pollable.PollableSnmpInterface
-
- All Implemented Interfaces:
Runnable,ReadyRunnable
public class PollableSnmpInterface extends Object implements ReadyRunnable
Represents a PollableSnmpInterface- Version:
- $Id: $
- Author:
- Antonio Russo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPollableSnmpInterface.SnmpMinimalPollInterface
-
Constructor Summary
Constructors Constructor Description PollableSnmpInterface(PollableInterface parent)Constructor for PollableSnmpInterface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddelete()deleteSnmpAgentConfiggetAgentConfig()getAgentConfigPollContextgetContext()getContextStringgetCriteria()getCriteriaSet<SnmpInterfaceStatus>getDownValues()getDownValuesintgetMaxInterfacePerPdu()Getter for the fieldmaxInterfacePerPdu.StringgetName()getNamePollableInterfacegetParent()getParentSchedulegetSchedule()getScheduleCollection<OnmsSnmpInterface>getSnmpinterfaces()getSnmpinterfacesPollableSnmpInterfaceConfiggetSnmppollableconfig()getSnmppollableconfigSet<SnmpInterfaceStatus>getUpValues()getUpValuesbooleanisReady()isReadyvoidrun()runvoidschedule()schedulevoidsetAgentConfig(SnmpAgentConfig config)setAgentConfigvoidsetCriteria(String m_criteria)setCriteriavoidsetDownValues(Set<SnmpInterfaceStatus> downValues)setDownValuesvoidsetName(String name)setNamevoidsetSchedule(Schedule schedule)setSchedulevoidsetSnmpinterfaces(List<OnmsSnmpInterface> snmpinterfaces)setSnmpinterfacesvoidsetSnmppollableconfig(PollableSnmpInterfaceConfig snmppollableconfig)setSnmppollableconfigvoidsetUpValues(Set<SnmpInterfaceStatus> upValues)setUpValues
-
-
-
Constructor Detail
-
PollableSnmpInterface
public PollableSnmpInterface(PollableInterface parent)
Constructor for PollableSnmpInterface.
- Parameters:
parent- aPollableInterfaceobject.
-
-
Method Detail
-
getSnmpinterfaces
public Collection<OnmsSnmpInterface> getSnmpinterfaces()
getSnmpinterfaces
- Returns:
- a
Collectionobject.
-
setSnmpinterfaces
public void setSnmpinterfaces(List<OnmsSnmpInterface> snmpinterfaces)
setSnmpinterfaces
- Parameters:
snmpinterfaces- aListobject.
-
setSchedule
public void setSchedule(Schedule schedule)
setSchedule
- Parameters:
schedule- aScheduleobject.
-
getSnmppollableconfig
public PollableSnmpInterfaceConfig getSnmppollableconfig()
getSnmppollableconfig
- Returns:
- a
PollableSnmpInterfaceConfigobject.
-
setSnmppollableconfig
public void setSnmppollableconfig(PollableSnmpInterfaceConfig snmppollableconfig)
setSnmppollableconfig
- Parameters:
snmppollableconfig- aPollableSnmpInterfaceConfigobject.
-
getParent
public PollableInterface getParent()
getParent
- Returns:
- a
PollableInterfaceobject.
-
getContext
public PollContext getContext()
getContext
- Returns:
- a
PollContextobject.
-
isReady
public boolean isReady()
isReady
- Specified by:
isReadyin interfaceReadyRunnable- Returns:
- a boolean.
-
schedule
public void schedule()
schedule
-
delete
protected void delete()
delete
-
getAgentConfig
public SnmpAgentConfig getAgentConfig()
getAgentConfig
- Returns:
- a
SnmpAgentConfigobject.
-
setAgentConfig
public void setAgentConfig(SnmpAgentConfig config)
setAgentConfig
- Parameters:
config- aSnmpAgentConfigobject.
-
setCriteria
public void setCriteria(String m_criteria)
setCriteria
- Parameters:
m_criteria- aStringobject.
-
getMaxInterfacePerPdu
public int getMaxInterfacePerPdu()
Getter for the field
maxInterfacePerPdu.- Returns:
- a int.
-
getUpValues
public Set<SnmpInterfaceStatus> getUpValues()
getUpValues
- Returns:
- a
Setobject ofSnmpInterfaceStatusobjects.
-
setUpValues
public void setUpValues(Set<SnmpInterfaceStatus> upValues)
setUpValues
- Parameters:
upValues- aSetobject ofSnmpInterfaceStatusobjects.
-
getDownValues
public Set<SnmpInterfaceStatus> getDownValues()
getDownValues
- Returns:
- a
Setobject ofSnmpInterfaceStatusobjects.
-
setDownValues
public void setDownValues(Set<SnmpInterfaceStatus> downValues)
setDownValues
- Parameters:
downValues- aSetobject ofSnmpInterfaceStatusobjects.
-
-