Skip navigation links


oracle.iam.platform.authz.vo
Class OESLogUtil

java.lang.Object
  extended by oracle.iam.platform.authz.vo.OESLogUtil


public class OESLogUtil
extends java.lang.Object

Utility class containing methods to manage OES MicroSM engine logging.


Field Summary
static java.lang.String OIM_ORACLE_HOME_ENV_VAR
           

 

Constructor Summary
OESLogUtil()
           

 

Method Summary
static java.lang.String getManagedServerName()
          Gets the name of the managed server using JMX MBeanServer.
static java.lang.String getTempDirectory()
           

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

OIM_ORACLE_HOME_ENV_VAR

public static final java.lang.String OIM_ORACLE_HOME_ENV_VAR
See Also:
Constant Field Values

Constructor Detail

OESLogUtil

public OESLogUtil()

Method Detail

getTempDirectory

public static java.lang.String getTempDirectory()

getManagedServerName

public static java.lang.String getManagedServerName()
Gets the name of the managed server using JMX MBeanServer. Implementation Details: The RuntimeServiceMBean contains the ServerRuntimeMBean as an attribute. The RuntimeServiceMBean is available with the ObjectName "com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean". Using this RuntimeServiceMBean ObjectName, the managed server ServerRuntimeMBean ObjectName is fetched using MBeanServer.getAttribute method. Then using the managed server ObjectName, the Name attribute of the ServerRuntimeMbean is fetched using MBeanServer.getAttribute and returned. In the unexpected rare case that the JMX call fails, the exception is logged. As a fallback, the value of the system env property "weblogic.Name" is returned. If no such property exists, then the constant "oimserver" is returned.
Returns:
Name of the Managed Server

Skip navigation links


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.