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
|
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
The return instance is not cached.
|
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.
PortConfig getPortConfig(String serverId)
Return the port configuration object of a specific server in the same WebLogic domain The return instance is not cached. This is used to obtain port configuration of a server that differs from the running server.
serverId
- - server name on WebLogic.PortabilityLayerException
boolean isExalogicOptimizationsEnabled()
String getPartitionName()
boolean isRestricted()