Package com.basis.api.admin.client
Class BBjAdminLicenseInformation
java.lang.Object
com.basis.api.admin.client.BBjAdminLicenseInformation
- All Implemented Interfaces:
Serializable
Contains all of the license information available for the BLS used by this instance of BBjServices.
BBj Sample
api! = BBjAdminFactory.getBBjAdmin("admin", "admin123")
REM Get the complete license information
licenseInfo! = api!.getLicenseInformation()
REM Get the connection information from the license information
connectionInfos! = licenseInfo!.getConnectionInformation()
REM Get a list of the feature infos
featureInfos! = licenseInfo!.getFeatureInformation()
featureInfoIterator! = featureInfos!.iterator()
print "*** FEATURES ON THIS LICENSE ..."
while featureInfoIterator!.hasNext()
featureInfo! = featureInfoIterator!.next()
REM Change this if statement if you want to see all the features
if featureInfo!.getName() = "BBJ" then
print " FEATURE: " + featureInfo!.getName() + " - Total Count: " + str(featureInfo!.getTotalCount()) + " - In Use: " + str(featureInfo!.getNumberInUse())
endif
wend
conInfoIterator! = connectionInfos!.iterator()
while conInfoIterator!.hasNext()
conInfo! = conInfoIterator!.next()
conAddr$ = conInfo!.getClientAddress()
conId$ = conInfo!.getConnectionId()
serialNum$ = conInfo!.getSerialNumber()
REM Map of BBjAdminCheckoutInformation objects with the key being the feature
checkoutInfoMap! = conInfo!.getCheckoutInformation()
checkoutInfoMapIterator! = checkoutInfoMap!.entrySet().iterator()
while checkoutInfoMapIterator!.hasNext()
entry! = checkoutInfoMapIterator!.next()
checkoutInfos! = entry!.getValue()
checkoutInfosIterator! = checkoutInfos!.iterator()
print "*** " + entry!.getKey()
while checkoutInfosIterator!.hasNext()
checkoutInfo! = checkoutInfosIterator!.next()
id$ = checkoutInfo!.getId()
version$ = checkoutInfo!.getVersion()
console$ = checkoutInfo!.getConsole()
user$ = checkoutInfo!.getUser()
name$ = checkoutInfo!.getName()
ipAddress$ = checkoutInfo!.getIpAddress()
perConnection = checkoutInfo!.isPerConnection()
print " USER: " + user$ + " - IP: " + ipAddress$
wend
wend
wend
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the feature information.Returns the serial number for the license.Returns the BLS machine information for the server where BBjServices is connected and receiving its licenses.voidsetConnectionInformation(Collection<BBjAdminLicenseConnectionInformation> p_connectionInformation) Used internally only.voidsetFeatureInformation(Collection<BBjAdminLicenseFeatureInformation> p_featureInformation) Used internally only.voidsetSerialNumber(String p_serialNumber) Used internally only.voidsetServerMachineInformation(BBjAdminLicenseMachineInformation p_serverMachineInformation) Used internally only.
-
Constructor Details
-
BBjAdminLicenseInformation
public BBjAdminLicenseInformation()Only called internally by BBjServices.
-
-
Method Details
-
getSerialNumber
Returns the serial number for the license.- Returns:
- The serial number.
-
setSerialNumber
Used internally only. This is a simple setter method.- Parameters:
p_serialNumber-
-
getConnectionInformation
-
setConnectionInformation
public void setConnectionInformation(Collection<BBjAdminLicenseConnectionInformation> p_connectionInformation) Used internally only. This is a simple setter method. -
getFeatureInformation
Returns the feature information.- Returns:
- Feature information.
-
setFeatureInformation
public void setFeatureInformation(Collection<BBjAdminLicenseFeatureInformation> p_featureInformation) Used internally only. This is a simple setter method. -
getServerMachineInformation
Returns the BLS machine information for the server where BBjServices is connected and receiving its licenses.- Returns:
- The BLS where BBjServices is connected.
-
setServerMachineInformation
public void setServerMachineInformation(BBjAdminLicenseMachineInformation p_serverMachineInformation) Used internally only. This is a simple setter method.
-