ConnectionEntry.java 2.7 KB
package com.sitech.ismp.coll.net.cisco;

public class ConnectionEntry {
	private String connectionStatService;
	private String connectionStatType;
	private String connectionStatDescription;
	private String connectionStatCount;
	private String connectionStatValue;
	public String getConnectionStatService() {
		return connectionStatService;
	}
	public void setConnectionStatService(String connectionStatService) {
		this.connectionStatService = connectionStatService;
	}
	public String getConnectionStatType() {
		/**
		 * other            : A generic connection event.
        totalOpen        : Total open connections since reboot.
        currentOpen      : The number of connections currently open.
        currentClosing   : The number of connections currently closing.
        currentHalfOpen  : The number of connections currently half-open.
        currentInUse     : The number of connections currently in use.
        high             : The highest number of connections in use at
                           any one time since system startup."
        SYNTAX INTEGER {
        other(1),
        totalOpen(2),
        currentOpen(3),
        currentClosing(4),
        currentHalfOpen(5),
        currentInUse(6),
        high(7)
		*/
		String statType="";
		if(this.connectionStatType!=null&&this.connectionStatType.equals("1")){
			statType="other";
		}else if(this.connectionStatType!=null&&this.connectionStatType.equals("2")){
			statType="totalOpen";
		}else if(this.connectionStatType!=null&&this.connectionStatType.equals("3")){
			statType="currentOpen";
		}else if(this.connectionStatType!=null&&this.connectionStatType.equals("4")){
			statType="currentClosing";
		}else if(this.connectionStatType!=null&&this.connectionStatType.equals("5")){
			statType="currentHalfOpen";
		}else if(this.connectionStatType!=null&&this.connectionStatType.equals("6")){
			statType="currentInUse";
		}else if(this.connectionStatType!=null&&this.connectionStatType.equals("7")){
			statType="high";
		}
		return statType;
	}
	public void setConnectionStatType(String connectionStatType) {
		this.connectionStatType = connectionStatType;
	}
	public String getConnectionStatDescription() {
		return connectionStatDescription;
	}
	public void setConnectionStatDescription(String connectionStatDescription) {
		this.connectionStatDescription = connectionStatDescription;
	}
	public String getConnectionStatCount() {
		return connectionStatCount;
	}
	public void setConnectionStatCount(String connectionStatCount) {
		this.connectionStatCount = connectionStatCount;
	}
	public String getConnectionStatValue() {
		return connectionStatValue;
	}
	public void setConnectionStatValue(String connectionStatValue) {
		this.connectionStatValue = connectionStatValue;
	}
	
}