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 class
PollableSnmpInterface.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 void
delete()
deleteSnmpAgentConfig
getAgentConfig()
getAgentConfigPollContext
getContext()
getContextString
getCriteria()
getCriteriaSet<SnmpInterfaceStatus>
getDownValues()
getDownValuesint
getMaxInterfacePerPdu()
Getter for the fieldmaxInterfacePerPdu
.String
getName()
getNamePollableInterface
getParent()
getParentSchedule
getSchedule()
getScheduleCollection<OnmsSnmpInterface>
getSnmpinterfaces()
getSnmpinterfacesPollableSnmpInterfaceConfig
getSnmppollableconfig()
getSnmppollableconfigSet<SnmpInterfaceStatus>
getUpValues()
getUpValuesboolean
isReady()
isReadyvoid
run()
runvoid
schedule()
schedulevoid
setAgentConfig(SnmpAgentConfig config)
setAgentConfigvoid
setCriteria(String m_criteria)
setCriteriavoid
setDownValues(Set<SnmpInterfaceStatus> downValues)
setDownValuesvoid
setName(String name)
setNamevoid
setSchedule(Schedule schedule)
setSchedulevoid
setSnmpinterfaces(List<OnmsSnmpInterface> snmpinterfaces)
setSnmpinterfacesvoid
setSnmppollableconfig(PollableSnmpInterfaceConfig snmppollableconfig)
setSnmppollableconfigvoid
setUpValues(Set<SnmpInterfaceStatus> upValues)
setUpValues
-
-
-
Constructor Detail
-
PollableSnmpInterface
public PollableSnmpInterface(PollableInterface parent)
Constructor for PollableSnmpInterface.
- Parameters:
parent
- aPollableInterface
object.
-
-
Method Detail
-
getSnmpinterfaces
public Collection<OnmsSnmpInterface> getSnmpinterfaces()
getSnmpinterfaces
- Returns:
- a
Collection
object.
-
setSnmpinterfaces
public void setSnmpinterfaces(List<OnmsSnmpInterface> snmpinterfaces)
setSnmpinterfaces
- Parameters:
snmpinterfaces
- aList
object.
-
setSchedule
public void setSchedule(Schedule schedule)
setSchedule
- Parameters:
schedule
- aSchedule
object.
-
getSnmppollableconfig
public PollableSnmpInterfaceConfig getSnmppollableconfig()
getSnmppollableconfig
- Returns:
- a
PollableSnmpInterfaceConfig
object.
-
setSnmppollableconfig
public void setSnmppollableconfig(PollableSnmpInterfaceConfig snmppollableconfig)
setSnmppollableconfig
- Parameters:
snmppollableconfig
- aPollableSnmpInterfaceConfig
object.
-
getParent
public PollableInterface getParent()
getParent
- Returns:
- a
PollableInterface
object.
-
getContext
public PollContext getContext()
getContext
- Returns:
- a
PollContext
object.
-
isReady
public boolean isReady()
isReady
- Specified by:
isReady
in interfaceReadyRunnable
- Returns:
- a boolean.
-
schedule
public void schedule()
schedule
-
delete
protected void delete()
delete
-
getAgentConfig
public SnmpAgentConfig getAgentConfig()
getAgentConfig
- Returns:
- a
SnmpAgentConfig
object.
-
setAgentConfig
public void setAgentConfig(SnmpAgentConfig config)
setAgentConfig
- Parameters:
config
- aSnmpAgentConfig
object.
-
setCriteria
public void setCriteria(String m_criteria)
setCriteria
- Parameters:
m_criteria
- aString
object.
-
getMaxInterfacePerPdu
public int getMaxInterfacePerPdu()
Getter for the field
maxInterfacePerPdu
.- Returns:
- a int.
-
getUpValues
public Set<SnmpInterfaceStatus> getUpValues()
getUpValues
- Returns:
- a
Set
object ofSnmpInterfaceStatus
objects.
-
setUpValues
public void setUpValues(Set<SnmpInterfaceStatus> upValues)
setUpValues
- Parameters:
upValues
- aSet
object ofSnmpInterfaceStatus
objects.
-
getDownValues
public Set<SnmpInterfaceStatus> getDownValues()
getDownValues
- Returns:
- a
Set
object ofSnmpInterfaceStatus
objects.
-
setDownValues
public void setDownValues(Set<SnmpInterfaceStatus> downValues)
setDownValues
- Parameters:
downValues
- aSet
object ofSnmpInterfaceStatus
objects.
-
-