Cisco Cisco Configuration Engine 3.5 Developer's Guide
10-8
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide 3.5
OL-17661-02
Chapter 10 IMGW API Reference
IMGWDevice API
Usage:
HopInfo getDeviceHop(String devID,
int hopCnt) throws DeviceNotFoundException,
OperationFailedException,
NetworkException,
NoSuchHopException,
InvalidParameterException;
Parameters
devID—the device ID.
hopCnt—the index of the HopInfo object to be retrieved.
Exceptions
NetworkException—if sendRequest fails or the requested operation fails on server side
DeviceNotFoundException—if the specified device does not exists
OperationFailedException—if there is error in this operation
InvalidParameterException—if given device id is invalid(eg: null string)
NoSuchHopException—if hopCnt exceeds the length of the HopInfo Vector or less than 0
deleteDevice()
A public method which deletes specified device from deviceinfo database.
Usage:
void deleteDevice(String devID) throws DeviceNotFoundException,
OperationFailedException,
NetworkException,
InvalidParameterException;
Parameters
devID—the device ID.
Exceptions
NetworkException—if sendRequest fails or the requested operation fails on server side
DeviceNotFoundException—if the specified device does not exists
OperationFailedException—if the specified device can't be deleted
InvalidParameterException—if given device id is invalid(eg: null string)
modifyDeviceHop()
A public method which updates the hop information of a specified device from deviceinfo database.
Usage:
void modifyDeviceHop(String devID,
HopInfo[] hops) throws NetworkException,
InvalidParameterException,
DeviceNotFoundException,
OperationFailedException,
InvalidHopException;