Cisco Cisco Configuration Engine 3.5 Entwickleranleitung

Seite von 344
7-6
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide 3.5
OL-17661-02
Chapter 7      Device Administration Interface API
End User Interface
Set Hop Info
This method sets the hop information for the device.
Signature
void setHopInfo (HopInfo[] info)
Arguments
info – An array of HopInfo objects that give the hop information for the device.
Return Values
None.
Get Hop Info
This method gets the hop information for the device.
Signature
HopInfo[] getHopInfo ()
Return Values
An array of HopInfo objects that give the hop information for the device.
Class HopInfo
This class represents the hop information for a device. It refers to a single hop. 
The number of hops is transport-specific. Typically, multiple hops are required to reach the device 
through Telnet. 
All of the fields in the HopInfo class are optional as not all hop types require all the fields. In the event 
that one of them is irrelevant to the hop type, strings can be substituted with “” and integers with 0.
Note
This object is passed to the CNSDeviceManager through the Transport object and setting hop info 
attributes on the local object does not modify the device object in the data store.
Constructor
The constructor constructs a HopInfo object.
Signature
HopInfo (String hopType, String ipAddr, int port, String userName, String password)
Arguments
hopType – String that indicates the type of hop. The type of hop can be one of the pre-defined types in 
Cisco Configuration Engine, or user-defined.
ipAddr – String that gives the IP address for the hop.