KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jmx > snmp > SnmpDataTypeEnums


1 /*
2  * @(#)file SnmpDataTypeEnums.java
3  * @(#)author Sun Microsystems, Inc.
4  * @(#)version 4.10
5  * @(#)date 08/02/09
6  *
7  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
8  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
9  *
10  */

11 // Copyright (c) 1995-96 by Cisco Systems, Inc.
12

13 package com.sun.jmx.snmp;
14
15
16
17
18 /**
19  * Contains SNMP data type constants.
20  * All members are static and can be used by any application.
21  *
22  *
23  * <p><b>This API is a Sun Microsystems internal API and is subject
24  * to change without notice.</b></p>
25  * @version 4.10 12/19/03
26  * @author Sun Microsystems, Inc
27  * @author Cisco Systems, Inc.
28  */

29
30 public interface SnmpDataTypeEnums {
31
32   // ASN1 Type definitions.
33
//-----------------------
34

35   /**
36    * ASN.1 tag for representing the boolean type.
37    */

38   static public final int BooleanTag= 1;
39   
40   /**
41    * ASN.1 tag for representing the integer type.
42    */

43   static public final int IntegerTag= 2;
44   
45    /**
46    * ASN.1 tag for representing the bit string type.
47    */

48   static public final int BitStringTag= 2;
49   
50    /**
51    * ASN.1 tag for representing the octet string type.
52    */

53   static public final int OctetStringTag= 4;
54   
55    /**
56    * ASN.1 tag for representing the null type.
57    */

58   static public final int NullTag= 5;
59   
60    /**
61    * ASN.1 tag for representing the Object Identifier type.
62    */

63   static public final int ObjectIdentiferTag= 6;
64   
65   
66  /**
67   * Represents a unknown syntax type. No meaning in an ASN.1 context.
68   */

69   final public static int UnknownSyntaxTag = 0xFF ;
70
71  /**
72   * ASN.1 tag for a <CODE>SEQUENCE</CODE> or <CODE>SEQUENCE OF</CODE>.
73   */

74   final public static int SequenceTag = 0x30 ;
75
76  /**
77   * Represents an SNMP table. No meaning in an ASN.1 context.
78   */

79   final public static int TableTag = 0xFE ;
80
81   // SNMP definitions.
82
//------------------
83

84   /**
85    * ASN.1 Tag for application context.
86    */

87   static public final int ApplFlag = 64 ;
88
89  /**
90   * ASN.1 tag for implicit context.
91   */

92   static public final int CtxtFlag = 128 ;
93   
94   /**
95    * ASN.1 tag for representing an IP address as defined in RFC 1155.
96    */

97   static public final int IpAddressTag = ApplFlag | 0 ;
98   
99   /**
100    * ASN.1 tag for representing a <CODE>Counter32</CODE> as defined in RFC 1155.
101    */

102   static public final int CounterTag = ApplFlag | 1 ;
103   
104   /**
105    * ASN.1 tag for representing a <CODE>Gauge32</CODE> as defined in RFC 1155.
106    */

107   static public final int GaugeTag = ApplFlag | 2 ;
108   
109   /**
110    * ASN.1 tag for representing a <CODE>Timeticks</CODE> as defined in RFC 1155.
111    */

112   static public final int TimeticksTag = ApplFlag | 3 ;
113   
114   /**
115    * ASN.1 tag for representing an <CODE>Opaque</CODE> type as defined in RFC 1155.
116    */

117   static public final int OpaqueTag = ApplFlag | 4 ;
118   
119   /**
120    * ASN.1 tag for representing a <CODE>Counter64</CODE> as defined in RFC 1155.
121    */

122   static public final int Counter64Tag = ApplFlag | 6 ;
123   
124   /**
125    * ASN.1 tag for representing an <CODE>Nsap</CODE> as defined in RFC 1902.
126    */

127   static final public int NsapTag = ApplFlag | 5 ;
128   
129   /**
130    * ASN.1 tag for representing an <CODE>Unsigned32</CODE> integer as defined in RFC 1902.
131    */

132   static final public int UintegerTag = ApplFlag | 7 ;
133
134   /**
135    * ASN.1 tag for representing a <CODE>NoSuchObject</CODE> as defined in RFC 1902.
136    */

137   static final public int errNoSuchObjectTag = CtxtFlag | 0 ;
138   
139    /**
140    * ASN.1 tag for representing a <CODE>NoSuchInstance</CODE> as defined in RFC 1902.
141    */

142   static final public int errNoSuchInstanceTag = CtxtFlag | 1 ;
143   
144   /**
145    * ASN.1 tag for representing an <CODE>EndOfMibView</CODE> as defined in RFC 1902.
146    */

147   static final public int errEndOfMibViewTag = CtxtFlag | 2 ;
148   
149  
150 }
151
Popular Tags