KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ist > coach > coachEmsMibComponents > IpRoutingEntryProviderComposition > IpRoutingEntryStructure


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