public interface ServerPlatformSupport
Usage: ServerPlatformSupport platform = ServerPlatformSupportFactory.getInstance(); String appName = platform.getApplicationIdentifier().getDisplayName();
Modifier and Type | Method and Description |
---|---|
String |
getAdminServerName()
Return the name of the AdminServer for the current Domain.
|
Application |
getApplication()
Return the ApplicationI instance which contains the deployment and unique application
identifier, and application version and partition if applicable.
|
ApplicationIdentifier |
getApplicationIdentifier()
Deprecated.
use getApplication instead
|
String |
getClusterName()
Return cluster name of the running server.
|
String |
getDomainConfigDirectory()
Return the FMW domain/cell config directory.
|
String |
getDomainName()
Return the domain name in WebLogic server and cell name in WebSphere server
|
String |
getPartitionName()
Return the name of the current Partition.
|
String |
getPlatformName()
Return the application's running server platform name, e.g.
|
PortConfig |
getPortConfig()
Return the port configuration object of the running server.
|
PortConfig |
getPortConfig(String serverId)
Return the port configuration object of a specific server in the same WebLogic domain or WAS cell as the running server.
|
String |
getServerConfigDirectory()
Return the FMW server config directory.
|
String |
getServerConfigDirectory(String domainName,
String serverName)
Return config directory of a specified server under a specified domain/cell
|
String |
getServerLogPath()
Return the Absolute path to the log directory associated with this Server instance
|
String |
getServerName()
Return the name of the current Server.
|
String[] |
getSupportedPlatformNames()
Return the array of application server platform names being supported by the portability layer.
|
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.
|
boolean |
isRestricted()
Returns true only if JRF restricted template applied to Server.
|
boolean |
isWebLogic()
Return true if the server platform is WebLogic Server
|
String getClusterName()
Usage: String clusterName = platform.getClusterName(); boolean isServerClustered = clusterName != null && clusterName != ServerPlatformSupport.CLUSTER_UNKNOWN;
PortabilityLayerException
- - when there is problem accessing runtime mbeansString getPlatformName()
ApplicationIdentifier getApplicationIdentifier()
ApplicationIdentifier
Application getApplication()
Application
String[] getSupportedPlatformNames()
String getAdminServerName()
String getServerName()
String getServerLogPath()
boolean isAdminServer()
boolean isWebLogic()
String getServerConfigDirectory(String domainName, String serverName)
String getDomainConfigDirectory()
String getServerConfigDirectory()
String getDomainName()
PortConfig getPortConfig()
Return 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.
PortConfig getPortConfig(String serverId)
Return 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.
serverId
- - server name on WebLogic. On WAS ND, it is the containment path of the server (i.e: "/Cell:cell1/Node:node1/Server:server1").PortabilityLayerException
- - when used on JBoss or WAS AS.boolean isExalogicOptimizationsEnabled()
String getPartitionName()
boolean isRestricted()