|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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 Set<String> |
getDispatchPolicies()
Returns the set of dispatch policies available on the server. |
static Set<String> |
getDispatchPolicies(JMXConnector connector)
|
static weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean |
getDomainRuntimeService(JMXConnector connector)
|
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 boolean |
hasSSLClientKeyPair(TransportProvider provider,
Ref skp)
|
static boolean |
isAdmin()
|
static boolean |
isStaticServiceAccount(Ref serviceAccount)
|
static void |
schedule(Runnable runnable,
String dispatchPolicy)
Schedule a work instance for execution in another thread associated with specified dispatch policy. |
static List<Ref> |
searchInstanceIds(String typeId,
String keyName,
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
public static boolean isAdmin()
IllegalStateException
- if the caller is offline.public static boolean clusterExists()
public static UsernamePassword getUsernamePassword(TransportProvider provider, Ref serviceAccount) throws CredentialNotFoundException
provider
- transport providerserviceAccount
- a reference to a service account
CredentialNotFoundException
- if the service account does not exist
or if a username/password has not been assigned to the service accountpublic static boolean isStaticServiceAccount(Ref serviceAccount) throws TransportException
serviceAccount
- a service account reference
TransportException
- if there is no service account for the given referencepublic 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 provider
CredentialNotFoundException
- if the service key provider does not exist or does not have a key-pair for
SSL client authenticationpublic static boolean hasSSLClientKeyPair(TransportProvider provider, Ref skp) throws TransportException
provider
- the transport provider requesting the key-pairskp
- a reference to a service key provider
TransportException
- if the service key provider does not existpublic static ServiceInfo getServiceInfo(Ref ref) throws TransportException
ref
- service reference
TransportException
public static List<Ref> searchInstanceIds(String typeId, String keyName, Object keyValue) throws TransportException
keyName
- can be one of the defined type ids, e.g. Refs.PROXY_REF.
Also see Refs
keyValue
- can be one of the defined queries, e.g. ProxyServiceQuery.KEY_PROXYURI.
Also see ProxyServiceQuery
and
BusinessServiceQuery
TransportException
public static void schedule(Runnable runnable, String dispatchPolicy) throws TransportException
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
public static Set<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 Set<String> getDispatchPolicies(JMXConnector connector) throws TransportException
TransportException
public static weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean getDomainRuntimeService(JMXConnector connector) throws TransportException
TransportException
public static WsdlDescription getWsdlDescription(Ref ref) throws TransportException
TransportException
- an exception occurred.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |