|
Oracle Fusion Middleware Java API Reference for Oracle Service Bus 11g Release 1 (11.1.1.7) E15033-09 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.bea.wli.sb.transports.TransportManagerHelper
public class TransportManagerHelper
Helper class that allows the client to execute some common tasks with respect to Transport subsystem
| Method Summary | |
|---|---|
static boolean |
clusterExists() |
static java.lang.String |
getCluster() |
static java.util.Set<java.lang.String> |
getDispatchPolicies()Returns the set of dispatch policies available on the server. |
static java.util.Set<java.lang.String> |
getDispatchPolicies(javax.management.remote.JMXConnector connector) |
static weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean |
getDomainRuntimeService(javax.management.remote.JMXConnector connector) |
static java.util.Set<java.lang.String> |
getRuntimeServerNames() |
static ServiceInfo |
getServiceInfo(Ref ref) |
static weblogic.security.KeyPairCredential |
getSSLClientKeyPair(TransportProvider provider, Ref skp)Returns a key-pair (private key and certificate chain) for SSL client authentication stored on the given service key provider |
static TransportManager |
getTransportManager() |
static UsernamePassword |
getUsernamePassword(TransportProvider provider, Ref serviceAccount) |
static WsdlDescription |
getWsdlDescription(Ref ref) |
static XmlDescription |
getXmlDescription(Ref ref) |
static boolean |
hasSSLClientKeyPair(TransportProvider provider, Ref skp) |
static boolean |
isAdmin() |
static boolean |
isOffline() |
static boolean |
isRuntimeEnabled() |
static boolean |
isStaticServiceAccount(Ref serviceAccount) |
static void |
schedule(java.lang.Runnable runnable, java.lang.String dispatchPolicy)Schedule a work instance for execution in another thread associated with specified dispatch policy. |
static void |
schedule(java.lang.Runnable runnable, java.lang.String dispatchPolicy, java.lang.String appName, java.lang.String moduleName)Schedule a work instance for execution in another thread associated with specified dispatch policy. |
static java.util.List<Ref> |
searchInstanceIds(java.lang.String typeId, java.lang.String keyName, java.lang.Object keyValue)Returns a list of references for instances that has the given keyValue for the given key. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TransportManager getTransportManager()
throws TransportException
TransportException - a exception occurredpublic static boolean isAdmin()
java.lang.IllegalStateException - if the caller is offline.public static boolean clusterExists()
public static boolean isRuntimeEnabled()
public static boolean isOffline()
public static java.util.Set<java.lang.String> getRuntimeServerNames()
java.lang.UnsupportedOperationException - if this is called in offline mode.public static java.lang.String getCluster()
public static UsernamePassword getUsernamePassword(TransportProvider provider,
Ref serviceAccount)
throws CredentialNotFoundException
provider - transport providerserviceAccount - a reference to a service accountCredentialNotFoundException - if the service account does not exist or if a username/password has not been assigned to the service account
public static boolean isStaticServiceAccount(Ref serviceAccount)
throws TransportException
serviceAccount - a service account referenceTransportException - if there is no service account for the given reference
public static weblogic.security.KeyPairCredential getSSLClientKeyPair(TransportProvider provider,
Ref skp)
throws CredentialNotFoundException
provider - the transport provider requesting the key-pairskp - a reference to a service key providerCredentialNotFoundException - if the service key provider does not exist or does not have a key-pair for SSL client authentication
public static boolean hasSSLClientKeyPair(TransportProvider provider,
Ref skp)
throws TransportException
provider - the transport provider requesting the key-pairskp - a reference to a service key providerTransportException - if the service key provider does not exist
public static ServiceInfo getServiceInfo(Ref ref)
throws TransportException
ref - service referenceTransportException - if an exception occurs
public static java.util.List<Ref> searchInstanceIds(java.lang.String typeId,
java.lang.String keyName,
java.lang.Object keyValue)
throws TransportException
typeId - the resource typekeyName - can be one of the defined type ids, e.g. Refs.PROXY_REF. Also see RefskeyValue - can be one of the defined queries, e.g. ProxyServiceQuery.KEY_PROXYURI. Also see ProxyServiceQuery and BusinessServiceQueryTransportException - if an exception occurs
public static void schedule(java.lang.Runnable runnable,
java.lang.String dispatchPolicy)
throws TransportException
#schedule(Runnable, String, String) instead to specify the application name to associate the work manager with.runnable - action to execute asynchronouslydispatchPolicy - name of the WLS WorkManager which will be used to execute the Runnable.run action. Maybe null, in which case the default work manager will be used.TransportException - if an exception occurs
public static void schedule(java.lang.Runnable runnable,
java.lang.String dispatchPolicy,
java.lang.String appName,
java.lang.String moduleName)
throws TransportException
runnable - scheduled workdispatchPolicy - work manager nameappName - application name to associated work manager with. If null, then it is infered from the current application context.moduleName - module name to associated work manager with. If null, then it is infered from the current application context.TransportException - if an exception occurs.
public static java.util.Set<java.lang.String> getDispatchPolicies()
throws TransportException
getDispatchPolicies(JMXConnector connector) if you for transports implementation that supports offline mode.TransportException - if the caller of this method is offline.
public static java.util.Set<java.lang.String> getDispatchPolicies(javax.management.remote.JMXConnector connector)
throws TransportException
connector - the JMXConnector instance used to access the domain.TransportException - if an exception occurs
public static weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean getDomainRuntimeService(javax.management.remote.JMXConnector connector)
throws TransportException
TransportException
public static WsdlDescription getWsdlDescription(Ref ref)
throws TransportException
ref - the wsdl refTransportException - if an exception occurs
public static XmlDescription getXmlDescription(Ref ref)
throws TransportException
ref - the schema refTransportException - if an exception occurs
|
Oracle Fusion Middleware Java API Reference for Oracle Service Bus 11g Release 1 (11.1.1.7) E15033-09 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||