KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ist > coach > coachEmsMibComponents > IpToMACAddressProviderComposition > IpToMACAddressDataStructure


1 package ist.coach.coachEmsMibComponents.IpToMACAddressProviderComposition;
2
3 import org.omg.CosNaming.NameComponent JavaDoc;
4 import intt.itu.itut_x780.SourceIndicatorType;
5
6 public class IpToMACAddressDataStructure {
7
8         private int ipNetToMediaIfIndex;
9         private byte[] ipNetToMediaNetAddress;
10
11         private NameComponent JavaDoc [] name;
12         public String JavaDoc objectclass;
13         private String JavaDoc [] packages;
14         public SourceIndicatorType sourceIndicator;
15         public short deletePolicy;
16         //public NameComponent [] supportedByObjectList;
17

18         private int notificationIdentifier;
19         private String JavaDoc mgmtIpAddress;
20         private int snmpPort;
21         private int supportedSnmpVersions;
22
23
24         public IpToMACAddressDataStructure() {}
25
26         public IpToMACAddressDataStructure(
27             int ipNetToMediaIfIndex,
28             byte[] ipNetToMediaNetAddress,
29             NameComponent JavaDoc [] name,
30             String JavaDoc objectclass,
31             String JavaDoc [] packages,
32             SourceIndicatorType sourceIndicator,
33             short deletePolicy,
34             //NameComponent [] supportedByObjectList,
35
String JavaDoc mgmtIpAddress,
36             int snmpPort,
37             int supportedSnmpVersions) {
38
39             this.ipNetToMediaIfIndex = ipNetToMediaIfIndex;
40             this.ipNetToMediaNetAddress = ipNetToMediaNetAddress;
41             this.name = name;
42             this.objectclass = objectclass;
43             this.packages = packages;
44             this.sourceIndicator = sourceIndicator;
45             this.deletePolicy = deletePolicy;
46 // this.supportedByObjectList = supportedByObjectList;
47
this.notificationIdentifier = 0;
48             this.mgmtIpAddress = mgmtIpAddress;
49             this.snmpPort = snmpPort;
50             this.supportedSnmpVersions = supportedSnmpVersions;
51
52         }
53
54         public int getUniqueNotificationIdentifier() {
55
56             notificationIdentifier++;
57
58             return (notificationIdentifier);
59         }
60
61         public String JavaDoc getObjectClass() {
62             return objectclass;
63         }
64
65         public NameComponent JavaDoc [] getName() {
66             return name;
67         }
68
69         public String JavaDoc[] getPackages() {
70             return packages;
71         }
72
73         public SourceIndicatorType getSourceIndicator() {
74             return sourceIndicator;
75         }
76
77         public short getDeletePolicy() {
78             return deletePolicy;
79         }
80
81         public String JavaDoc getMgmtIpAddress() {
82             return mgmtIpAddress;
83         }
84
85         public int getSnmpPort() {
86             return snmpPort;
87         }
88
89         public int getSupportedSnmpVersions() {
90             return supportedSnmpVersions;
91         }
92
93         public byte[] getipNetToMediaNetAddress() {
94
95             if (ipNetToMediaNetAddress.length > 0)
96               return ipNetToMediaNetAddress;
97             return new byte[0];
98         }
99
100         public int getipNetToMediaIfIndex() {
101
102             return ipNetToMediaIfIndex;
103         }
104     }
105
Popular Tags