Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework
2.0.0.0.0

E36392-01

oracle.adfmf.framework.api
Class PerfMon

Object
  extended by oracle.adfmf.framework.api.PerfMon

public class PerfMon
extends Object


Field Summary
static long IMPORTANT_LEVELS_MASK
           
static long INFO_LEVEL_MASK
           
static long SEVERE_LEVEL_MASK
           
static long WARNING_LEVEL_MASK
           
 
Constructor Summary
PerfMon()
           
 
Method Summary
 oracle.adfmf.framework.ApplicationInformation getApplicationInformation()
           
 java.io.InputStream getApplicationLog()
           
 com.sun.util.logging.Level getApplicationLogLevel()
           
 oracle.adfmf.framework.api.LogEntry[] getApplicationLogRecords(long mask)
          Get the current set of application log records with the following log levels.
 oracle.adfmf.container.environment.DeviceInformation getDeviceInformation()
           
 FeatureInformation getFeatureInformation(String fid)
           
 com.sun.util.logging.Level getFrameworkLogLevel()
           
 oracle.adfmf.container.environment.HardwareInformation getHardwareInformation()
           
 oracle.adfmf.util.HOTS getHealthOfTheSystem()
           
 oracle.adfmf.framework.api.LogEntry[] getImportantLogRecords(long mask)
          Get the current set of important log records with the following log levels.
 com.sun.util.logging.Level getLogLevel(com.sun.util.logging.Logger logger)
           
 oracle.adfmf.framework.api.LogEntry[] getLogRecords(boolean onlyApplicationLogs, long mask)
          Get the current set of log entries.
 oracle.adfmf.framework.contract.adf.NameValuePair[] getMonitors()
          Get the collection of monitors as a collection of name value pairs.
 oracle.adfmf.framework.contract.adf.NameValuePair[] getPreferences()
           
 oracle.adfmf.framework.contract.adf.NameValuePair[] getSystemProperties()
           
 void invokeGarbageCollection()
          force the system garbage collector to run now.
 void setApplicationLogLevel(com.sun.util.logging.Level level)
          Set the application's logger level.
 void setFrameworkLogLevel(com.sun.util.logging.Level level)
          Set the framework's logger level.
 void setLogLevel(com.sun.util.logging.Logger logger, com.sun.util.logging.Level level)
          Set the application's logger level.
 void simulateLowMemoryWarning()
          Simulate a low memory warning
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEVERE_LEVEL_MASK

public static final long SEVERE_LEVEL_MASK
See Also:
Constant Field Values

WARNING_LEVEL_MASK

public static final long WARNING_LEVEL_MASK
See Also:
Constant Field Values

INFO_LEVEL_MASK

public static final long INFO_LEVEL_MASK
See Also:
Constant Field Values

IMPORTANT_LEVELS_MASK

public static final long IMPORTANT_LEVELS_MASK
See Also:
Constant Field Values
Constructor Detail

PerfMon

public PerfMon()
Method Detail

getApplicationInformation

public oracle.adfmf.framework.ApplicationInformation getApplicationInformation()
Returns:
AdfmfContainerUtilities.getApplicationInformation()

getApplicationLog

public java.io.InputStream getApplicationLog()
                                      throws java.io.IOException
Returns:
the InputStream for the current application log file.
Throws:
java.io.IOException

getApplicationLogLevel

public com.sun.util.logging.Level getApplicationLogLevel()
Returns:
the application logger's level

getApplicationLogRecords

public oracle.adfmf.framework.api.LogEntry[] getApplicationLogRecords(long mask)
Get the current set of application log records with the following log levels.

Parameters:
mask - for the levels to fetch
Returns:
an array of log entries
See Also:
SEVERE_LEVEL_MASK, WARNING_LEVEL_MASK, INFO_LEVEL_MASK, IMPORTANT_LEVELS_MASK

getDeviceInformation

public oracle.adfmf.container.environment.DeviceInformation getDeviceInformation()
Returns:
device information (read-only)

getFeatureInformation

public FeatureInformation getFeatureInformation(String fid)
Returns:
AdfmfContainerUtilities.getFeatureById(fid);

getFrameworkLogLevel

public com.sun.util.logging.Level getFrameworkLogLevel()
Returns:
the framework logger's level

getHardwareInformation

public oracle.adfmf.container.environment.HardwareInformation getHardwareInformation()
Returns:
hardware information (read-only)

getHealthOfTheSystem

public oracle.adfmf.util.HOTS getHealthOfTheSystem()
Returns:
the current state of the system via the HOTS object

getImportantLogRecords

public oracle.adfmf.framework.api.LogEntry[] getImportantLogRecords(long mask)
Get the current set of important log records with the following log levels.

Parameters:
mask - for the levels to fetch
Returns:
an array of log entries
See Also:
SEVERE_LEVEL_MASK, WARNING_LEVEL_MASK, INFO_LEVEL_MASK, IMPORTANT_LEVELS_MASK

getLogLevel

public com.sun.util.logging.Level getLogLevel(com.sun.util.logging.Logger logger)
Returns:
the logger's level

getLogRecords

public oracle.adfmf.framework.api.LogEntry[] getLogRecords(boolean onlyApplicationLogs,
                                                           long mask)
Get the current set of log entries.

Parameters:
onlyApplicationLogs - - only return the log records
mask - for the levels to fetch
Returns:
an array of log entries
See Also:
SEVERE_LEVEL_MASK, WARNING_LEVEL_MASK, INFO_LEVEL_MASK, IMPORTANT_LEVELS_MASK

getMonitors

public oracle.adfmf.framework.contract.adf.NameValuePair[] getMonitors()
Get the collection of monitors as a collection of name value pairs.

Returns:
a collection of NameValuePairs
Throws:
Exception

getPreferences

public oracle.adfmf.framework.contract.adf.NameValuePair[] getPreferences()
Returns:
preference map

getSystemProperties

public oracle.adfmf.framework.contract.adf.NameValuePair[] getSystemProperties()
Returns:
get the system properties

invokeGarbageCollection

public void invokeGarbageCollection()
force the system garbage collector to run now.


setApplicationLogLevel

public void setApplicationLogLevel(com.sun.util.logging.Level level)
Set the application's logger level.

Parameters:
level -

setFrameworkLogLevel

public void setFrameworkLogLevel(com.sun.util.logging.Level level)
Set the framework's logger level.

Parameters:
level -

setLogLevel

public void setLogLevel(com.sun.util.logging.Logger logger,
                        com.sun.util.logging.Level level)
Set the application's logger level.

Parameters:
level -

simulateLowMemoryWarning

public void simulateLowMemoryWarning()
Simulate a low memory warning


Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework
2.0.0.0.0

E36392-01

Copyright © 2014 Oracle. All Rights Reserved.