public class InstallRARTask
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.ArrayList<java.lang.String> |
JCA_WORK_CONTEXTS |
Constructor and Description |
---|
InstallRARTask(ConfigService configService) |
Modifier and Type | Method and Description |
---|---|
java.util.Hashtable |
getRARInfo(Session session,
java.lang.String nodeName,
java.lang.String archivePath,
java.util.Hashtable options) |
javax.management.ObjectName |
installResourceAdapter(Session session,
java.lang.String nodeName,
java.lang.String pathToRAR,
java.util.Hashtable options)
Installs a stand-alone RAR module and create a
J2CResourceAdapter config data to represent the RAR module. |
static boolean |
isJ2CRAExist(Session session,
ConfigService configService,
java.lang.String archivePath,
boolean isolated,
javax.management.ObjectName scope) |
static boolean |
isJ2CRAExist(Session session,
ConfigService configService,
java.lang.String archivePath,
boolean isolated,
javax.management.ObjectName scope,
javax.management.ObjectName orgRA) |
static java.util.List<javax.management.ObjectName> |
listResources(Session session,
ConfigService configService,
java.lang.String type,
java.lang.String archivePath,
boolean recursive,
javax.management.ObjectName scope) |
static boolean |
validateHACapability(java.lang.String key) |
public static final java.util.ArrayList<java.lang.String> JCA_WORK_CONTEXTS
public InstallRARTask(ConfigService configService)
public javax.management.ObjectName installResourceAdapter(Session session, java.lang.String nodeName, java.lang.String pathToRAR, java.util.Hashtable options) throws ConnectorException, AdminException
J2CResourceAdapter
config data to represent the RAR module.
This task assumes that the RAR module is on the node already. In another word, this task doesn't distribute binary like the application install, and the RAR module binary is not be managed by the config repository.
session
- session id.nodeName
- the name of the node.pathToRAR
- the absolute path of the RAR module on the node.options
- the optional properties user can specify. More specifically, following properties can be specified:
J2CResourceAdapter
. If this property is not specified, the name of RAR module in RAR's
deployment descriptor will be used.
J2CResourceAdapter
.
J2CResourceAdapter
object.
J2CResourceAdapter
object.J2CResourceAdapter
config data.AdminException
ConnectorException
public java.util.Hashtable getRARInfo(Session session, java.lang.String nodeName, java.lang.String archivePath, java.util.Hashtable options) throws ConfigServiceException, ConnectorException
public static boolean validateHACapability(java.lang.String key)
public static boolean isJ2CRAExist(Session session, ConfigService configService, java.lang.String archivePath, boolean isolated, javax.management.ObjectName scope) throws ConfigServiceException
ConfigServiceException
public static boolean isJ2CRAExist(Session session, ConfigService configService, java.lang.String archivePath, boolean isolated, javax.management.ObjectName scope, javax.management.ObjectName orgRA) throws ConfigServiceException
ConfigServiceException
public static java.util.List<javax.management.ObjectName> listResources(Session session, ConfigService configService, java.lang.String type, java.lang.String archivePath, boolean recursive, javax.management.ObjectName scope) throws ConfigServiceException
ConfigServiceException