public interface PlatformContext
| Modifier and Type | Field and Description |
|---|---|
static String |
INSTALL_ROOT_TOKEN
Token used in the JBI registry to account for instance-local install
root path.
|
static String |
INSTANCE_ROOT_TOKEN
Token used in the JBI registry to account for instance-local root path.
|
static String |
JBI_LOGGER_NAME
The JBI Parent Logger
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(PlatformEventListener listener)
Register a listener for platform events.
|
String |
getAdminServerName()
Get the instance name of the platform's administration server.
|
Set<String> |
getClusteredServerNames()
Get a set of the names of all the clustered servers in the domain.
|
Set<String> |
getClusterNames()
Get a set of the names of all the clusters in the domain.
|
String |
getInstallRoot()
Get the full path to the platform's instaall root directory.
|
String |
getInstanceName()
Get the name of this instance.
|
String |
getInstanceRoot()
Get the full path to the platform's instance root directory.
|
Level |
getJbiLogLevel(String target)
Get the "com.sun.jbi" log level for a target
|
String |
getJmxRmiPort()
Get a string representation of the DAS JMX RMI connector port.
|
KeyStoreUtil |
getKeyStoreUtil()
Returns a platform-specific implementation of KeyStoreUtil.
|
MBeanServer |
getMBeanServer()
Provides access to the platform's MBean server.
|
MBeanServerConnection |
getMBeanServerConnection(String instanceName)
Get the MBean server connection for a particular instance.
|
InitialContext |
getNamingContext()
Retrieves the naming context that should be used to locate platform
resources (e.g.
|
JBIProvider |
getProvider()
Returns the provider type for this platform.
|
SecurityProvider |
getSecurityProvider()
Get the platform-specific security provider.
|
Set<String> |
getServersInCluster(String clusterName)
Get a set of the names of all the servers in the specified cluster.
|
Set<String> |
getStandaloneServerNames()
Get a set of the names of all the standalone servers in the domain.
|
ClassLoader |
getSystemClassLoader()
Get the schemaorg_apache_xmlbeans.system class loader for this implementation.
|
String |
getTargetName()
Get the Target Name.
|
String |
getTargetName(String instanceName)
Get the Target Name for a specified instance.
|
TransactionManager |
getTransactionManager()
Get the TransactionManager for this implementation.
|
boolean |
isAdminServer()
Determine whether this instance is the administration server instance.
|
boolean |
isCluster(String targetName)
Determine whether a target is a cluster.
|
boolean |
isClusteredServer(String targetName)
Determine whether the target is a clustered server.
|
boolean |
isInstanceClustered(String instanceName)
Determine whether or not an instance is clustered.
|
boolean |
isInstanceUp(String instanceName)
Determine if the specified instance is up.
|
boolean |
isStandaloneServer(String targetName)
Determine whether a target is a standalone server.
|
boolean |
isValidTarget(String targetName)
Determine whether a target is a valid server or cluster name.
|
void |
removeListener(PlatformEventListener listener)
Remove a listener for platform events.
|
void |
setJbiLogLevel(String target,
Level level)
Set the "com.sun.jbi" log level for a target.
|
boolean |
supportsMultipleServers()
Determine whether multiple servers are permitted within this AS
installation.
|
static final String INSTANCE_ROOT_TOKEN
static final String INSTALL_ROOT_TOKEN
static final String JBI_LOGGER_NAME
TransactionManager getTransactionManager() throws Exception
null.TransactionManager instance.Exception - if a TransactionManager cannot be obtained.MBeanServerConnection getMBeanServerConnection(String instanceName) throws Exception
MBeanServerConnection for the specified instance.Exception - if a MBeanServerConnection cannot be
obtained.ClassLoader getSystemClassLoader()
ClassLoader that is the "schemaorg_apache_xmlbeans.system" class loader
from a JBI runtime perspective.String getAdminServerName()
boolean isAdminServer()
true if this instance is the administration server,
false if not.String getInstanceName()
boolean isInstanceUp(String instanceName)
boolean supportsMultipleServers()
String getTargetName()
String getTargetName(String instanceName)
Set<String> getStandaloneServerNames()
Set<String> getClusteredServerNames()
Set<String> getClusterNames()
Set<String> getServersInCluster(String clusterName)
boolean isValidTarget(String targetName)
true if targetName is a valid
standalone server name or cluster name, false if not.boolean isCluster(String targetName)
true if targetName is a cluster,
false if not.boolean isStandaloneServer(String targetName)
true if targetName is a standalone
server, false if not.boolean isClusteredServer(String targetName)
true if targetName is a clustered
server, false if not.boolean isInstanceClustered(String instanceName)
true if the instance is clustered,
false if not.String getJmxRmiPort()
MBeanServer getMBeanServer()
String getInstanceRoot()
String getInstallRoot()
JBIProvider getProvider()
InitialContext getNamingContext()
void addListener(PlatformEventListener listener)
listener - listener implementationvoid removeListener(PlatformEventListener listener)
listener - listener implementationKeyStoreUtil getKeyStoreUtil()
Level getJbiLogLevel(String target)
target - - target namevoid setJbiLogLevel(String target, Level level)
target - - target namelevel - the default platform log levelSecurityProvider getSecurityProvider()
Copyright © 2011-2016 OpenESB Community. All Rights Reserved.