/*
* 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.protocol.snmp.*;
import javax.management.*;
/**
* Class represents udpTable MIB object in RFC1213_MIB
*/
public class UdpTable extends DynamicTable implements UdpTableMBean
{
/**
* 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 UdpTable (OIDTreeNode root, String oid, Object[] args)
{
super(root, oid, "udpTable", UdpEntry.class);
}
/**
* Creates a new instance of table entry object
*/
public SnmpTableEntry newEntryInstance()
{
return new UdpEntry (this);
}
/**
* Gets udpLocalAddress value
* @param udpEntry table entry object
*/
public SnmpIpAddress getUdpLocalAddress(SnmpTableEntry udpEntry)
{
synchronized (udpEntry)
{
UdpEntry entry = (UdpEntry) udpEntry;
// TODO: Add your implementation
return entry._udpLocalAddress;
}
}
/**
* Sets new udpLocalAddress value
* @param udpEntry table entry object
* @param newValue new value to be set
*/
public void setUdpLocalAddress(SnmpTableEntry udpEntry, SnmpIpAddress newValue)
{
// This MIB node is not writeable, so UdpTableMBean does not have this method
synchronized (udpEntry)
{
UdpEntry entry = (UdpEntry) udpEntry;
entry._udpLocalAddress = newValue;
// TODO: Add your implementation
}
}
/**
* Gets udpLocalPort value
* @param udpEntry table entry object
*/
public int getUdpLocalPort(SnmpTableEntry udpEntry)
{
synchronized (udpEntry)
{
UdpEntry entry = (UdpEntry) udpEntry;
// TODO: Add your implementation
return entry._udpLocalPort;
}
}
/**
* Sets new udpLocalPort value
* @param udpEntry table entry object
* @param newValue new value to be set
*/
public void setUdpLocalPort(SnmpTableEntry udpEntry, int newValue)
{
// This MIB node is not writeable, so UdpTableMBean does not have this method
synchronized (udpEntry)
{
UdpEntry entry = (UdpEntry) udpEntry;
entry._udpLocalPort = newValue;
// TODO: Add your implementation
}
}
}