Class PollableSnmpInterface
- java.lang.Object
-
- org.opennms.netmgt.snmpinterfacepoller.pollable.PollableSnmpInterface
-
- All Implemented Interfaces:
java.lang.Runnable
,ReadyRunnable
public class PollableSnmpInterface extends java.lang.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()
getContextjava.lang.String
getCriteria()
getCriteriajava.util.Set<SnmpInterfaceStatus>
getDownValues()
getDownValuesint
getMaxInterfacePerPdu()
Getter for the fieldmaxInterfacePerPdu
.java.lang.String
getName()
getNamePollableInterface
getParent()
getParentSchedule
getSchedule()
getSchedulejava.util.Collection<OnmsSnmpInterface>
getSnmpinterfaces()
getSnmpinterfacesPollableSnmpInterfaceConfig
getSnmppollableconfig()
getSnmppollableconfigjava.util.Set<SnmpInterfaceStatus>
getUpValues()
getUpValuesboolean
isReady()
isReadyvoid
run()
runvoid
schedule()
schedulevoid
setAgentConfig(SnmpAgentConfig config)
setAgentConfigvoid
setCriteria(java.lang.String m_criteria)
setCriteriavoid
setDownValues(java.util.Set<SnmpInterfaceStatus> downValues)
setDownValuesvoid
setName(java.lang.String name)
setNamevoid
setSchedule(Schedule schedule)
setSchedulevoid
setSnmpinterfaces(java.util.List<OnmsSnmpInterface> snmpinterfaces)
setSnmpinterfacesvoid
setSnmppollableconfig(PollableSnmpInterfaceConfig snmppollableconfig)
setSnmppollableconfigvoid
setUpValues(java.util.Set<SnmpInterfaceStatus> upValues)
setUpValues
-
-
-
Constructor Detail
-
PollableSnmpInterface
public PollableSnmpInterface(PollableInterface parent)
Constructor for PollableSnmpInterface.
- Parameters:
parent
- aPollableInterface
object.
-
-
Method Detail
-
getSnmpinterfaces
public java.util.Collection<OnmsSnmpInterface> getSnmpinterfaces()
getSnmpinterfaces
- Returns:
- a
Collection
object.
-
setSnmpinterfaces
public void setSnmpinterfaces(java.util.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.
-
getName
public java.lang.String getName()
getName
- Returns:
- a
String
object.
-
setName
public void setName(java.lang.String name)
setName
- Parameters:
name
- aString
object.
-
isReady
public boolean isReady()
isReady
- Specified by:
isReady
in interfaceReadyRunnable
- Returns:
- a boolean.
-
run
public void run()
run
- Specified by:
run
in interfacejava.lang.Runnable
-
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.
-
getCriteria
public java.lang.String getCriteria()
getCriteria
- Returns:
- a
String
object.
-
setCriteria
public void setCriteria(java.lang.String m_criteria)
setCriteria
- Parameters:
m_criteria
- aString
object.
-
getMaxInterfacePerPdu
public int getMaxInterfacePerPdu()
Getter for the field
maxInterfacePerPdu
.- Returns:
- a int.
-
getUpValues
public java.util.Set<SnmpInterfaceStatus> getUpValues()
getUpValues
- Returns:
- a
Set
object ofSnmpInterfaceStatus
objects.
-
setUpValues
public void setUpValues(java.util.Set<SnmpInterfaceStatus> upValues)
setUpValues
- Parameters:
upValues
- aSet
object ofSnmpInterfaceStatus
objects.
-
getDownValues
public java.util.Set<SnmpInterfaceStatus> getDownValues()
getDownValues
- Returns:
- a
Set
object ofSnmpInterfaceStatus
objects.
-
setDownValues
public void setDownValues(java.util.Set<SnmpInterfaceStatus> downValues)
setDownValues
- Parameters:
downValues
- aSet
object ofSnmpInterfaceStatus
objects.
-
-