JASMI API

com.agentpp.smi
Interface INotificationType

All Superinterfaces:
java.lang.Comparable, IObject, java.io.Serializable

public interface INotificationType
extends IObject

INotificationType represents SMIv1 or SMIv2 traps or notification types respectively.

Version:
1.7
Author:
Frank Fock

Field Summary
 
Fields inherited from interface com.agentpp.smi.IObject
AGENT_CAPABILITIES, MODULE_COMPLIANCE, MODULE_IDENTITY, NOTIFICATION_GROUP, NOTIFICATION_TYPE, OBJECT_GROUP, OBJECT_IDENTITY, OBJECT_NAME, OBJECT_TYPE, TEXTUAL_CONVENTION, TRAP_TYPE
 
Method Summary
 java.lang.String getEnterprise()
          If notification type is a SMIv1 trap then here the enterprise object name is returned, otherwise null.
 java.lang.String[] getVariables()
          Gets the variables defined for this notification type.
 java.util.Vector getVariablesVector()
          Gets the variables defined for this notification type.
 boolean hasVariables()
          Checks whether this notification type definition defines any required variables.
 boolean isV1Trap()
          Checks whether this notification type definition is a SNMPv1 trap type.
 
Methods inherited from interface com.agentpp.smi.IObject
getComment, getDeepClone, getDescription, getModuleID, getName, getObjectID, getPrintableOid, getReference, getStatus, getType, getTypeString, hasComment, hasDescription, hasReference, hasStatus, isStructural
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

isV1Trap

boolean isV1Trap()
Checks whether this notification type definition is a SNMPv1 trap type.

Returns:
true if this is a trap type definition, false otherwise.

hasVariables

boolean hasVariables()
Checks whether this notification type definition defines any required variables.

Returns:
true if this notification type has variables.

getVariables

java.lang.String[] getVariables()
Gets the variables defined for this notification type.

Returns:
an array of Strings denoting the object names of the variables of this notification type.

getVariablesVector

java.util.Vector getVariablesVector()
Gets the variables defined for this notification type.

Returns:
a Vector of Strings denoting the object names of the variables of this notification type.

getEnterprise

java.lang.String getEnterprise()
If notification type is a SMIv1 trap then here the enterprise object name is returned, otherwise null.

Returns:
a String denoting the traps enterprise object name, or null if receiver is not a SMIv1 trap.

JASMI API

JASMI 3
Copyright 2001-2010 Frank Fock
All Rights Reserved