com.ibm.websphere.management.configservice.tasks

Class InstallRARTask

  1. java.lang.Object
  2. extended bycom.ibm.websphere.management.configservice.tasks.InstallRARTask

  1. public class InstallRARTask
  2. extends java.lang.Object
This class defines tasks that relate to stand-alone RAR file installation.

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.util.ArrayList<java.lang.String>
JCA_WORK_CONTEXTS

Constructor Summary

Constructor and Description
InstallRARTask(ConfigService configService)

Method Summary

Modifier and Type Method and Description
  1. java.util.Hashtable
getRARInfo(Session session,java.lang.String nodeName,java.lang.String archivePath,java.util.Hashtable options)
  1. 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.
  1. static
  2. boolean
isJ2CRAExist(Session session,ConfigService configService,java.lang.String archivePath,boolean isolated,javax.management.ObjectName scope)
  1. static
  2. boolean
isJ2CRAExist(Session session,ConfigService configService,java.lang.String archivePath,boolean isolated,javax.management.ObjectName scope,javax.management.ObjectName orgRA)
  1. static
  2. 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)
  1. static
  2. boolean
validateHACapability(java.lang.String key)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

JCA_WORK_CONTEXTS

  1. public static final java.util.ArrayList<java.lang.String> JCA_WORK_CONTEXTS

Constructor Detail

InstallRARTask

  1. public InstallRARTask(ConfigService configService)

Method Detail

installResourceAdapter

  1. public javax.management.ObjectName installResourceAdapter( Session session,
  2. java.lang.String nodeName,
  3. java.lang.String pathToRAR,
  4. java.util.Hashtable options)
  5. throws ConnectorException
  6. AdminException
Installs a stand-alone RAR module and create a 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.

Parameters:
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:
  • rar.name - the name of the created J2CResourceAdapter. If this property is not specified, the name of RAR module in RAR's deployment descriptor will be used.
  • rar.desc - the description of the created J2CResourceAdapter.
  • rar.archivePath - the path where the RAR will be extracted. If this property is not specified, the archive will be extracted to ${CONNECTOR_INSTALL_ROOT} directory. CONNECTOR_INSTALL_ROOT is a variable defined in variables.xml file.
  • rar.classpath - additional classpath for the created J2CResourceAdapter object.
  • rar.nativePath - additional native libaray path for the created J2CResourceAdapter object.
Returns:
the ObjectName of the created J2CResourceAdapter config data.
Throws:

getRARInfo

  1. public java.util.Hashtable getRARInfo( Session session,
  2. java.lang.String nodeName,
  3. java.lang.String archivePath,
  4. java.util.Hashtable options)
  5. throws ConfigServiceException
  6. ConnectorException
Throws:

validateHACapability

  1. public static boolean validateHACapability( java.lang.String key)

isJ2CRAExist

  1. public static boolean isJ2CRAExist( Session session,
  2. ConfigService configService,
  3. java.lang.String archivePath,
  4. boolean isolated,
  5. javax.management.ObjectName scope)
  6. throws ConfigServiceException
Throws:

isJ2CRAExist

  1. public static boolean isJ2CRAExist( Session session,
  2. ConfigService configService,
  3. java.lang.String archivePath,
  4. boolean isolated,
  5. javax.management.ObjectName scope,
  6. javax.management.ObjectName orgRA)
  7. throws ConfigServiceException
Throws:

listResources

  1. public static java.util.List<javax.management.ObjectName> listResources( Session session,
  2. ConfigService configService,
  3. java.lang.String type,
  4. java.lang.String archivePath,
  5. boolean recursive,
  6. javax.management.ObjectName scope)
  7. throws ConfigServiceException
Throws: