public class ALContext
extends java.lang.Object
implements com.ibm.ws.al.ralclient.RALClientConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
EXTADMINNAME, EXTAPPNAME, EXTDEPLOYMENTMANAGER, EXTSECURITY, EXTSERVER, RALSVRMBEANNAME, WCCM_ALCONFIGURATIONS_NAME, WCCM_ALCONFIGURATIONS_TYPE, WCCM_PROP_NAMEATTRIBUTE_NAME, WCCM_PROP_VALUEATTRIBUTE_NAME, WCCM_RALCONFIG_PROP_NAME, WCCM_RALCONFIG_PROP_TYPE, WCCM_RALSECURITY_NAME, WCCM_RALSECURITY_TYPE, WCCM_RALSERVER_ATTR_PASSWORD, WCCM_RALSERVER_ATTR_SECURITYENABLE, WCCM_RALSERVER_ATTR_USER, WCCM_ROOT_CONFIGOBJ_NAME
Constructor and Description |
---|
ALContext() |
Modifier and Type | Method and Description |
---|---|
static void |
add(ALConfiguration config)
add an instance of ALConfig to the current thread's ALContext.
|
static void |
cleanRALCache(ALConfiguration config)
clean the corresponding ALConfiguration from the cache.
|
static void |
cleanRALCache(java.util.Collection<ALConfiguration> configs)
clean the corresponding collections of ALConfiguration from the cache.The operation
need to happen after setContext/ unset() pair
|
static void |
remove(ALConfiguration config)
remove an instance of ALConfig from the current thread's ALContext.
|
static void |
setContext(ALConfiguration config)
set AL context to an instance of ALConfig.
|
static void |
setContext(java.util.Collection<ALConfiguration> configs)
set AL context to a list of ALConfig.
|
static void |
setContext(java.lang.String tempName,
java.lang.String appName)
This is a easy of use wrapper method.
|
static void |
unset()
unset the current thread's AL context
|
public static final java.lang.String COPYRIGHT
public static void setContext(ALConfiguration config) throws InvalidConfigException
config
- an instance of ALConfigInvalidConfigException
- this exception will be thrown if the configuration is invalid.
For example, in RAL case, if a configuration
does not have server information or application name,
the configuration is incomplete, therefore is invalid.public static void setContext(java.util.Collection<ALConfiguration> configs) throws InvalidConfigException
configs
- an config list of ALConfigInvalidConfigException
- this exception will be thrown if the configuration is invalid.
For example, in RAL case, if a configuration
does not have server information or application name,
the configuration is incomplete, therefore is invalid.public static void unset()
public static void cleanRALCache(ALConfiguration config) throws InvalidConfigException
config
- the ALConfigurationInvalidConfigException
public static void cleanRALCache(java.util.Collection<ALConfiguration> configs) throws InvalidConfigException
configs
- the collection of ALConfigurationsInvalidConfigException
public static void add(ALConfiguration config) throws InvalidConfigException
config
- an instance of ALConfigInvalidConfigException
- this exception will be thrown if the configuration is
invalid. For example, in RAL case, if a configuration does
not have server information or application name, the
configuration is incomplete, therefore is invalidpublic static void remove(ALConfiguration config)
config
- an instance of ALConfig that to be removedpublic static void setContext(java.lang.String tempName, java.lang.String appName) throws InvalidConfigException
tempName
- a template nameappName
- a name of a remote applicationInvalidConfigException
- invalid configuration