|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.nms.topodb.ManagedObject
com.adventnet.nms.topodb.TopoObject
com.adventnet.nms.topodb.IpAddress
public class IpAddress
This class inherits TopoObject and represents an IP Interface. IPAddress objects are created during IP discovery, one for each IP enabled interface. The objects of this class are used to model each of the interface cards present in a Node. The name of this object is of the format "IF-"[DNS name of its ParentNode].
If a given Node object has more than one interface card, then each of the interface cards would be represented by an IpAddress object. Under such a case, one of the IpAddress objects would have the name of the format "IF-"[DNS-name of its parentNode] and the others would have their names of the format- "IF-"[Internet Protocol address of the corresponding interface card].
| Field Summary |
|---|
| Fields inherited from class com.adventnet.nms.topodb.TopoObject |
|---|
PROCEEDSTATUSPOLL |
| Constructor Summary | |
|---|---|
IpAddress()
Constructor to instantiate an Interface object. |
|
IpAddress(java.lang.String addr,
java.lang.String mask)
Constructor to instantiate an Interface object with the Ipaddress and the netmask arguments. |
|
IpAddress(java.lang.String addr,
java.lang.String mask,
java.lang.String domainName)
Constructor to instantiate an Interface object with the Ipaddress and the netmask arguments. |
|
| Method Summary | |
|---|---|
protected int |
checkDHCPNodeStatus()
The checkDHCPNodeStatus method is invoked during
status polling of DHCP client objects. |
com.adventnet.nms.topodb.corba.SeverityStateEnum |
checkStatus_CT()
corba:ManagedObject_CIOperations interface method. |
protected int |
checkStatus()
This method is invoked during the StatusPolling of the object to check the status of the object. |
java.lang.Object |
clone()
Returns the cloned copy of the IpAddress object. |
java.lang.String |
getParentNet()
Returns the name of the network to which this Interface belongs. |
java.lang.String |
getParentNode()
Returns the name of the parent Node object of this Interface. |
com.adventnet.nms.common.corba.Property_CT[] |
getProperties_CT()
corba: ManagedObject_CIOperations interface method. |
java.util.Properties |
getProperties()
Returns all the Properties of this IpAddress (Interface) object. |
com.adventnet.nms.topodb.corba.SeverityStateEnum |
getStatus_CT()
corba: ManagedObject_CIOperations interface method. |
IpAddressTieRefHolder |
getTieRefHolder_IpAddress()
corba: To get the tie ref holder for the object. |
com.adventnet.nms.common.corba.Property_CT[] |
getUserProperties_CT()
corba: ManagedObject_CIOperations interface method. |
void |
setParentNet(java.lang.String parentNet)
Sets the given network name to be the parent network for this Interface. |
void |
setParentNode(java.lang.String parentNode)
Sets the name of the Parent Node object for this Interface. |
void |
setProperties_CT(com.adventnet.nms.common.corba.Property_CT[] propertyList)
corba: ManagedObject_CIOperations interface method. |
void |
setProperties(java.util.Properties p)
This method is used to set the properties of this object. |
| Methods inherited from class com.adventnet.nms.topodb.TopoObject |
|---|
getBaseMibs, getCommunity, getContextName, getDomainName, getIpAddress, getIsDHCP, getIsInterface, getIsNetwork, getIsNode, getIsRouter, getIsSNMP, getNetmask, getSnmpport, getTieRefHolder_TopoObject, getUserName, getVersion, getWriteCommunity, setBaseMibs, setCommunity, setContextName, setDomainName, setIpAddress, setIsDHCP, setIsInterface, setIsNetwork, setIsNode, setIsRouter, setIsSNMP, setNetmask, setSnmpport, setUserName, setVersion, setWriteCommunity, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.adventnet.nms.topodb.corba.TopoObject_CIOperations |
|---|
getBaseMibs, getCommunity, getIpAddress, getIsInterface, getIsNetwork, getIsNode, getIsRouter, getIsSNMP, getNetmask, getSnmpport, getWriteCommunity, setBaseMibs, setCommunity, setIpAddress, setIsInterface, setIsNetwork, setIsNode, setIsRouter, setIsSNMP, setNetmask, setSnmpport, setWriteCommunity |
| Methods inherited from interface com.adventnet.nms.topodb.corba.ManagedObject_CIOperations |
|---|
getClassname, getFailureCount, getFailureThreshold, getGroupNames, getKey, getKeyName, getManaged, getName, getPollInterval, getStatusChangeTime, getStatusUpdateTime, getTester, getType, getUClass, getWebNMS, pollStatus, setFailureThreshold, setGroupNames, setManaged, setName, setPollInterval, setStatus, setStatusChangeTime, setStatusUpdateTime, setTester, setType, setUClass, setWebNMS |
| Constructor Detail |
|---|
public IpAddress()
public IpAddress(java.lang.String addr,
java.lang.String mask)
addr - The ipaddress of this interface.mask - The netmask of this interface.
public IpAddress(java.lang.String addr,
java.lang.String mask,
java.lang.String domainName)
addr - The ipaddress of this interface.mask - The netmask of this interface.domainName - The domainName of this interface.| Method Detail |
|---|
public java.lang.String getParentNode()
getParentNode in interface com.adventnet.nms.topodb.corba.IpAddress_CIOperationssetParentNode(java.lang.String)public void setParentNode(java.lang.String parentNode)
setParentNode in interface com.adventnet.nms.topodb.corba.IpAddress_CIOperationsparentNode - The Node name to which this interface belongs to.getParentNode()public java.lang.String getParentNet()
getParentNet in interface com.adventnet.nms.topodb.corba.IpAddress_CIOperationssetParentNet(java.lang.String)public void setParentNet(java.lang.String parentNet)
setParentNet in interface com.adventnet.nms.topodb.corba.IpAddress_CIOperationsparentNet - The Network name (which is also it's address),
to which this interface object belongs to.getParentNet()public java.util.Properties getProperties()
getProperties in interface DBInterfacegetProperties in class TopoObjectparentNet, parentNode and all the properties of this object's super classes.
ManagedObject.getProperties(),
setProperties(java.util.Properties)public java.lang.Object clone()
clone in interface DBInterfaceclone in class TopoObjectpublic void setProperties(java.util.Properties p)
Derived classes should override this method and invoke super.setProperties() at the end of this method.
The implementation of the setProperties() method in the child class should be as follows.
The method should first get the properties belonging to this class alone (e.g., IpAddress class would get the
properties values of "parentNode" and "parentNet" alone) from the Properties object and set them to its
corresponding fields. Then the method should remove those properties from the Properties object and
pass the Properties object with the remaining properties to the setProperties(Properties prop)
of its super class.
This operation propagates upto the ultimate base class- ManagedObject. The setProperties() method of ManagedObject class then removes the properties belonging to it(after setting them to its fields), from the Properties object that is passed to it, and sets the remaining properties as UserProperties.
Note: The name of an object cannot be changed using this method. So, the "name" property must not be one of the properties in the Propeties object, that is passed to this method. If present, this method would ignore it and would set only the other properties present in the Properties object.Please note that the name of an object can be set only using the setName() method of ManagedObject.
setProperties in interface DBInterfacesetProperties in class TopoObjectp - The properties to be set in this object.
parentNet, parentNode and any property of its super class.
ManagedObject.setProperties(Properties),
getProperties()
protected int checkStatus()
throws java.rmi.RemoteException
This method checks for the "tester" value that is set for this object and would perform suitable operations to check the status of the object. A Ping operation or an Snmp-Get operation is performed when the tester value is set to "ping" or "snmpping" respectively.
If the "tester" value is set to "usertest", this method would instantiate the
object of the class specified in the "uClass" field, and would call its
corresponding com.adventnet.nms.netwatch.UserTester#test(ManagedObject obj, TopoAPI api) method.
After verifying the status of the object, this method returns a suitable integer value
representing the object's current status. The status of the object would then be updated
to the value returned by this method. A return value of "-1" would signify that
there is no difference between the previous and the present status of the object.
Sub-classes may override this method to provide thier own status checking.
checkStatus in class ManagedObjectjava.rmi.RemoteExceptionprotected int checkDHCPNodeStatus()
checkDHCPNodeStatus method is invoked during
status polling of DHCP client objects. The default implementation of this
method verifies if the IPAddress of the dhcp object(interface) in the database
and in the device are alike(In a DHCP environment, there is a possibility
of device IPAddress change between status polls).In this method,
Note: In cases where the DHCP client's IPAddress does not change frequently,
this IP check can be avoided. To avoid IP check for every status poll, this method
can be overriden to only return
TopoObject.PROCEEDSTATUSPOLL and not do
any DHCP specific check.
checkDHCPNodeStatus in class TopoObjectint valueSnmpInterface.checkDHCPNodeStatus()public com.adventnet.nms.topodb.corba.SeverityStateEnum checkStatus_CT()
checkStatus_CT in interface com.adventnet.nms.topodb.corba.ManagedObject_CIOperationscheckStatus_CT in class TopoObjectpublic com.adventnet.nms.topodb.corba.SeverityStateEnum getStatus_CT()
getStatus_CT in interface com.adventnet.nms.topodb.corba.ManagedObject_CIOperationsgetStatus_CT in class TopoObjectpublic com.adventnet.nms.common.corba.Property_CT[] getUserProperties_CT()
getUserProperties_CT in interface com.adventnet.nms.topodb.corba.ManagedObject_CIOperationsgetUserProperties_CT in class TopoObjectpublic void setProperties_CT(com.adventnet.nms.common.corba.Property_CT[] propertyList)
setProperties_CT in interface com.adventnet.nms.topodb.corba.ManagedObject_CIOperationssetProperties_CT in class TopoObjectgetProperties_CT()public com.adventnet.nms.common.corba.Property_CT[] getProperties_CT()
getProperties_CT in interface com.adventnet.nms.topodb.corba.ManagedObject_CIOperationsgetProperties_CT in class TopoObjectsetProperties_CT(com.adventnet.nms.common.corba.Property_CT[])public IpAddressTieRefHolder getTieRefHolder_IpAddress()
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||