public abstract class SnmpTable<T extends SnmpStore> extends AggregateTracker implements Collection<T>
Abstract SnmpTable class.
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR
Modifier | Constructor and Description |
---|---|
protected |
SnmpTable(InetAddress address,
String tableName,
NamedSnmpVar[] columns)
Constructor for SnmpTable.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
protected abstract T |
createTableEntry(SnmpObjId base,
SnmpInstId inst,
Object val)
createTableEntry
|
Collection<T> |
getEntries()
getEntries
|
boolean |
isEmpty() |
Iterator<T> |
iterator()
iterator
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
protected void |
reportGenErr(String msg) |
protected void |
reportNoSuchNameErr(String msg) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
protected void |
storeResult(SnmpResult res) |
Object[] |
toArray() |
<S> S[] |
toArray(S[] a) |
buildNextPdu, isFinished, setFailed, setMaxRepetitions, setTimedOut
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode
protected SnmpTable(InetAddress address, String tableName, NamedSnmpVar[] columns)
Constructor for SnmpTable.
T
- a T object.address
- a InetAddress
object.tableName
- a String
object.columns
- an array of org.opennms.netmgt.capsd.snmp.NamedSnmpVar
objects.protected void storeResult(SnmpResult res)
storeResult
in class CollectionTracker
protected abstract T createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
createTableEntry
base
- a SnmpObjId
object.inst
- a SnmpInstId
object.val
- a Object
object.public Collection<T> getEntries()
getEntries
List
object.protected void reportGenErr(String msg)
reportGenErr
in class CollectionTracker
protected void reportNoSuchNameErr(String msg)
reportNoSuchNameErr
in class CollectionTracker
public boolean add(T e)
add
in interface Collection<T extends SnmpStore>
public boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T extends SnmpStore>
public void clear()
clear
in interface Collection<T extends SnmpStore>
public boolean contains(Object o)
contains
in interface Collection<T extends SnmpStore>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T extends SnmpStore>
public boolean isEmpty()
isEmpty
in interface Collection<T extends SnmpStore>
public boolean remove(Object o)
remove
in interface Collection<T extends SnmpStore>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T extends SnmpStore>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T extends SnmpStore>
public int size()
size
in interface Collection<T extends SnmpStore>
public Object[] toArray()
toArray
in interface Collection<T extends SnmpStore>
public <S> S[] toArray(S[] a)
toArray
in interface Collection<T extends SnmpStore>
Copyright © 2015. All rights reserved.