public interface LicenseManagementMBean
Allows installation, removal and query of licenses.
| 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
The name of this MBean, equal to the string "Licensing".
static final String OBJECT_NAME
The JMX Object Name of this MBean.
void install(byte[] filedata)
throws LicenseException,
LicenseAlreadyInstalledException,
ConfigurationException
Install a license from a raw byte array
filedata - a byte array containing the license dataLicenseExceptionLicenseAlreadyInstalledExceptionConfigurationExceptionvoid install(String url) throws LicenseException, MalformedURLException, LicenseAlreadyInstalledException, ConfigurationException
Install a license from a URL
url - a String representing a URLLicenseExceptionMalformedURLExceptionLicenseAlreadyInstalledExceptionConfigurationExceptionvoid uninstall(String serial) throws UnrecognizedLicenseException, ConfigurationException
Uninstalls the license with the specified serial ID.
serial - the serial ID of the license to be uninstalled.UnrecognizedLicenseExceptionConfigurationExceptionString[] getLicenses()
Get the currently installed licenses.
String[] getLicensedFunctions() throws ConfigurationException
Get the currently licensed functions.
ConfigurationExceptionString[] getLicensedHosts() throws ConfigurationException
Get the currently licensed hosts.
ConfigurationExceptionString[] getLicensedVersions() throws ConfigurationException
Get the currently licensed versions.
ConfigurationExceptionlong getLicensedCapacity(String function, String version)
Get the licensed capacity for the specified product and function.
function - the function to query license capacity forversion - the product to query license capacity forObjectName getLicenseMBean(String serial)
Get the MBean for the specified license.
serial - the serial ID of the license to get a management interface forLicenseInfo[] getLicenseSummary() throws ConfigurationException
Returns a summary of the current license status.
ConfigurationExceptionTabularData getLicenseOverview() throws ConfigurationException, ManagementException
Returns a table indicating the currently licensed capacity for each license component, along with the source of . The data returned is TabularData with the columns "function" (String), "version" (String), "capacity" (Long), "source" (String).
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. |