org.glassfish.fighterfish.test.util
Class EnterpriseResourceProvisioner

java.lang.Object
  extended by org.glassfish.fighterfish.test.util.EnterpriseResourceProvisioner

public class EnterpriseResourceProvisioner
extends Object

Author:
Sanjeeb.Sahoo@Sun.COM

Field Summary
static String DEFAULT_DS
           
static String DEFAULT_POOL
           
static File derbyRootDir
           
protected  List<RestorableDomainConfiguration> rdcs
          List of config changes made by a test method
 
Constructor Summary
EnterpriseResourceProvisioner()
           
 
Method Summary
protected  RestorableDomainConfiguration configureEmbeddedDerby(org.glassfish.embeddable.GlassFish gf, String poolName, File db)
          Configures jdbc/__default datasource to use a custom pool that uses embedded derby.
protected  RestorableDomainConfiguration createJmsCF(org.glassfish.embeddable.GlassFish gf, String cfName)
           
protected  RestorableDomainConfiguration createJmsQueue(org.glassfish.embeddable.GlassFish gf, String topicName)
           
protected  RestorableDomainConfiguration createJmsTopic(org.glassfish.embeddable.GlassFish gf, String topicName)
           
static File getDerbyDBRootDir()
           
protected  void restoreDomainConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DS

public static final String DEFAULT_DS
See Also:
Constant Field Values

DEFAULT_POOL

public static final String DEFAULT_POOL
See Also:
Constant Field Values

derbyRootDir

public static final File derbyRootDir

rdcs

protected List<RestorableDomainConfiguration> rdcs
List of config changes made by a test method

Constructor Detail

EnterpriseResourceProvisioner

public EnterpriseResourceProvisioner()
Method Detail

getDerbyDBRootDir

public static File getDerbyDBRootDir()

restoreDomainConfiguration

protected void restoreDomainConfiguration()
                                   throws org.glassfish.embeddable.GlassFishException
Throws:
org.glassfish.embeddable.GlassFishException

configureEmbeddedDerby

protected RestorableDomainConfiguration configureEmbeddedDerby(org.glassfish.embeddable.GlassFish gf,
                                                               String poolName,
                                                               File db)
                                                        throws org.glassfish.embeddable.GlassFishException
Configures jdbc/__default datasource to use a custom pool that uses embedded derby.

Throws:
org.glassfish.embeddable.GlassFishException

createJmsCF

protected RestorableDomainConfiguration createJmsCF(org.glassfish.embeddable.GlassFish gf,
                                                    String cfName)
                                             throws org.glassfish.embeddable.GlassFishException
Throws:
org.glassfish.embeddable.GlassFishException

createJmsTopic

protected RestorableDomainConfiguration createJmsTopic(org.glassfish.embeddable.GlassFish gf,
                                                       String topicName)
                                                throws org.glassfish.embeddable.GlassFishException
Throws:
org.glassfish.embeddable.GlassFishException

createJmsQueue

protected RestorableDomainConfiguration createJmsQueue(org.glassfish.embeddable.GlassFish gf,
                                                       String topicName)
                                                throws org.glassfish.embeddable.GlassFishException
Throws:
org.glassfish.embeddable.GlassFishException


Copyright © 2011. All Rights Reserved.