Blame test/dumps/jax/IfEntryImpl.java

Packit 022b05
/*
Packit 022b05
 * This Java file has been generated by smidump 0.4.5. It
Packit 022b05
 * is intended to be edited by the application programmer and
Packit 022b05
 * to be used within a Java AgentX sub-agent environment.
Packit 022b05
 *
Packit 022b05
 * $Id: IfEntryImpl.java 4432 2006-05-29 16:21:11Z strauss $
Packit 022b05
 */
Packit 022b05
Packit 022b05
/**
Packit 022b05
    This class extends the Java AgentX (JAX) implementation of
Packit 022b05
    the table row ifEntry defined in IF-MIB.
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 IfEntryImpl extends IfEntry
Packit 022b05
{
Packit 022b05
Packit 022b05
    // constructor
Packit 022b05
    public IfEntryImpl(int ifIndex)
Packit 022b05
    {
Packit 022b05
        super(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