com.trendmicro.grid.acl.mssql
Class MSSQLConfigurator

java.lang.Object
  extended by com.trendmicro.grid.acl.mssql.MSSQLConfigurator
All Implemented Interfaces:
MSSQLSystemProperties, net.sf.tinyjee.config.ConfigurationVisitor

@ResourceDocumentation(name="gacl-mssql",
                       description="Defines an outing JDBC connection to the MSSQL database used to store the CoreDB schema.\n\nThis connection is only active if the system property \'mssqlserver\' is set to the server\'s \'hostname\'. The access layer will gracefully fallback to using a local HSQL database if no MSSQL server is specified.\n\nUse the command line option \'-Dmssqlserver=hostname\' to let the access layer use the MSSQL server instead of its own embedded database.\n\nFor high-availability use \'-DmssqlserverFailover=hostname\' to specify an alternate failover partner server to use when the primary MSSQL server is shutdown.\n\nNote: In some cases it may be desirable to harden the MSSQL host configuration.\nIn order to achieve this, remove the \'if\' attribute from the connection tag and replace \'${mssqlserver}\' inside the connection address with the hardened host value. After this change, setting the command line option -Dmssqlserver will no longer have any effect.",
                       properties={@PropertyDocumentation(property="auto-configured-version",description="This is a revision number for the auto-configurator.\nDo not modify this."),@PropertyDocumentation(property="auto-configured-useXA",description="This is a state information for the auto-configurator.\nDo not modify this.\n\nUse \'-Dmssql.no.xa=true\' to enable emulated-XA instead of real XA.")})
@SectionDocumentation(name="tinyjee-jpa",
                      properties=@PropertyDocumentation(property="jpaDataSource.CoreDB",description="Sets the name of the datasource to use for accessing the GRID CoreDB schema. By default, an expression is used that maps the MSSQL datasource if available and uses the embedded HSQL database as a fallback. It is not recommended to change this default value."))
public class MSSQLConfigurator
extends Object
implements net.sf.tinyjee.config.ConfigurationVisitor, MSSQLSystemProperties

Configures the MSSQL Datasource inside the main configuration file.

Author:
Juergen_Kellerer, 2010-06-12

Field Summary
static String CONFIGURATION_USE_XA
           
static String CONFIGURATION_VERSION
           
static int CONFIGURATION_VERSION_VALUE
           
static boolean MSSQL_NO_XA
          Indicates whether the MSSQL driver is used with emulated instead of full XA support.
static boolean MSSQL_USE_AO
           
static String NAME_CONNECTION
           
 
Fields inherited from interface net.sf.tinyjee.config.ConfigurationVisitor
VISITORS
 
Fields inherited from interface com.trendmicro.grid.acl.mssql.MSSQLSystemProperties
PROPERTY_AO_READONLY, PROPERTY_FAILOVER_HOST, PROPERTY_HOST, PROPERTY_MOSUL_USE_PARAMETRIZED_TAG_QUERIES, PROPERTY_MSSQL_USE_FTSEARCH_TAG_QUERIES, PROPERTY_MSSQL_USE_TAG_QUERY_PROVIDER_ALWAYS, PROPERTY_NO_XA, PROPERTY_USE_AO
 
Constructor Summary
MSSQLConfigurator()
           
 
Method Summary
 void visitConfiguration(net.sf.tinyjee.config.Configuration configuration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_CONNECTION

public static final String NAME_CONNECTION
See Also:
Constant Field Values

CONFIGURATION_VERSION

public static final String CONFIGURATION_VERSION
See Also:
Constant Field Values

CONFIGURATION_VERSION_VALUE

public static final int CONFIGURATION_VERSION_VALUE
See Also:
Constant Field Values

CONFIGURATION_USE_XA

public static final String CONFIGURATION_USE_XA
See Also:
Constant Field Values

MSSQL_NO_XA

public static final boolean MSSQL_NO_XA
Indicates whether the MSSQL driver is used with emulated instead of full XA support.


MSSQL_USE_AO

public static final boolean MSSQL_USE_AO
Constructor Detail

MSSQLConfigurator

public MSSQLConfigurator()
Method Detail

visitConfiguration

public void visitConfiguration(net.sf.tinyjee.config.Configuration configuration)
Specified by:
visitConfiguration in interface net.sf.tinyjee.config.ConfigurationVisitor