package com.xqsr.ARSystemInfo; import java.util.List; import com.bmc.arsys.api.ARException; import com.bmc.arsys.api.ARServerUser; import com.bmc.arsys.api.LicenseInfo; public class ARSystemLicenseInfo { public static void main(String[] args) { // Initialize a new ARServerUser object, this is the main object we are // using for all actions ARServerUser context = new ARServerUser("Demo", "", "","192.168.184.128"); ARSystemLicenseInfo arSystemInfo = new ARSystemLicenseInfo(); arSystemInfo.GetLicenseInfo(context); } public void GetLicenseInfo(ARServerUser context){ System.out.println(); try{ List licenseInfo= context.getListLicense(null); for (int i = 0; i < licenseInfo.size(); i++) { LicenseInfo licInfo = licenseInfo.get(i); System.out.println(licInfo.getlicType() + " " + licInfo.getNumLicenses() ); } }catch (ARException arException) { arException.printStackTrace();} } }