Cisco Cisco Configuration Engine 3.5 开发者指南

下载
页码 344
7-11
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
Arguments
deviceCategory – device category
Return Value
String array of ignore patterns
Class DeviceServiceAttribute
This class represents the service specific attributes of a device.
Get Service Type
This method returns the type of service to which the device attributes apply.
Signature
ServiceType getServiceType ()
Return Value
A ServiceType value (integer) which can be CONFIGURATION, EXEC or IMAGE_DISTRIBUTION.
Register Service
Method to register the device with a service. 
Signature
int registerService (String deviceName, String id, Transport transport)
Arguments
deviceName – Name of the device.
ID – String that gives the unique identifier for the device in the service domain. 
Example: If the object is of type ConfigurationAttributes, this ID refers to the config ID of the 
device. If the object is of type ImageServiceAttributes, this refers to the image ID of the device.
transport – The transport mechanism to communicate with the device for this service.
Return Value
Integer that gives the status of the operation.
Unregister Service
Method to unregister the device from a service. 
Signature
int unregisterService (String deviceName)
Arguments
deviceName – Name of the device.