public class AdfNoServerPlatformSupport extends AdfServerPlatformSupport
AdfAbstractSupport.PLATFORM_TYPECLUSTER_UNKNOWN, CREDENTIAL_STORE_PROVIDER_DEFAULT, CREDENTIAL_STORE_PROVIDER_NO_STORE, logger| Constructor and Description |
|---|
AdfNoServerPlatformSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContextData(java.lang.String loggerName,
java.lang.String actionName,
java.util.HashMap<java.lang.String,java.lang.String> contextData) |
void |
addMessageToRequest(java.lang.String loggerName,
java.util.logging.Level level,
java.lang.String actionName,
java.util.Map<java.lang.String,java.lang.String> contextData,
java.lang.String MessageTag,
java.lang.String methodName,
java.lang.Throwable thrown) |
void |
begin(java.lang.String loggerName,
java.lang.String actionName,
java.util.HashMap<java.lang.String,java.lang.String> contextData) |
void |
beginNode(java.lang.String loggerName,
java.util.logging.Level level,
java.lang.String actionName,
java.util.Map<java.lang.String,java.lang.String> contextData,
java.lang.String methodName) |
void |
endNode(java.lang.String loggerName,
java.util.logging.Level level,
java.lang.String actionName) |
java.lang.String |
getAdminServerName()
Return the name of the AdminServer for the current Domain.
|
oracle.jrf.Application |
getApplication()
Return the Application instance which contains the deployment and runtime application
names, and application version if applicable.
|
oracle.jrf.ApplicationIdentifier |
getApplicationIdentifier()
Return the ApplicationIdentifier instance which contains the deployment and runtime application
names, and application version if applicable.
|
byte[] |
getCheckSum(java.lang.String algorithm,
byte[] data)
This method will provide a cross platform checksum calculation support.
|
java.lang.String |
getClusterName()
Return cluster name of the running server.
|
java.lang.String |
getCommonComponentsHome()
Return the path to Common Components home directory.
|
java.lang.Object |
getConcretePlatformSupport()
This abstract method will let each concrete sub platform support class to provide
either JRF sever platform support or others.
|
java.lang.String |
getDomainConfigDirectory()
Return the FMW domain/cell config directory.
|
java.lang.String |
getDomainName()
Return the domain name in WebLogic server and cell name in WebSphere server
|
java.lang.String |
getPlatformName()
Return the application's running server platform name, e.g.
|
oracle.jrf.PortConfig |
getPortConfig()
Return the port configuration object of the running server.
|
oracle.jrf.PortConfig |
getPortConfig(java.lang.String serverId)
Return the port configuration object of a specific server in the same WebLogic domain or WAS cell as the running server.
|
java.lang.String |
getServerConfigDirectory()
Return the FMW server config directory.
|
java.lang.String |
getServerConfigDirectory(java.lang.String domainName,
java.lang.String serverName)
Return config directory of a specified server under a specified domain/cell
|
java.lang.String |
getServerLogPath()
Return the Absolute path to the log directory associated with this Server instance
|
java.lang.String |
getServerName()
Return the name of the current Server.
|
java.lang.String[] |
getSupportedPlatformNames()
Deprecated.
|
boolean |
isAdminServer()
Return true if the current Server is the AdminServer
|
boolean |
isExalogicOptimizationsEnabled()
Returns true if the underlying platform has optimizations for Exalogic turned on.
|
static boolean |
isJEE() |
void |
LogRelativeADFRequest(java.lang.String loggerName,
java.lang.String ecid) |
void |
setSupplementalAttributes() |
getCredentialStoreProviderClassName, getJtaTransactionXidClassName, getNativeDBConnection, isGlassFish, isJBoss, isTomcat, isWebLogic, isWebLogicCore, isWebLogicJRF, isWebSphere, isWebSphereAS, isWebSphereNDpublic java.lang.String getClusterName()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupport
Usage:
String clusterName = platform.getClusterName();
boolean isServerClustered = clusterName != null && clusterName != ServerPlatformSupport.CLUSTER_UNKNOWN;
getClusterName in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerException - - when there is problem accessing runtime mbeanspublic java.lang.Object getConcretePlatformSupport()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportgetConcretePlatformSupport in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionpublic byte[] getCheckSum(java.lang.String algorithm,
byte[] data)
throws java.lang.Exception
AdfServerPlatformSupportgetCheckSum in class AdfServerPlatformSupportalgorithm - checksum algorithm string such as "MD5", "SHA1", "SHA-256", etc. By default, "MD5" will be
used if null string passed indata - byte[] data valuejava.lang.Exceptionpublic java.lang.String getPlatformName()
AdfServerPlatformSupportgetPlatformName in class AdfServerPlatformSupportpublic oracle.jrf.ApplicationIdentifier getApplicationIdentifier()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportgetApplicationIdentifier in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionApplicationIdentifierpublic oracle.jrf.Application getApplication()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportgetApplication in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionApplication@Deprecated public java.lang.String[] getSupportedPlatformNames()
AdfServerPlatformSupportgetSupportedPlatformNames in class AdfServerPlatformSupportpublic java.lang.String getAdminServerName()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportgetAdminServerName in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionpublic java.lang.String getServerName()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportgetServerName in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionpublic java.lang.String getServerLogPath()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportgetServerLogPath in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionpublic boolean isAdminServer()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportisAdminServer in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionpublic static boolean isJEE()
public java.lang.String getServerConfigDirectory(java.lang.String domainName,
java.lang.String serverName)
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportgetServerConfigDirectory in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionpublic java.lang.String getDomainConfigDirectory()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportgetDomainConfigDirectory in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionpublic java.lang.String getServerConfigDirectory()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportgetServerConfigDirectory in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionpublic java.lang.String getDomainName()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportgetDomainName in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionpublic oracle.jrf.PortConfig getPortConfig()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportReturn the port configuration object of the running server. This method is optimized by caching the result and automatically refreshed the cache when change to the port configuration is detected. Note: On WAS platform, the result is built from parsing local configurations. WAS ND user is required to synchronize the local node to obtain configurations from the master repository, if changes were made to related configurations.
getPortConfig in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionpublic oracle.jrf.PortConfig getPortConfig(java.lang.String serverId)
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportReturn the port configuration object of a specific server in the same WebLogic domain or WAS cell as the running server. The return instance is not cached. This is used to obtain port configuration of a server that differs from the running server. Not supported on single server platforms: JBoss and WAS AS. LIMITATION: On WAS platform, if the running server is not "dmgr" or not in the same node as the specifying server, JRF can only discover the specifying server JNDI port/url using local configuration files of the running server. Only getJndiProviderURL() and and getJndiSslProviderURL() can be relied up on the returned PortConfig instance in this case. If you can connect to MBean server on the "dmgr", use JRF domain runtime MBean, ObjectName "oracle.jrf:name=JRFService,type=oracle.jrf.JRFServiceMBean", to obtain server URLs, see oracle.jrf.JRFServiceMBean. Note: On WAS platform, the result is built from parsing local configurations. WAS ND user is required to synchronize the local node to obtain configurations from the master repository, if changes were made to related configurations.
getPortConfig in class AdfServerPlatformSupportserverId - - server name on WebLogic. On WAS ND, it is the containment path of the server (i.e: "/Cell:cell1/Node:node1/Server:server1").oracle.jrf.PortabilityLayerException - - when used on JBoss or WAS AS.public java.lang.String getCommonComponentsHome()
throws oracle.jrf.PortabilityLayerException
AdfServerPlatformSupportgetCommonComponentsHome in class AdfServerPlatformSupportoracle.jrf.PortabilityLayerExceptionpublic boolean isExalogicOptimizationsEnabled()
AdfServerPlatformSupportisExalogicOptimizationsEnabled in class AdfServerPlatformSupportpublic void setSupplementalAttributes()
setSupplementalAttributes in class AdfServerPlatformSupportpublic void begin(java.lang.String loggerName,
java.lang.String actionName,
java.util.HashMap<java.lang.String,java.lang.String> contextData)
begin in class AdfServerPlatformSupportpublic void beginNode(java.lang.String loggerName,
java.util.logging.Level level,
java.lang.String actionName,
java.util.Map<java.lang.String,java.lang.String> contextData,
java.lang.String methodName)
beginNode in class AdfServerPlatformSupportpublic void addContextData(java.lang.String loggerName,
java.lang.String actionName,
java.util.HashMap<java.lang.String,java.lang.String> contextData)
addContextData in class AdfServerPlatformSupportpublic void addMessageToRequest(java.lang.String loggerName,
java.util.logging.Level level,
java.lang.String actionName,
java.util.Map<java.lang.String,java.lang.String> contextData,
java.lang.String MessageTag,
java.lang.String methodName,
java.lang.Throwable thrown)
addMessageToRequest in class AdfServerPlatformSupportpublic void endNode(java.lang.String loggerName,
java.util.logging.Level level,
java.lang.String actionName)
endNode in class AdfServerPlatformSupportpublic void LogRelativeADFRequest(java.lang.String loggerName,
java.lang.String ecid)
LogRelativeADFRequest in class AdfServerPlatformSupport