com.spss.psapi.admin

Interface ServerActivitySnapshot



  • public interface ServerActivitySnapshot
    Interface allowing access to information on server activity (for example, running processes)
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String EXECUTABLE_NAME
      The name of the executable that started the process
      static java.lang.String IS_ADMINISTERED
      A flag indicating if this process is descended from the server being administered (1=TRUE, 0=FALSE)
      static java.lang.String MEMORY_USAGE_K
      Virtual memory usage of the process in KBytes
      static java.lang.String PARENT_PROCESS_ID
      Parent process ID is the ID of the parent of each process
      static java.lang.String PERCENTAGE_CPU
      Percentage CPU Usage indicates how much processor time the process recently consumed (as a percentage of overall processor time)
      static java.lang.String USER_NAME
      The name of the user running this process
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.util.Set getProcessAttributes()
      Returns the set of process attributes.
      java.util.Set getProcessIdentifiers()
      Returns the set of process identifiers.
      java.util.Map getProcessInformation(java.lang.String processIdentifier)
      Returns an attribute name->value mapping for a given process identifier.
      void refresh()
      Reload new up-to-date monitoring information
    • Field Detail

      • PARENT_PROCESS_ID

        static final java.lang.String PARENT_PROCESS_ID
        Parent process ID is the ID of the parent of each process
        See Also:
        Constant Field Values
      • USER_NAME

        static final java.lang.String USER_NAME
        The name of the user running this process
        See Also:
        Constant Field Values
      • MEMORY_USAGE_K

        static final java.lang.String MEMORY_USAGE_K
        Virtual memory usage of the process in KBytes
        See Also:
        Constant Field Values
      • EXECUTABLE_NAME

        static final java.lang.String EXECUTABLE_NAME
        The name of the executable that started the process
        See Also:
        Constant Field Values
      • IS_ADMINISTERED

        static final java.lang.String IS_ADMINISTERED
        A flag indicating if this process is descended from the server being administered (1=TRUE, 0=FALSE)
        See Also:
        Constant Field Values
      • PERCENTAGE_CPU

        static final java.lang.String PERCENTAGE_CPU
        Percentage CPU Usage indicates how much processor time the process recently consumed (as a percentage of overall processor time)
        See Also:
        Constant Field Values
    • Method Detail

      • getProcessIdentifiers

        java.util.Set getProcessIdentifiers()
        Returns the set of process identifiers. Each process identifier is a String.
        Returns:
        vector of (String) process identifiers
      • getProcessAttributes

        java.util.Set getProcessAttributes()
        Returns the set of process attributes. Each process identifier is a String.
        Returns:
        vector of process identifiers
      • getProcessInformation

        java.util.Map getProcessInformation(java.lang.String processIdentifier)
                                            throws ServerAdministrationException
        Returns an attribute name->value mapping for a given process identifier. Note: attribute values are all returned as strings
        Parameters:
        processIdentifier -
        Returns:
        map between attribute names and value objects for a given process identifier
        Throws:
        ServerAdministrationException - if process identifier does not match known ones

(C) Copyright IBM Corp. 1994, 2015. All Rights Reserved.