public class PlatformContext extends Object implements com.sun.jbi.platform.PlatformContext
| Constructor and Description |
|---|
PlatformContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(com.sun.jbi.platform.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.
|
com.sun.jbi.security.KeyStoreUtil |
getKeyStoreUtil()
Returns the KeyStoreUtil for Java SE.
|
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.
|
com.sun.jbi.JBIProvider |
getProvider()
Returns the provider type for this platform.
|
net.openesb.security.SecurityProvider |
getSecurityProvider() |
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 JBI 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(com.sun.jbi.platform.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.
|
public TransactionManager getTransactionManager() throws Exception
null.getTransactionManager in interface com.sun.jbi.platform.PlatformContextTransactionManager instance.Exception - if a TransactionManager cannot be
obtained.public MBeanServerConnection getMBeanServerConnection(String instanceName) throws Exception
getMBeanServerConnection in interface com.sun.jbi.platform.PlatformContextMBeanServerConnection for the specified
instance.Exceptionpublic String getAdminServerName()
getAdminServerName in interface com.sun.jbi.platform.PlatformContextpublic boolean isAdminServer()
isAdminServer in interface com.sun.jbi.platform.PlatformContexttrue if this instance is the administration server,
false if not.public String getInstanceName()
getInstanceName in interface com.sun.jbi.platform.PlatformContextpublic boolean isInstanceUp(String instanceName)
isInstanceUp in interface com.sun.jbi.platform.PlatformContextpublic boolean supportsMultipleServers()
supportsMultipleServers in interface com.sun.jbi.platform.PlatformContextpublic String getTargetName()
getTargetName in interface com.sun.jbi.platform.PlatformContextpublic String getTargetName(String instanceName)
getTargetName in interface com.sun.jbi.platform.PlatformContextpublic Set<String> getStandaloneServerNames()
getStandaloneServerNames in interface com.sun.jbi.platform.PlatformContextpublic Set<String> getClusteredServerNames()
getClusteredServerNames in interface com.sun.jbi.platform.PlatformContextpublic Set<String> getClusterNames()
getClusterNames in interface com.sun.jbi.platform.PlatformContextpublic Set<String> getServersInCluster(String clusterName)
getServersInCluster in interface com.sun.jbi.platform.PlatformContextpublic boolean isValidTarget(String targetName)
isValidTarget in interface com.sun.jbi.platform.PlatformContexttrue if targetName is a valid
standalone server name or cluster name, false if not.public boolean isCluster(String targetName)
isCluster in interface com.sun.jbi.platform.PlatformContexttrue if targetName is a cluster,
false if not.public boolean isStandaloneServer(String targetName)
isStandaloneServer in interface com.sun.jbi.platform.PlatformContexttrue if targetName is a standalone
server, false if not.public boolean isClusteredServer(String targetName)
isClusteredServer in interface com.sun.jbi.platform.PlatformContexttrue if targetName is a clustered
server, false if not.public boolean isInstanceClustered(String instanceName)
isInstanceClustered in interface com.sun.jbi.platform.PlatformContexttrue if the instance is clustered,
false if not.public String getJmxRmiPort()
getJmxRmiPort in interface com.sun.jbi.platform.PlatformContextString.public MBeanServer getMBeanServer()
getMBeanServer in interface com.sun.jbi.platform.PlatformContextpublic String getInstanceRoot()
getInstanceRoot in interface com.sun.jbi.platform.PlatformContextpublic String getInstallRoot()
getInstallRoot in interface com.sun.jbi.platform.PlatformContextpublic com.sun.jbi.JBIProvider getProvider()
getProvider in interface com.sun.jbi.platform.PlatformContextpublic com.sun.jbi.security.KeyStoreUtil getKeyStoreUtil()
getKeyStoreUtil in interface com.sun.jbi.platform.PlatformContextUnsupportedOperationExceptionpublic InitialContext getNamingContext()
getNamingContext in interface com.sun.jbi.platform.PlatformContextpublic ClassLoader getSystemClassLoader() throws SecurityException
getSystemClassLoader in interface com.sun.jbi.platform.PlatformContextClassLoader that is the "system" class loader
from a JBI runtime perspective.SecurityException - if access to the class loader is denied.public void addListener(com.sun.jbi.platform.PlatformEventListener listener)
addListener in interface com.sun.jbi.platform.PlatformContextlistener - listener implementationpublic void removeListener(com.sun.jbi.platform.PlatformEventListener listener)
removeListener in interface com.sun.jbi.platform.PlatformContextlistener - listener implementationpublic Level getJbiLogLevel(String target)
getJbiLogLevel in interface com.sun.jbi.platform.PlatformContexttarget - - target namepublic void setJbiLogLevel(String target, Level level)
setJbiLogLevel in interface com.sun.jbi.platform.PlatformContexttarget - = target namelevel - the default platform log levelpublic net.openesb.security.SecurityProvider getSecurityProvider()
getSecurityProvider in interface com.sun.jbi.platform.PlatformContextCopyright © 2011-2015 OpenESB Community. All Rights Reserved.