public interface LicenseManagementMBean
Modifier and Type | Field and Description |
---|---|
static String |
MBEAN_NAME
The name of this MBean, equal to the string "Licensing".
|
static String |
OBJECT_NAME
The JMX Object Name of this MBean.
|
Modifier and Type | Method and Description |
---|---|
long |
getLicensedCapacity(String function,
String version)
Get the licensed capacity for the specified product and function.
|
String[] |
getLicensedFunctions()
Get the currently licensed functions.
|
String[] |
getLicensedHosts()
Get the currently licensed hosts.
|
String[] |
getLicensedVersions()
Get the currently licensed versions.
|
ObjectName |
getLicenseMBean(String serial)
Get the MBean for the specified license.
|
TabularData |
getLicenseOverview()
Returns a table indicating the currently licensed capacity for each license component, along
with the source of .
|
String[] |
getLicenses()
Get the currently installed licenses.
|
LicenseInfo[] |
getLicenseSummary()
Returns a summary of the current license status.
|
void |
install(byte[] filedata)
Install a license from a raw byte array
|
void |
install(String url)
Install a license from a URL
|
void |
uninstall(String serial)
Uninstalls the license with the specified serial ID.
|
static final String MBEAN_NAME
static final String OBJECT_NAME
void install(byte[] filedata) throws LicenseException, LicenseAlreadyInstalledException, ConfigurationException
filedata
- a byte array containing the license dataLicenseException
LicenseAlreadyInstalledException
ConfigurationException
void install(String url) throws LicenseException, MalformedURLException, LicenseAlreadyInstalledException, ConfigurationException
url
- a String representing a URLLicenseException
MalformedURLException
LicenseAlreadyInstalledException
ConfigurationException
void uninstall(String serial) throws UnrecognizedLicenseException, ConfigurationException
serial
- the serial ID of the license to be uninstalled.UnrecognizedLicenseException
ConfigurationException
String[] getLicenses()
String[] getLicensedFunctions() throws ConfigurationException
ConfigurationException
String[] getLicensedHosts() throws ConfigurationException
ConfigurationException
String[] getLicensedVersions() throws ConfigurationException
ConfigurationException
long getLicensedCapacity(String function, String version)
function
- the function to query license capacity forversion
- the product to query license capacity forObjectName getLicenseMBean(String serial)
serial
- the serial ID of the license to get a management interface forLicenseInfo[] getLicenseSummary() throws ConfigurationException
ConfigurationException
TabularData getLicenseOverview() throws ConfigurationException, ManagementException
function | The function for which this data is relevant. |
version | The version associated with the function. |
capacity | The capacity this function/version is licensed for, or -1 if it is not licensed. |
source | The source component that requires the license. |