|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.mo.MOColumn
public class MOColumn
The MOColumn class represents columnar SMI objects. It
represents all instances of a table's column not only a single instance
(cell).
Objects represented by MOColumn cannot be modified via SNMP,
thus MOColumn supports read-only maximum access only.
MOMutableColumn| Constructor Summary | |
|---|---|
MOColumn(int columnID,
int syntax)
Creates a read-only column object with the given column and syntax. |
|
MOColumn(int columnID,
int syntax,
MOAccess access)
Creates a column object with the given column, syntax, and maximum access. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object column)
Compares this managed object column by its ID with another column. |
void |
get(SubRequest subRequest,
MOTableRow row,
int column)
|
MOAccess |
getAccess()
|
int |
getColumnID()
|
int |
getSyntax()
|
MOTable |
getTable()
|
org.snmp4j.smi.Variable |
getValue(MOTableRow row,
int column)
|
boolean |
isVolatile(MOTableRow row,
int column)
Tests if the supplied row is volatile or persistent. |
void |
setAccess(MOAccess access)
|
void |
setColumnID(int columnID)
|
void |
setSyntax(int syntax)
|
void |
setTable(MOTable table)
Sets the table instance this columnar object is contained in. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MOColumn(int columnID,
int syntax)
columnID - the column ID which is ID the last sub-indentifer of the corresponding
OBJECT-TYPE definition.syntax - the syntax of the objects in this column. See SMIConstants for
possible values.
public MOColumn(int columnID,
int syntax,
MOAccess access)
MOColumn only supports read-only columns the only
reasonable values for access are 'not-accessible' and
'read-only'. Generally this constructor should not be called directly.
columnID - the column ID which is ID the last sub-indentifer of the corresponding
OBJECT-TYPE definition.syntax - the syntax of the objects in this column. See SMIConstants for
possible values.access - the maximum access of the column.| Method Detail |
|---|
public void setColumnID(int columnID)
public void setSyntax(int syntax)
public void setAccess(MOAccess access)
public void setTable(MOTable table)
MOTable instance to register the table with
the column.
table - the MOTable instance where this column is contained in.public int getColumnID()
public int getSyntax()
public MOAccess getAccess()
public MOTable getTable()
public org.snmp4j.smi.Variable getValue(MOTableRow row,
int column)
public boolean isVolatile(MOTableRow row,
int column)
row - a row of the table where this column is part of.column - the column index of this column in row.
true if row should not bepublic int compareTo(java.lang.Object column)
compareTo in interface java.lang.Comparablecolumn - another MOColumn.
public java.lang.String toString()
toString in class java.lang.Object
public void get(SubRequest subRequest,
MOTableRow row,
int column)
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||