// Home | Go Back //

/*
 * 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.*;
import com.ireasoning.jni.*;

/**
 * Class represents tcp mib object in RFC1213_MIB
 */
public class TcpGroup extends SnmpBaseGroup implements TcpGroupMBean
{
    // SnmpOID: .1.3.6.1.2.1.6.1.0
    protected int _tcpRtoAlgorithm = Integer.MIN_VALUE;
    // SnmpOID: .1.3.6.1.2.1.6.2.0
    protected int _tcpRtoMin = Integer.MIN_VALUE;
    // SnmpOID: .1.3.6.1.2.1.6.3.0
    protected int _tcpRtoMax = Integer.MIN_VALUE;
    // SnmpOID: .1.3.6.1.2.1.6.4.0
    protected int _tcpMaxConn = Integer.MIN_VALUE;
    // SnmpOID: .1.3.6.1.2.1.6.5.0
    protected SnmpCounter32 _tcpActiveOpens = null;
    // SnmpOID: .1.3.6.1.2.1.6.6.0
    protected SnmpCounter32 _tcpPassiveOpens = null;
    // SnmpOID: .1.3.6.1.2.1.6.7.0
    protected SnmpCounter32 _tcpAttemptFails = null;
    // SnmpOID: .1.3.6.1.2.1.6.8.0
    protected SnmpCounter32 _tcpEstabResets = null;
    // SnmpOID: .1.3.6.1.2.1.6.9.0
    protected SnmpGauge32 _tcpCurrEstab = null;
    // SnmpOID: .1.3.6.1.2.1.6.10.0
    protected SnmpCounter32 _tcpInSegs = null;
    // SnmpOID: .1.3.6.1.2.1.6.11.0
    protected SnmpCounter32 _tcpOutSegs = null;
    // SnmpOID: .1.3.6.1.2.1.6.12.0
    protected SnmpCounter32 _tcpRetransSegs = null;
    // SnmpOID: .1.3.6.1.2.1.6.14.0
    protected SnmpCounter32 _tcpInErrs = null;
    // SnmpOID: .1.3.6.1.2.1.6.15.0
    protected SnmpCounter32 _tcpOutRsts = null;
    
    /**
     * Constructor
     * @param root SnmpOID tree root
     * @param oid the SnmpOID of this group
     * @param args the objects passed from caller for Initialization purpose
     */
    public TcpGroup(OIDTreeNode root, String oid, Object [] args)
    {
        super(root, oid);
    }
    
    /**
     * Gets new tcpRtoAlgorithm value
     */
    public synchronized int getTcpRtoAlgorithm()
    {
        if(this._tcpRtoAlgorithm != Integer.MIN_VALUE) return this._tcpRtoAlgorithm;
        else return Integer.parseInt(JNIFunction.getScalar("tcpRtoAlgorithm"));
    }
    
    /**
     * Sets new tcpRtoAlgorithm value
     * @param value the new value
     */
    public synchronized void setTcpRtoAlgorithm(int newValue)
    {
        this._tcpRtoAlgorithm = newValue;
    }
    
    /**
     * Gets new tcpRtoMin value
     */
    public synchronized int getTcpRtoMin()
    {
        if(this._tcpRtoMin != Integer.MIN_VALUE) return this._tcpRtoMin;
        else return Integer.parseInt(JNIFunction.getScalar("tcpRtoMin"));
    }
    
    /**
     * Sets new tcpRtoMin value
     * @param value the new value
     */
    public synchronized void setTcpRtoMin(int newValue)
    {
        this._tcpRtoMin = newValue;
    }
    
    /**
     * Gets new tcpRtoMax value
     */
    public synchronized int getTcpRtoMax()
    {
        if(this._tcpRtoMax != Integer.MIN_VALUE) return this._tcpRtoMax;
        else return Integer.parseInt(JNIFunction.getScalar("tcpRtoMax"));
    }
    
    /**
     * Sets new tcpRtoMax value
     * @param value the new value
     */
    public synchronized void setTcpRtoMax(int newValue)
    {
        this._tcpRtoMax = newValue;
    }
    
    /**
     * Gets new tcpMaxConn value
     */
    public synchronized int getTcpMaxConn()
    {
        if(this._tcpMaxConn != Integer.MIN_VALUE) return this._tcpMaxConn;
        else return Integer.parseInt(JNIFunction.getScalar("tcpMaxConn"));
    }
    
    /**
     * Sets new tcpMaxConn value
     * @param value the new value
     */
    public synchronized void setTcpMaxConn(int newValue)
    {
        this._tcpMaxConn = newValue;
    }
    
    /**
     * Gets new tcpActiveOpens value
     */
    public synchronized SnmpCounter32 getTcpActiveOpens()
    {
        if(this._tcpActiveOpens != null) return this._tcpActiveOpens;
        else
        {
            String s = JNIFunction.getScalar("tcpActiveOpens");
            return new SnmpCounter32(s);
        }
    }
    
    /**
     * Sets new tcpActiveOpens value
     * @param value the new value
     */
    public synchronized void setTcpActiveOpens(SnmpCounter32 newValue)
    {
        this._tcpActiveOpens = newValue;
    }
    
    /**
     * Gets new tcpPassiveOpens value
     */
    public synchronized SnmpCounter32 getTcpPassiveOpens()
    {
        if(this._tcpPassiveOpens != null) return this._tcpPassiveOpens;
        else
        {
            String s = JNIFunction.getScalar("tcpPassiveOpens");
            return new SnmpCounter32(s);
        }
    }
    
    /**
     * Sets new tcpPassiveOpens value
     * @param value the new value
     */
    public synchronized void setTcpPassiveOpens(SnmpCounter32 newValue)
    {
        this._tcpPassiveOpens = newValue;
    }
    
    /**
     * Gets new tcpAttemptFails value
     */
    public synchronized SnmpCounter32 getTcpAttemptFails()
    {
        if(this._tcpAttemptFails != null) return this._tcpAttemptFails;
        else
        {
            String s = JNIFunction.getScalar("tcpAttemptFails");
            return new SnmpCounter32(s);
        }
    }
    
    /**
     * Sets new tcpAttemptFails value
     * @param value the new value
     */
    public synchronized void setTcpAttemptFails(SnmpCounter32 newValue)
    {
        this._tcpAttemptFails = newValue;
    }
    
    /**
     * Gets new tcpEstabResets value
     */
    public synchronized SnmpCounter32 getTcpEstabResets()
    {
        if(this._tcpEstabResets != null) return this._tcpEstabResets;
        else
        {
            String s = JNIFunction.getScalar("tcpEstabResets");
            return new SnmpCounter32(s);
        }
    }
    
    /**
     * Sets new tcpEstabResets value
     * @param value the new value
     */
    public synchronized void setTcpEstabResets(SnmpCounter32 newValue)
    {
        this._tcpEstabResets = newValue;
    }
    
    /**
     * Gets new tcpCurrEstab value
     */
    public synchronized SnmpGauge32 getTcpCurrEstab()
    {
        if(this._tcpCurrEstab != null) return this._tcpCurrEstab;
        else
        {
            String s = JNIFunction.getScalar("tcpCurrEstab");
            return new SnmpGauge32(s);
        }
    }
    
    /**
     * Sets new tcpCurrEstab value
     * @param value the new value
     */
    public synchronized void setTcpCurrEstab(SnmpGauge32 newValue)
    {
        this._tcpCurrEstab = newValue;
    }
    
    /**
     * Gets new tcpInSegs value
     */
    public synchronized SnmpCounter32 getTcpInSegs()
    {
        if(this._tcpInSegs != null) return this._tcpInSegs;
        else
        {
            String s = JNIFunction.getScalar("tcpInSegs");
            return new SnmpCounter32(s);
        }
    }
    
    /**
     * Sets new tcpInSegs value
     * @param value the new value
     */
    public synchronized void setTcpInSegs(SnmpCounter32 newValue)
    {
        this._tcpInSegs = newValue;
    }
    
    /**
     * Gets new tcpOutSegs value
     */
    public synchronized SnmpCounter32 getTcpOutSegs()
    {
        if(this._tcpOutSegs != null) return this._tcpOutSegs;
        else
        {
            String s = JNIFunction.getScalar("tcpOutSegs");
            return new SnmpCounter32(s);
        }
    }
    
    /**
     * Sets new tcpOutSegs value
     * @param value the new value
     */
    public synchronized void setTcpOutSegs(SnmpCounter32 newValue)
    {
        this._tcpOutSegs = newValue;
    }
    
    /**
     * Gets new tcpRetransSegs value
     */
    public synchronized SnmpCounter32 getTcpRetransSegs()
    {
        if(this._tcpRetransSegs != null) return this._tcpRetransSegs;
        else
        {
            String s = JNIFunction.getScalar("tcpRetransSegs");
            return new SnmpCounter32(s);
        }
    }
    
    /**
     * Sets new tcpRetransSegs value
     * @param value the new value
     */
    public synchronized void setTcpRetransSegs(SnmpCounter32 newValue)
    {
        this._tcpRetransSegs = newValue;
    }
    
    /**
     * Gets new tcpInErrs value
     */
    public synchronized SnmpCounter32 getTcpInErrs()
    {
        if(this._tcpInErrs != null) return this._tcpInErrs;
        else
        {
            String s = JNIFunction.getScalar("tcpInErrs");
            return new SnmpCounter32(s);
        }
    }
    
    /**
     * Sets new tcpInErrs value
     * @param value the new value
     */
    public synchronized void setTcpInErrs(SnmpCounter32 newValue)
    {
        this._tcpInErrs = newValue;
    }
    
    /**
     * Gets new tcpOutRsts value
     */
    public synchronized SnmpCounter32 getTcpOutRsts()
    {
        if(this._tcpOutRsts != null) return this._tcpOutRsts;
        else
        {
            String s = JNIFunction.getScalar("tcpOutRsts");
            return new SnmpCounter32(s);
        }
    }
    
    /**
     * Sets new tcpOutRsts value
     * @param value the new value
     */
    public synchronized void setTcpOutRsts(SnmpCounter32 newValue)
    {
        this._tcpOutRsts = newValue;
    }
    
}