|
|||||||||
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()
|
static ServiceInfo |
getServiceInfo(Ref ref)
|
static TransportManager |
getTransportManager()
|
static UsernamePassword |
getUsernamePassword(TransportProvider provider,
Ref serviceAccount)
|
static weblogic.security.UsernameAndPassword |
getUsernamePasswordCredential(TransportProvider provider,
Ref serviceAccount)
Deprecated. Use getUsernamePassword(com.bea.wli.sb.transports.TransportProvider, com.bea.wli.config.Ref) instead |
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()
public static boolean clusterExists()
public static weblogic.security.UsernameAndPassword getUsernamePasswordCredential(TransportProvider provider, Ref serviceAccount) throws CredentialNotFoundException
getUsernamePassword(com.bea.wli.sb.transports.TransportProvider, com.bea.wli.config.Ref)
instead
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 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 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
TransportException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |