KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ist > coach > coachEmsMibComponents > IpProtocolMonitorProviderComposition > IpProtocolMonitorDataStructure


1 package ist.coach.coachEmsMibComponents.IpProtocolMonitorProviderComposition;
2
3 import org.omg.CosNaming.NameComponent JavaDoc;
4 import intt.itu.itut_x780.SourceIndicatorType;
5
6 public class IpProtocolMonitorDataStructure {
7
8         public NameComponent JavaDoc [] name;
9         public String JavaDoc objectclass;
10         public String JavaDoc [] packages;
11         public SourceIndicatorType sourceIndicator;
12         public short deletePolicy;
13
14         private int notificationIdentifier;
15         public String JavaDoc mgmtIpAddress;
16         private int snmpPort;
17         private int supportedSnmpVersions;
18
19
20     public IpProtocolMonitorDataStructure() {}
21
22     public IpProtocolMonitorDataStructure(
23         NameComponent JavaDoc [] name,
24             String JavaDoc objectclass,
25             String JavaDoc [] packages,
26             SourceIndicatorType sourceIndicator,
27             short deletePolicy,
28             String JavaDoc mgmtIpAddress,
29             int snmpPort,
30             int supportedSnmpVersions) {
31
32             this.name = name;
33             this.objectclass = objectclass;
34             this.packages = packages;
35             this.sourceIndicator = sourceIndicator;
36             this.deletePolicy = deletePolicy;
37             this.notificationIdentifier = 0;
38             this.mgmtIpAddress = mgmtIpAddress;
39             this.snmpPort = snmpPort;
40             this.supportedSnmpVersions = supportedSnmpVersions;
41           }
42
43         public int getUniqueNotificationIdentifier() {
44
45             this.notificationIdentifier++;
46
47             return (this.notificationIdentifier);
48         }
49
50         public String JavaDoc getMgmtIpAddress() {
51             return mgmtIpAddress;
52         }
53
54         public int getSnmpPort() {
55             return snmpPort;
56         }
57
58         public int getSupportedSnmpVersions() {
59             return supportedSnmpVersions;
60         }
61     }
62
Popular Tags