com.adventnet.utils.agent
Interface ScalarModelListener
- public interface ScalarModelListener
author: ramanathank
Date: Dec 1, 2003
Time: 6:40:13 PM
Copyright (c) 2003 AdventNet, Inc. All Rights Reserved.
Please read the associated COPYRIGHTS file for more details.
ADVENTNET, INC. MAKES NO REPRESENTATIONS OR WARRANTIES
ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. ADVENTNET,
INC. SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY
LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE
OR ITS DERIVATIVES.
|
Method Summary |
java.util.Hashtable |
getAttributes()
This method is used to get all the nodes in the scalar group which is associated with the ScalarModelListener. |
int |
getIndex()
|
void |
setAttributes(java.util.Hashtable list,
java.util.Vector indexList)
This method is used to set the values of the scalar group. |
void |
setIndex(int index)
|
getIndex
public int getIndex()
setIndex
public void setIndex(int index)
getAttributes
public java.util.Hashtable getAttributes()
throws java.lang.Exception
- This method is used to get all the nodes in the scalar group which is associated with the ScalarModelListener.
- Returns:
- Hashtable - Hashtable constists of the key value pair of the subid and the value of the scalar group.
- Throws:
- java.lang.Exception - - throws exception, if any error occurs while getting the value of any node in the scalar group.
setAttributes
public void setAttributes(java.util.Hashtable list,
java.util.Vector indexList)
throws AgentException
- This method is used to set the values of the scalar group.
- Parameters:
list - - hashtable consists of the key value pair of subid and the respective value of the nodes in this scalar group.indexList - - list of subids of incoming varbinds belonging to this scalar group.- Throws:
- AgentException - - throws AgentException, if any error occurs while setting the value of any node in the scalar group.
- Different error types can be set in the AgentException while throwing. For ex :
- throws new AgentException("Commit Failure" CommonUtils.COMMITFAILED);