Class AMMUtil

java.lang.Object
com.ads.api.util.BaseUtil
com.ads.api.util.AMMUtil

public class AMMUtil extends com.ads.api.util.BaseUtil
Contains the methods to get the application, system information etc. If the method execution is successful, then it will return a string contains the required info in the form of JSON or XML String based on the outputFormat parameter given by the user..
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.ads.api.util.BaseUtil

    com.ads.api.util.BaseUtil.TokenType
  • Field Summary

    Fields inherited from class com.ads.api.util.BaseUtil

    AUTH_TOKEN, AUTH_TOKEN_TYPE
  • Method Summary

    Modifier and Type
    Method
    Description
    getAllInfo(String userName, String password, String outputFormat)
    Returns the information about application,system,virtual machine,JVM,JRE etc.
    getApplicationInfo(String userName, String password, String outputFormat)
    Returns the application information like company name,application name,application version etc.
    getLicenseInfo(String userName, String password, String outputFormat)
    Returns License information like CompanyName,number of allowed projects,number of allowed subjects, number of allowed users, number of allowed logins, number of evaluation days,evaluation end date and license expired or not etc.
    getSystemInfo(String userName, String password, String outputFormat)
    Returns System information like MAC Address,Available Processors, Total amount of free memory available to the JVM, Maximum Memory, Total memory currently available to the JVM,OS Name,OS Version and User Name etc outputFormat can be either JSON or XML.
    getVirtualMachineInfo(String userName, String password, String outputFormat)
    Returns VirtualMachine information like Java Virtual Machine specification name,specification version of Java Virtual Machine and name of specification vendor of Java Virtual Machine.
    getVirtualMachineJREInfo(String userName, String password, String outputFormat)
    Returns VirtualMachineJRE information like version of Java Runtime Environment,name of Java Runtime Environment vendor URL of Java vendor,directory of Java installation,name of specification version Java Runtime Environment, JRE specification vendor,JREspecification name and name of JIT compiler to use etc.
    getVirtualMachineJVMInfo(String userName, String password, String outputFormat)
    Returns VirtualMachineJVM information like JVM implementation name,JVM implementation version and JVM implementation vendor.

    Methods inherited from class com.ads.api.util.BaseUtil

    getAccessToken, getAccessTokenType, getTokenType, getUserDetails, permissionDeniedMessage, permissionDeniedStatus, setAccessToken, setAccessTokenType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getAllInfo

      public String getAllInfo(String userName, String password, String outputFormat)
      Returns the information about application,system,virtual machine,JVM,JRE etc. outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
      Parameters:
      userName - String
      password - String
      outputFormat - String - Valid values: JSON or XML
      Returns:
      String
      Since:
      6.2
    • getApplicationInfo

      public String getApplicationInfo(String userName, String password, String outputFormat)
      Returns the application information like company name,application name,application version etc. outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
      Parameters:
      userName - String
      password - String
      outputFormat - String - Valid values: JSON or XML
      Returns:
      String
      Since:
      6.2
    • getSystemInfo

      public String getSystemInfo(String userName, String password, String outputFormat)
      Returns System information like MAC Address,Available Processors, Total amount of free memory available to the JVM, Maximum Memory, Total memory currently available to the JVM,OS Name,OS Version and User Name etc outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
      Parameters:
      userName - String
      password - String
      outputFormat - String - Valid values: JSON or XML
      Returns:
      String
      Since:
      6.2
    • getVirtualMachineInfo

      public String getVirtualMachineInfo(String userName, String password, String outputFormat)
      Returns VirtualMachine information like Java Virtual Machine specification name,specification version of Java Virtual Machine and name of specification vendor of Java Virtual Machine. outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
      Parameters:
      userName - String
      password - String
      outputFormat - String - Valid values: JSON or XML
      Returns:
      string
      Since:
      6.2
    • getVirtualMachineJVMInfo

      public String getVirtualMachineJVMInfo(String userName, String password, String outputFormat)
      Returns VirtualMachineJVM information like JVM implementation name,JVM implementation version and JVM implementation vendor. outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
      Parameters:
      userName - String
      password - String
      outputFormat - String - Valid values: JSON or XML
      Returns:
      String
      Since:
      6.2
    • getVirtualMachineJREInfo

      public String getVirtualMachineJREInfo(String userName, String password, String outputFormat)
      Returns VirtualMachineJRE information like version of Java Runtime Environment,name of Java Runtime Environment vendor URL of Java vendor,directory of Java installation,name of specification version Java Runtime Environment, JRE specification vendor,JREspecification name and name of JIT compiler to use etc. outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
      Parameters:
      userName - String
      password - String
      outputFormat - String - Valid values: JSON or XML
      Returns:
      String
      Since:
      6.2
    • getLicenseInfo

      public String getLicenseInfo(String userName, String password, String outputFormat)
      Returns License information like CompanyName,number of allowed projects,number of allowed subjects, number of allowed users, number of allowed logins, number of evaluation days,evaluation end date and license expired or not etc. outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
      Parameters:
      userName - String
      password - String
      outputFormat - String - Valid values: JSON or XML
      Returns:
      String
      Since:
      6.2