Java API Reference Guide for Cisco License Manager
Chapter 9: License Manager Class Constructors

Table Of Contents

License Manager Class Constructors

LicenseManager (Default)

LicenseManager (Nondefault)


License Manager Class Constructors


This chapter provides information about the following Cisco License Manager class constructors:

LicenseManager (Default) (default constructor)

LicenseManager (Nondefault) (constructor using nondefault callback port)

LicenseManager (Default)

Synopsis

public LicenseManager() throws RemoteException;

Description

This is the default constructor. When the default constructor is used to create an instance of LicenseManager, TCP/IP port 1198 is used for the client-side callback function to receive results of asynchronous calls. If port 1198 is not available, the next available port in the range from 1198 to 1297 is used.

Input Parameters

Not applicable.

Return

Not applicable.

Error and Exception

If a system error prevents the operation from completing, a RemoteException is thrown.

Code

See Appendix A, "Sample Client Program in Java" for a sample of the code.

LicenseManager (Nondefault)

Synopsis

public LicenseManager(int callback_port) throws RemoteException;

Description

If you like to specify non-default port to be used for client-side callback function, you can use this constructor and specify the port to be used.

Input Parameters

Parameter
Type
Value
Description

callback_port

Integer, mandatory

Range from 1024 to 65535

The port on which the client-side callback function receives results of asynchronous calls.


Return

Not applicable.

Error and Exception

If a system error prevents the operation from completing, a RemoteException is thrown.