|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.webchat.LicenseManager
public final class LicenseManager
Validates Jive license file. Non-static version of the Jive LicenseManager for container use. The license must be contained in the jive_messenger.license under the user's jiveHome/config directory.
License
Field Summary | |
---|---|
static java.lang.String |
VERSION_NUMBER
|
Constructor Summary | |
---|---|
LicenseManager(java.io.File license)
Only containers should be able to create license managers. |
Method Summary | |
---|---|
License |
getLicense()
Obtain the license for the server. |
int |
getNumClusterMembers()
Returns the number of cluster members allowed. |
int |
getNumUsers()
Returns the number of users allowed by this license. |
static void |
main(java.lang.String[] args)
|
void |
reloadLicenses()
Explicitly reloads license file. |
void |
validateLicense(java.lang.String product,
java.lang.String version)
Checks to see if a license is valid for the specified product and version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSION_NUMBER
Constructor Detail |
---|
public LicenseManager(java.io.File license)
license
- the license file to read.Method Detail |
---|
public static void main(java.lang.String[] args)
public License getLicense()
Obtain the license for the server.
Note that Messenger can run in workgroup mode with 10 free simultaneous users without a license. Such a license is created if one can't be found on the file system.
public void validateLicense(java.lang.String product, java.lang.String version) throws LicenseException
product
- the name of the product to check licensing on.version
- the version of the product to check licensing on.
LicenseException
- if not licensed for the specified product and
version.public void reloadLicenses()
public int getNumUsers()
public int getNumClusterMembers()
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |