/*
* Copyright (c) 2002-2003 iReasoning Inc. All Rights Reserved.
*
* This SOURCE CODE FILE, which has been provided by iReasoning Inc. as part
* of an iReasoning Software product for use ONLY by licensed users of the product,
* includes CONFIDENTIAL and PROPRIETARY information of iReasoning Inc.
*
* USE OF THIS SOFTWARE IS GOVERNED BY THE TERMS AND CONDITIONS
* OF THE LICENSE STATEMENT AND LIMITED WARRANTY FURNISHED WITH
* THE PRODUCT.
*
* IN PARTICULAR, YOU WILL INDEMNIFY AND HOLD IREASONING SOFTWARE, ITS
* RELATED COMPANIES AND ITS SUPPLIERS, HARMLESS FROM AND AGAINST ANY
* CLAIMS OR LIABILITIES ARISING OUT OF THE USE, REPRODUCTION, OR
* DISTRIBUTION OF YOUR PROGRAMS, INCLUDING ANY CLAIMS OR LIABILITIES
* ARISING OUT OF OR RESULTING FROM THE USE, MODIFICATION, OR
* DISTRIBUTION OF PROGRAMS OR FILES CREATED FROM, BASED ON, AND/OR
* DERIVED FROM THIS SOURCE CODE FILE.
*/
package agent.mib2jni;
import java.io.*;
import java.util.*;
import com.ireasoning.util.*;
import com.ireasoning.jni.*;
import com.ireasoning.protocol.snmp.*;
import javax.management.*;
/**
* Class represents ifTable MIB object in RFC1213_MIB
*/
public class IfTable extends DynamicTable implements IfTableMBean
{
/**
* Constructor
* @param root SnmpOID tree root
* @param oid the SnmpOID of this table. For example, ".1.3.6.1.2.1.2.2" for IfTable in RFC1213
* @param args the objects passed from caller for Initialization purpose
*/
public IfTable (OIDTreeNode root, String oid, Object[] args)
{
super(root, oid, "ifTable", IfEntry.class);
}
/**
* Creates a new instance of table entry object
*/
public SnmpTableEntry newEntryInstance()
{
return new IfEntry (this);
}
/**
* Gets ifIndex value
* @param ifEntry table entry object
*/
public int getIfIndex(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifIndex;
}
}
/**
* Sets new ifIndex value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfIndex(SnmpTableEntry ifEntry, int newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifIndex = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifDescr value
* @param ifEntry table entry object
*/
public String getIfDescr(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifDescr;
}
}
/**
* Sets new ifDescr value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfDescr(SnmpTableEntry ifEntry, String newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifDescr = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifType value
* @param ifEntry table entry object
*/
public int getIfType(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifType;
}
}
/**
* Sets new ifType value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfType(SnmpTableEntry ifEntry, int newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifType = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifMtu value
* @param ifEntry table entry object
*/
public int getIfMtu(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifMtu;
}
}
/**
* Sets new ifMtu value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfMtu(SnmpTableEntry ifEntry, int newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifMtu = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifSpeed value
* @param ifEntry table entry object
*/
public SnmpGauge32 getIfSpeed(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifSpeed;
}
}
/**
* Sets new ifSpeed value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfSpeed(SnmpTableEntry ifEntry, SnmpGauge32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifSpeed = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifPhysAddress value
* @param ifEntry table entry object
*/
public String getIfPhysAddress(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifPhysAddress;
}
}
/**
* Sets new ifPhysAddress value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfPhysAddress(SnmpTableEntry ifEntry, String newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifPhysAddress = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifAdminStatus value
* @param ifEntry table entry object
*/
public int getIfAdminStatus(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifAdminStatus;
}
}
/**
* Sets new ifAdminStatus value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfAdminStatus(SnmpTableEntry ifEntry, int newValue)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifAdminStatus = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifOperStatus value
* @param ifEntry table entry object
*/
public int getIfOperStatus(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifOperStatus;
}
}
/**
* Sets new ifOperStatus value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfOperStatus(SnmpTableEntry ifEntry, int newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifOperStatus = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifLastChange value
* @param ifEntry table entry object
*/
public SnmpTimeTicks getIfLastChange(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifLastChange;
}
}
/**
* Sets new ifLastChange value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfLastChange(SnmpTableEntry ifEntry, SnmpTimeTicks newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifLastChange = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifInOctets value
* @param ifEntry table entry object
*/
public SnmpCounter32 getIfInOctets(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifInOctets;
}
}
/**
* Sets new ifInOctets value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfInOctets(SnmpTableEntry ifEntry, SnmpCounter32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifInOctets = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifInUcastPkts value
* @param ifEntry table entry object
*/
public SnmpCounter32 getIfInUcastPkts(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifInUcastPkts;
}
}
/**
* Sets new ifInUcastPkts value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfInUcastPkts(SnmpTableEntry ifEntry, SnmpCounter32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifInUcastPkts = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifInNUcastPkts value
* @param ifEntry table entry object
*/
public SnmpCounter32 getIfInNUcastPkts(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifInNUcastPkts;
}
}
/**
* Sets new ifInNUcastPkts value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfInNUcastPkts(SnmpTableEntry ifEntry, SnmpCounter32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifInNUcastPkts = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifInDiscards value
* @param ifEntry table entry object
*/
public SnmpCounter32 getIfInDiscards(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifInDiscards;
}
}
/**
* Sets new ifInDiscards value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfInDiscards(SnmpTableEntry ifEntry, SnmpCounter32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifInDiscards = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifInErrors value
* @param ifEntry table entry object
*/
public SnmpCounter32 getIfInErrors(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifInErrors;
}
}
/**
* Sets new ifInErrors value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfInErrors(SnmpTableEntry ifEntry, SnmpCounter32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifInErrors = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifInUnknownProtos value
* @param ifEntry table entry object
*/
public SnmpCounter32 getIfInUnknownProtos(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifInUnknownProtos;
}
}
/**
* Sets new ifInUnknownProtos value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfInUnknownProtos(SnmpTableEntry ifEntry, SnmpCounter32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifInUnknownProtos = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifOutOctets value
* @param ifEntry table entry object
*/
public SnmpCounter32 getIfOutOctets(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifOutOctets;
}
}
/**
* Sets new ifOutOctets value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfOutOctets(SnmpTableEntry ifEntry, SnmpCounter32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifOutOctets = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifOutUcastPkts value
* @param ifEntry table entry object
*/
public SnmpCounter32 getIfOutUcastPkts(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifOutUcastPkts;
}
}
/**
* Sets new ifOutUcastPkts value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfOutUcastPkts(SnmpTableEntry ifEntry, SnmpCounter32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifOutUcastPkts = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifOutNUcastPkts value
* @param ifEntry table entry object
*/
public SnmpCounter32 getIfOutNUcastPkts(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifOutNUcastPkts;
}
}
/**
* Sets new ifOutNUcastPkts value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfOutNUcastPkts(SnmpTableEntry ifEntry, SnmpCounter32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifOutNUcastPkts = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifOutDiscards value
* @param ifEntry table entry object
*/
public SnmpCounter32 getIfOutDiscards(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifOutDiscards;
}
}
/**
* Sets new ifOutDiscards value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfOutDiscards(SnmpTableEntry ifEntry, SnmpCounter32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifOutDiscards = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifOutErrors value
* @param ifEntry table entry object
*/
public SnmpCounter32 getIfOutErrors(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifOutErrors;
}
}
/**
* Sets new ifOutErrors value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfOutErrors(SnmpTableEntry ifEntry, SnmpCounter32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifOutErrors = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifOutQLen value
* @param ifEntry table entry object
*/
public SnmpGauge32 getIfOutQLen(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifOutQLen;
}
}
/**
* Sets new ifOutQLen value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfOutQLen(SnmpTableEntry ifEntry, SnmpGauge32 newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifOutQLen = newValue;
// TODO: Add your implementation
}
}
/**
* Gets ifSpecific value
* @param ifEntry table entry object
*/
public SnmpOID getIfSpecific(SnmpTableEntry ifEntry)
{
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
// TODO: Add your implementation
return entry._ifSpecific;
}
}
/**
* Sets new ifSpecific value
* @param ifEntry table entry object
* @param newValue new value to be set
*/
public void setIfSpecific(SnmpTableEntry ifEntry, SnmpOID newValue)
{
// This MIB node is not writeable, so IfTableMBean does not have this method
synchronized (ifEntry)
{
IfEntry entry = (IfEntry) ifEntry;
entry._ifSpecific = newValue;
// TODO: Add your implementation
}
}
}