⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resultvo.java

📁 this is example use EJB with jboss.
💻 JAVA
字号:
/*
 * Copyright(C) 2008, NTT AT Co., Ltd.
 * Project: AWGView
 *
 * Notes:
 *  N/A
 *
 * Record of change:
 * Date         Version      Name       Content
 * 2008/01/15   1.0          TriNT      First create       
 */
package jp.co.ntt.awgview.server.snmp;

/**
 * Class name : ResultVO <BR>
 * Package : jp.co.ntt_at.awgview.server.common <BR>
 * 
 * Description : Store information about an SNMP data form AWG-NE.<BR>
 * 
 * @author : AI&T
 * @version : 1.0
 */
public class ResultVO {
	/** OID of SNMP command*/
	private String oid = "Unkown";
	/** value*/
	private String value = "Unkown";
	/** Response id*/	
	private int responseID = -1;
	/** Request id*/
	private int requestID = -1;
	/** Flag to check error*/
	private boolean isError = false;
	/** Error message*/
	private String errorMessage = null;
	
	/***
	 * Sets the OID
	 * 
	 * @param oid
	 */
	public void setOid(String oid){
		this.oid = oid; 
	}
	
	/***
	 * Returns the OID
	 * 
	 * @return oid
	 */
	public String getOid(){
		return this.oid; 
	}
	
	/***
	 * Sets the value of SNMP command
	 * 
	 * @param value
	 */
	public void setValue(String value){
		this.value = value; 
	}
	
	/***
	 * Returns the value
	 * 
	 * @return value
	 */
	public String getValue(){
		return this.value; 
	}
	
	/***
	 * Sets the Request ID
	 * 
	 * @param requestID
	 */
	public void setRequestID(int requestID){
		this.requestID = requestID; 
	}
	
	/***
	 * Returns the Response ID
	 * 
	 * @return requestID
	 */
	public int getRequestID(){
		return this.requestID; 
	}
	
	/***
	 * Sets the Response ID
	 * 
	 * @param responseID
	 */
	public void setResponseID(int responseID){
		this.responseID = responseID; 
	}
	
	/***
	 * Returns the Response ID
	 * 
	 * @return responseID
	 */
	public int getResponseID(){
		return this.responseID; 
	}
	
	/***
	 * Sets the Error Message
	 * 
	 * @param errorMessage
	 */
	public void setErrorMessage(String errorMessage){
		this.errorMessage = errorMessage; 
	}
	
	/***
	 * Returns the Error message
	 * 
	 * @return errorMessage
	 */
	public String getErrorMessage(){
		return this.errorMessage; 
	}
	
	/***
	 * Sets the status of result executing SNMP Command
	 * 
	 * @param isError
	 */
	public void setIsError(boolean isError){
		this.isError = isError; 
	}
	
	/***
	 * Returns the status of result executing SNMP Command
	 * 
	 * @return isError: true/false
	 */
	public boolean getIsError(){
		return this.isError; 
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -