|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.adaptors.snmp.SNMPEnableTable
This class acts as the Managed Resource of the RequiredModelMBean.
For each TableMBean ,that is deployed in the cluster server, an instance of this
class is created and is registered in the admin MBean server. This MBean gives a
consolidated view of the data present in the cluster MBeans.
JmxTableModelListener| Field Summary | |
static java.lang.String |
INTERNAL_INDEX
|
protected MBeanServer |
server
|
| Constructor Summary | |
SNMPEnableTable()
The constructor for this class. |
|
| Method Summary | |
void |
addRow(java.lang.Object[] indexObjects,
CompositeData cd)
Implementation of JmxTableModelListener interface. |
void |
deleteRow(java.lang.Object[] indexObjects)
Implementation of JmxTableModelListener interface. |
java.util.List |
getEntries(int startIndex,
int endIndex)
Implementation of JmxTableModelListener interface. |
CompositeData |
getEntry(java.lang.Object[] indexObjects)
Implementation of JmxTableModelListener interface. |
CompositeData |
getFirstEntry()
Implementation of JmxTableModelListener interface. |
java.lang.String[] |
getIndexNames()
The method to return index column Names of this table MBean. |
CompositeData |
getNextEntry(java.lang.Object[] indexObjects)
Implementation of JmxTableModelListener interface. |
java.util.List |
getRows(int i,
int j)
|
TabularData |
getSNMPEnableTable()
|
TabularData |
getTabularData()
|
protected java.lang.Object |
getValue(ObjectName oname,
java.lang.String className,
java.lang.String columnName)
|
protected void |
initialise(ModelMBeanInfo mbai)
|
void |
modifyRow(java.lang.Object[] indexObjects,
CompositeData cd)
Implementation of JmxTableModelListener interface. |
void |
postDeregister()
Allows the MBean to perform any operations needed after having been unregistered in the MBean server. |
void |
postRegister(java.lang.Boolean b)
Allows the MBean to perform any operations needed after having been registered in the MBean server or after the registration has failed. |
void |
preDeregister()
Allows the MBean to perform any operations it needs before being unregistered by the MBean server. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Allows the MBean to perform any operations it needs before being registered in the MBean server. |
void |
setClassName(MBeanServer server,
java.lang.String wsClassName,
ModelMBeanInfo minfo)
|
void |
setClassNames(MBeanServer server,
java.lang.String[] wsClassNames,
ModelMBeanInfo minfo)
|
void |
setClassNames(java.lang.String[] wsClassNames)
|
void |
setObjectName(MBeanServer server,
java.lang.String wsObjectName,
ModelMBeanInfo minfo)
|
void |
setRefreshInterval(int interval)
Method to set the refresh interval. |
void |
setSNMPEnableTable(TabularData data)
|
void |
setTabularData(TabularData data)
|
int |
totalRows()
Implementation of JmxTableModelListener interface. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected MBeanServer server
public static final java.lang.String INTERNAL_INDEX
| Constructor Detail |
public SNMPEnableTable()
MasterTableMBean instance.clusterName - the name of the cluster where the table mbeans reside.| Method Detail |
public ObjectName preRegister(MBeanServer server,
ObjectName name)
server - The MBean server in which the MBean will be registered.name - The object name of the MBean. This name is null if
the name parameter to one of the createMBean or
registerMBean methods in the MBeanServer
interface is null. In that case, this method must return a
non-null ObjectName for the new MBean.name
parameter is not null, it will usually but not necessarily be
the returned value.MBeanRegistrationException or a RuntimeMBeanException.public void postRegister(java.lang.Boolean b)
registrationDone - Indicates whether or not the MBean has
been successfully registered in the MBean server. The value
false means that the registration phase has failed.
public void preDeregister()
throws java.lang.Exception
MBeanRegistrationException or a RuntimeMBeanException.public void postDeregister()
public void setClassName(MBeanServer server,
java.lang.String wsClassName,
ModelMBeanInfo minfo)
public void setClassNames(MBeanServer server,
java.lang.String[] wsClassNames,
ModelMBeanInfo minfo)
public void setClassNames(java.lang.String[] wsClassNames)
public void setObjectName(MBeanServer server,
java.lang.String wsObjectName,
ModelMBeanInfo minfo)
protected void initialise(ModelMBeanInfo mbai)
public TabularData getTabularData()
public void setTabularData(TabularData data)
public TabularData getSNMPEnableTable()
public void setSNMPEnableTable(TabularData data)
public void setRefreshInterval(int interval)
interval - an int valuepublic java.lang.String[] getIndexNames()
public CompositeData getEntry(java.lang.Object[] indexObjects)
indexObjects - the object array with index objects which identifies the rowpublic CompositeData getNextEntry(java.lang.Object[] indexObjects)
indexObjects - the object array with index objects which identifies the rowpublic CompositeData getFirstEntry()
public void addRow(java.lang.Object[] indexObjects,
CompositeData cd)
throws java.lang.Exception
indexObjects - the object array with index objects which identifies the row
to be added.cd - the entry value as javax.jmx.openmbean.CompositeData instance.
public void deleteRow(java.lang.Object[] indexObjects)
throws java.lang.Exception
indexObjects - the object array with index objects which identifies the row to be deleted.indexObjects - the entry value as javax.jmx.openmbean.CompositeData instance.
public void modifyRow(java.lang.Object[] indexObjects,
CompositeData cd)
throws java.lang.Exception
indexObjects - the object array with index objects which identifies the row to be modified.cd - the entry value as javax.jmx.openmbean.CompositeData instance.public int totalRows()
public java.util.List getEntries(int startIndex,
int endIndex)
protected java.lang.Object getValue(ObjectName oname,
java.lang.String className,
java.lang.String columnName)
public java.util.List getRows(int i,
int j)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||