Cisco Cisco Configuration Engine 3.5 Entwickleranleitung

Seite von 344
10-9
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide 3.5
OL-17661-02
Chapter 10      IMGW API Reference
IMGWDevice API
Parameters
devID—the device ID.
hops—array of hop information.
Exceptions
InvalidParameterException—if the given parameter is invalid (e.g device-id is null) 
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 
InvalidHopException—if given hop information is invalid(eg: HopInfo.devType is null) 
modifyDeviceHop()
A public method which updates the hop information of a specified device from deviceinfo database.
Usage:
void modifyDeviceHop(String devID,
 int[] indices,
 HopInfo[] hops) throws NetworkException,
InvalidParameterException,
DeviceNotFoundException,
OperationFailedException,
InvalidHopException;
Parameters
devID—the device ID. 
hop—array of Hop Information. 
hopnum—array of Hop Indices. 
Exceptions
InvalidParameterException—if the given parameter is invalid (e.g device-id is null) 
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 
InvalidHopException—if given hop information is invalid(eg: HopInfo.devType is null) 
getGatewayId()
A public method which returns the gateway id associated with a given deviceID.
Usage:
String getGatewayId(String devID) throws DeviceNotFoundException,
OperationFailedException,
NetworkException,
InvalidParameterException;
Parameters
devID—the device ID.