Produced by Araxis Merge on 9/25/2018 2:13:03 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\com\sun\jmx\snmp | SnmpPdu.java | Mon Jan 22 14:46:50 2018 UTC |
2 | build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\com\sun\jmx\snmp | SnmpPdu.java | Wed Sep 12 16:26:26 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 246 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | /* | |
2 | * Copyrig ht (c) 200 1, 2003, O racle and/ or its aff iliates. A ll rights reserved. | |
3 | * DO NOT ALTER OR R EMOVE COPY RIGHT NOTI CES OR THI S FILE HEA DER. | |
4 | * | |
5 | * This co de is free software; you can r edistribut e it and/o r modify i t | |
6 | * under t he terms o f the GNU General Pu blic Licen se version 2 only, a s | |
7 | * publish ed by the Free Softw are Founda tion. Ora cle design ates this | |
8 | * particu lar file a s subject to the "Cl asspath" e xception a s provided | |
9 | * by Orac le in the LICENSE fi le that ac companied this code. | |
10 | * | |
11 | * This co de is dist ributed in the hope that it wi ll be usef ul, but WI THOUT | |
12 | * ANY WAR RANTY; wit hout even the implie d warranty of MERCHA NTABILITY or | |
13 | * FITNESS FOR A PAR TICULAR PU RPOSE. Se e the GNU General Pu blic Licen se | |
14 | * version 2 for mor e details (a copy is included in the LIC ENSE file that | |
15 | * accompa nied this code). | |
16 | * | |
17 | * You sho uld have r eceived a copy of th e GNU Gene ral Public License v ersion | |
18 | * 2 along with this work; if not, write to the Fr ee Softwar e Foundati on, | |
19 | * Inc., 5 1 Franklin St, Fifth Floor, Bo ston, MA 0 2110-1301 USA. | |
20 | * | |
21 | * Please contact Or acle, 500 Oracle Par kway, Redw ood Shores , CA 94065 USA | |
22 | * or visi t www.orac le.com if you need a dditional informatio n or have any | |
23 | * questio ns. | |
24 | */ | |
25 | package co m.sun.jmx. snmp; | |
26 | ||
27 | ||
28 | import jav a.io.Seria lizable; | |
29 | import jav a.net.Inet Address; | |
30 | /** | |
31 | * Is the fully deco ded repres entation o f an SNMP packet. | |
32 | * <P> | |
33 | * Classes are deriv ed from <C ODE>SnmpPd u</CODE> t o | |
34 | * represe nt the dif ferent for ms of SNMP packets | |
35 | * ({@link com.sun.j mx.snmp.Sn mpPduPacke t SnmpPduP acket}, | |
36 | * {@link com.sun.jm x.snmp.Snm pScopedPdu Packet Snm pScopedPdu Packet}) | |
37 | * <BR>The <CODE>Snm pPdu</CODE > class de fines the attributes | |
38 | * common to every f orm of SNM P packets. | |
39 | * | |
40 | * | |
41 | * <p><b>T his API is a Sun Mic rosystems internal A PI and is subject | |
42 | * to chan ge without notice.</ b></p> | |
43 | * @see Sn mpMessage | |
44 | * @see Sn mpPduFacto ry | |
45 | * | |
46 | * @since 1.5 | |
47 | */ | |
48 | public abs tract clas s SnmpPdu implements SnmpDefin itions, Se rializable { | |
49 | ||
50 | /** | |
51 | * PDU type. Typ es are def ined in | |
52 | * {@l ink com.su n.jmx.snmp .SnmpDefin itions Snm pDefinitio ns}. | |
53 | * @se rial | |
54 | */ | |
55 | public int type= 0 ; | |
56 | ||
57 | /** | |
58 | * Pro tocol vers ion. Versi ons are de fined in | |
59 | * {@l ink com.su n.jmx.snmp .SnmpDefin itions Snm pDefinitio ns}. | |
60 | * @se rial | |
61 | */ | |
62 | public int versi on=0 ; | |
63 | ||
64 | /** | |
65 | * Lis t of varia bles. | |
66 | * @se rial | |
67 | */ | |
68 | public SnmpVarBi nd[] varBi ndList ; | |
69 | ||
70 | ||
71 | /** | |
72 | * Req uest ident ifier. | |
73 | * Not e that thi s field is not used by <CODE>S nmpPduTrap </CODE>. | |
74 | * @se rial | |
75 | */ | |
76 | public int reque stId=0 ; | |
77 | ||
78 | /** | |
79 | * Sou rce or des tination a ddress. | |
80 | * <P> For an inc oming PDU it's the s ource. | |
81 | * <BR >For an ou tgoing PDU it's the destinatio n. | |
82 | * @se rial | |
83 | */ | |
84 | public InetAddre ss address ; | |
85 | ||
86 | /** | |
87 | * Sou rce or des tination p ort. | |
88 | * <P> For an inc oming PDU it's the s ource. | |
89 | * <BR >For an ou tgoing PDU it's the destinatio n. | |
90 | * @se rial | |
91 | */ | |
92 | public int PORT ; | |
93 | ||
94 | /** | |
95 | * Ret urns the < CODE>Strin g</CODE> r epresentat ion of a P DU type. | |
96 | * For instance, if the PD U type is <CODE>Snmp Definition s.pduGetRe questPdu</ CODE>, | |
97 | * the method wi ll return "SnmpGet". | |
98 | * @pa ram cmd Th e integer representa tion of th e PDU type . | |
99 | * @re turn The < CODE>Strin g</CODE> r epresentat ion of the PDU type. | |
100 | */ | |
101 | public static St ring pduTy peToString (int cmd) { | |
102 | sw itch (cmd) { | |
103 | ca se pduGetR equestPdu : | |
104 | return " SnmpGet" ; | |
105 | ca se pduGetN extRequest Pdu : | |
106 | return " SnmpGetNex t" ; | |
107 | ca se pduWalk Request : | |
108 | return " SnmpWalk(* )" ; | |
109 | ca se pduSetR equestPdu : | |
110 | return " SnmpSet" ; | |
111 | ca se pduGetR esponsePdu : | |
112 | return " SnmpRespon se" ; | |
113 | ca se pduV1Tr apPdu : | |
114 | return " SnmpV1Trap " ; | |
115 | ca se pduV2Tr apPdu : | |
116 | return " SnmpV2Trap " ; | |
117 | ca se pduGetB ulkRequest Pdu : | |
118 | return " SnmpGetBul k" ; | |
119 | ca se pduInfo rmRequestP du : | |
120 | return " SnmpInform " ; | |
121 | } | |
122 | re turn "Unkn own Comman d = " + cm d ; | |
123 | } | |
124 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.