Blame test/dumps/jax/IfEntry.java

Packit 022b05
/*
Packit 022b05
 * This Java file has been generated by smidump 0.4.5. Do not edit!
Packit 022b05
 * It is intended to be used within a Java AgentX sub-agent environment.
Packit 022b05
 *
Packit 022b05
 * $Id: IfEntry.java 4432 2006-05-29 16:21:11Z strauss $
Packit 022b05
 */
Packit 022b05
Packit 022b05
/**
Packit 022b05
    This class represents a Java AgentX (JAX) implementation of
Packit 022b05
    the table row ifEntry defined in IF-MIB.
Packit 022b05
Packit 022b05
    @version 1
Packit 022b05
    @author  smidump 0.4.5
Packit 022b05
    @see     AgentXTable, AgentXEntry
Packit 022b05
 */
Packit 022b05
Packit 022b05
import jax.AgentXOID;
Packit 022b05
import jax.AgentXSetPhase;
Packit 022b05
import jax.AgentXResponsePDU;
Packit 022b05
import jax.AgentXEntry;
Packit 022b05
Packit 022b05
public class IfEntry extends AgentXEntry
Packit 022b05
{
Packit 022b05
Packit 022b05
    protected int ifIndex = 0;
Packit 022b05
    protected byte[] ifDescr = new byte[0];
Packit 022b05
    protected int ifType = 0;
Packit 022b05
    protected int ifMtu = 0;
Packit 022b05
    protected long ifSpeed = 0;
Packit 022b05
    protected byte[] ifPhysAddress = new byte[0];
Packit 022b05
    protected int ifAdminStatus = 0;
Packit 022b05
    protected int undo_ifAdminStatus = 0;
Packit 022b05
    protected int ifOperStatus = 0;
Packit 022b05
    protected long ifLastChange = 0;
Packit 022b05
    protected long ifInOctets = 0;
Packit 022b05
    protected long ifInUcastPkts = 0;
Packit 022b05
    protected long ifInNUcastPkts = 0;
Packit 022b05
    protected long ifInDiscards = 0;
Packit 022b05
    protected long ifInErrors = 0;
Packit 022b05
    protected long ifInUnknownProtos = 0;
Packit 022b05
    protected long ifOutOctets = 0;
Packit 022b05
    protected long ifOutUcastPkts = 0;
Packit 022b05
    protected long ifOutNUcastPkts = 0;
Packit 022b05
    protected long ifOutDiscards = 0;
Packit 022b05
    protected long ifOutErrors = 0;
Packit 022b05
    protected long ifOutQLen = 0;
Packit 022b05
    protected AgentXOID ifSpecific = new AgentXOID();
Packit 022b05
Packit 022b05
    public IfEntry(int ifIndex)
Packit 022b05
    {
Packit 022b05
        this.ifIndex = ifIndex;
Packit 022b05
Packit 022b05
        instance.append(ifIndex);
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public int get_ifIndex()
Packit 022b05
    {
Packit 022b05
        return ifIndex;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public byte[] get_ifDescr()
Packit 022b05
    {
Packit 022b05
        return ifDescr;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public int get_ifType()
Packit 022b05
    {
Packit 022b05
        return ifType;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public int get_ifMtu()
Packit 022b05
    {
Packit 022b05
        return ifMtu;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifSpeed()
Packit 022b05
    {
Packit 022b05
        return ifSpeed;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public byte[] get_ifPhysAddress()
Packit 022b05
    {
Packit 022b05
        return ifPhysAddress;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public int get_ifAdminStatus()
Packit 022b05
    {
Packit 022b05
        return ifAdminStatus;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public int set_ifAdminStatus(AgentXSetPhase phase, int value)
Packit 022b05
    {
Packit 022b05
        switch (phase.getPhase()) {
Packit 022b05
        case AgentXSetPhase.TEST_SET:
Packit 022b05
            break;
Packit 022b05
        case AgentXSetPhase.COMMIT:
Packit 022b05
            undo_ifAdminStatus = ifAdminStatus;
Packit 022b05
            ifAdminStatus = value;
Packit 022b05
            break;
Packit 022b05
        case AgentXSetPhase.UNDO:
Packit 022b05
            ifAdminStatus = undo_ifAdminStatus;
Packit 022b05
            break;
Packit 022b05
        case AgentXSetPhase.CLEANUP:
Packit 022b05
            break;
Packit 022b05
        default:
Packit 022b05
            return AgentXResponsePDU.PROCESSING_ERROR;
Packit 022b05
        }
Packit 022b05
        return AgentXResponsePDU.NO_ERROR;
Packit 022b05
    }
Packit 022b05
    public int get_ifOperStatus()
Packit 022b05
    {
Packit 022b05
        return ifOperStatus;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifLastChange()
Packit 022b05
    {
Packit 022b05
        return ifLastChange;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifInOctets()
Packit 022b05
    {
Packit 022b05
        return ifInOctets;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifInUcastPkts()
Packit 022b05
    {
Packit 022b05
        return ifInUcastPkts;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifInNUcastPkts()
Packit 022b05
    {
Packit 022b05
        return ifInNUcastPkts;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifInDiscards()
Packit 022b05
    {
Packit 022b05
        return ifInDiscards;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifInErrors()
Packit 022b05
    {
Packit 022b05
        return ifInErrors;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifInUnknownProtos()
Packit 022b05
    {
Packit 022b05
        return ifInUnknownProtos;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifOutOctets()
Packit 022b05
    {
Packit 022b05
        return ifOutOctets;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifOutUcastPkts()
Packit 022b05
    {
Packit 022b05
        return ifOutUcastPkts;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifOutNUcastPkts()
Packit 022b05
    {
Packit 022b05
        return ifOutNUcastPkts;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifOutDiscards()
Packit 022b05
    {
Packit 022b05
        return ifOutDiscards;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifOutErrors()
Packit 022b05
    {
Packit 022b05
        return ifOutErrors;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public long get_ifOutQLen()
Packit 022b05
    {
Packit 022b05
        return ifOutQLen;
Packit 022b05
    }
Packit 022b05
Packit 022b05
    public AgentXOID get_ifSpecific()
Packit 022b05
    {
Packit 022b05
        return ifSpecific;
Packit 022b05
    }
Packit 022b05
Packit 022b05
}
Packit 022b05