com.massimo.tools.scriptrunner
Class Constants

java.lang.Object
  extended by com.massimo.tools.scriptrunner.Constants

public final class Constants
extends Object

Well-known Strings.
The different types of strings are: XML Element tags; XML Attribute names; well-known property names; standard locations; standard audot connection name.


Field Summary
static String ATTRIBUTE_BINDS
          A comma-separated list of bind variables.
static String ATTRIBUTE_CLASS
          The name of a class implementing Task.
static String ATTRIBUTE_CLASSPATH
          Additions to the classpath for this Task
static String ATTRIBUTE_DATABASE_NAME
          Standard JDBC3 configuration property.
static String ATTRIBUTE_DATASOURCE_CLASS
          Class name of a javax.sql.DataSource implementation and preferably javax.sql.ConectionPoolDataSource
static String ATTRIBUTE_DATASOURCE_NAME
          Unique name for the DataSource
static String ATTRIBUTE_DATASOURCE_TYPE
          If provided, sets the DBMS type definitively for this connection.
static String ATTRIBUTE_DURATION
          How long to poll for, in seconds.
static String ATTRIBUTE_IFNAME
          The name of the property whose value will be to checked.
static String ATTRIBUTE_IFVALUE
          A comma-separated list of values.
static String ATTRIBUTE_IGNORE_ERROR_CODES
          A comma-separated list of error codes that can be ignored.
static String ATTRIBUTE_LOG_PROGRESS
          If false, do not record task's audit trail.
static String ATTRIBUTE_NAME
          A Task name
static String ATTRIBUTE_OUTPUT
          XSL Task output file
static String ATTRIBUTE_PARAMETERS
          A comma-separated list of string-substitution parameter names, in order.
static String ATTRIBUTE_PASSWORD
          Standard JDBC3 configuration property.
static String ATTRIBUTE_POLL
          How often to poll, in seconds.
static String ATTRIBUTE_PORT_NUMBER
          Standard JDBC3 configuration property.
static String ATTRIBUTE_POSTCHECK
          The name of a database function to be checked after the main SQL returns successfully.
static String ATTRIBUTE_PRECHECK
          The name of a database function to be checked before the main SQL is executed.
static String ATTRIBUTE_SERVER_NAME
          Standard JDBC3 configuration property.
static String ATTRIBUTE_SHOW_ERROR
          If true, echo the process error stream to stderr.
static String ATTRIBUTE_SHOW_OUTPUT
          If true, echo the process output stream to stdout.
static String ATTRIBUTE_SLEEP_RESULT
          Sleep task result.
static String ATTRIBUTE_STATMENT_SPLIT
          Java regular expression for identifying individual SQL statements
static String ATTRIBUTE_THREAD_COUNT
          The number of threads to execute the child tasks in
static String ATTRIBUTE_TYPE
          The Task type
static String ATTRIBUTE_USER
          Standard JDBC3 configuration property.
static String ATTRIBUTE_XML
          XSL Task input file
static String ATTRIBUTE_XSL
          XSL Task transform file
static String DATASOURCE_AUDIT
          The name of the DataSource used by the ExecutionContext
static String DATASOURCE_DEFAULT
          The default dataSourceName when looking for a Connection
static String ELEMENT_CONNECTION
          DataSource name and configuration, to be used by the parent task and its children.
static String ELEMENT_CONNECTIONS
          List of connection elements
static String ELEMENT_INPUT
          The text is input for the process.
static String ELEMENT_PROPERTIES
          List of property elements
static String ELEMENT_PROPERTY
          Name-value pair
static String ELEMENT_TASK
           
static String ELEMENT_TEMPLATE
          Template for generated task elements
static String LOCATION_DOCUMENTER_XSL
          ScriptRunner documenter XSL location
static String LOCATION_XML_SCHEMA
          ScriptRunner XML schema location
static String PROPERTY_ALL_SERIAL
          Change Parallel to run in Serial.
static String PROPERTY_CONNECTIONS
          Command line connections file
static String PROPERTY_CWD
          The working directory, or base URI, of the current task's defining XML
static String PROPERTY_FILE_DIR
          Define to set parent of FileExecutionContext's save directory.
static String PROPERTY_RUN_IDENTIFIER
          The current run identifier
static String PROPERTY_TASK_NAME
          The current task name
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_BINDS

public static final String ATTRIBUTE_BINDS
A comma-separated list of bind variables.

See Also:
SQLTask, Constant Field Values

ATTRIBUTE_CLASS

public static final String ATTRIBUTE_CLASS
The name of a class implementing Task.

See Also:
Task, TaskFactory, Constant Field Values

ATTRIBUTE_CLASSPATH

public static final String ATTRIBUTE_CLASSPATH
Additions to the classpath for this Task

See Also:
AbstractTask, Constant Field Values

ATTRIBUTE_DATABASE_NAME

public static final String ATTRIBUTE_DATABASE_NAME
Standard JDBC3 configuration property.

See Also:
ELEMENT_CONNECTION, Constant Field Values

ATTRIBUTE_DATASOURCE_CLASS

public static final String ATTRIBUTE_DATASOURCE_CLASS
Class name of a javax.sql.DataSource implementation and preferably javax.sql.ConectionPoolDataSource

See Also:
ELEMENT_CONNECTION, Constant Field Values

ATTRIBUTE_DATASOURCE_NAME

public static final String ATTRIBUTE_DATASOURCE_NAME
Unique name for the DataSource

See Also:
ELEMENT_CONNECTION, Constant Field Values

ATTRIBUTE_DATASOURCE_TYPE

public static final String ATTRIBUTE_DATASOURCE_TYPE
If provided, sets the DBMS type definitively for this connection. Otherwise, the DBMS type is guessed form the dataSource class name or the Connection class name. Values are restricted to: ORACLE, POSTGRES

See Also:
ELEMENT_CONNECTION, DatabaseType, Constant Field Values

ATTRIBUTE_DURATION

public static final String ATTRIBUTE_DURATION
How long to poll for, in seconds.

See Also:
PollTask, Constant Field Values

ATTRIBUTE_IFNAME

public static final String ATTRIBUTE_IFNAME
The name of the property whose value will be to checked.

See Also:
IfTask, Constant Field Values

ATTRIBUTE_IFVALUE

public static final String ATTRIBUTE_IFVALUE
A comma-separated list of values. If the value of the property named by ifname matches one of these, the contained task will be executed. If not set, the contained task wil be executed if the ifname property is set to any value.

See Also:
IfTask, Constant Field Values

ATTRIBUTE_IGNORE_ERROR_CODES

public static final String ATTRIBUTE_IGNORE_ERROR_CODES
A comma-separated list of error codes that can be ignored.

See Also:
AbstractTask, Constant Field Values

ATTRIBUTE_LOG_PROGRESS

public static final String ATTRIBUTE_LOG_PROGRESS
If false, do not record task's audit trail.

See Also:
AbstractTask, Constant Field Values

ATTRIBUTE_NAME

public static final String ATTRIBUTE_NAME
A Task name

See Also:
Task, Constant Field Values

ATTRIBUTE_OUTPUT

public static final String ATTRIBUTE_OUTPUT
XSL Task output file

See Also:
XSLTask, Constant Field Values

ATTRIBUTE_PARAMETERS

public static final String ATTRIBUTE_PARAMETERS
A comma-separated list of string-substitution parameter names, in order.

See Also:
AbstractTask, MessageFormat, Constant Field Values

ATTRIBUTE_PASSWORD

public static final String ATTRIBUTE_PASSWORD
Standard JDBC3 configuration property.

See Also:
ELEMENT_CONNECTION, Constant Field Values

ATTRIBUTE_POLL

public static final String ATTRIBUTE_POLL
How often to poll, in seconds.

See Also:
PollTask, Constant Field Values

ATTRIBUTE_PORT_NUMBER

public static final String ATTRIBUTE_PORT_NUMBER
Standard JDBC3 configuration property.

See Also:
ELEMENT_CONNECTION, Constant Field Values

ATTRIBUTE_POSTCHECK

public static final String ATTRIBUTE_POSTCHECK
The name of a database function to be checked after the main SQL returns successfully. The result will override the script result.

See Also:
SQLTask, Constant Field Values

ATTRIBUTE_PRECHECK

public static final String ATTRIBUTE_PRECHECK
The name of a database function to be checked before the main SQL is executed. The main SQL will only be executed on success.

See Also:
SQLTask, Constant Field Values

ATTRIBUTE_SERVER_NAME

public static final String ATTRIBUTE_SERVER_NAME
Standard JDBC3 configuration property.

See Also:
ELEMENT_CONNECTION, Constant Field Values

ATTRIBUTE_SHOW_ERROR

public static final String ATTRIBUTE_SHOW_ERROR
If true, echo the process error stream to stderr.

See Also:
ProcessTask, Constant Field Values

ATTRIBUTE_SHOW_OUTPUT

public static final String ATTRIBUTE_SHOW_OUTPUT
If true, echo the process output stream to stdout.

See Also:
ProcessTask, Constant Field Values

ATTRIBUTE_SLEEP_RESULT

public static final String ATTRIBUTE_SLEEP_RESULT
Sleep task result. Value should be an integer.

See Also:
SleepTask, Constant Field Values

ATTRIBUTE_STATMENT_SPLIT

public static final String ATTRIBUTE_STATMENT_SPLIT
Java regular expression for identifying individual SQL statements

See Also:
SQLTask, Constant Field Values

ATTRIBUTE_THREAD_COUNT

public static final String ATTRIBUTE_THREAD_COUNT
The number of threads to execute the child tasks in

See Also:
ThreadedSQLTask, Constant Field Values

ATTRIBUTE_TYPE

public static final String ATTRIBUTE_TYPE
The Task type

See Also:
Task, TaskFactory, Constant Field Values

ATTRIBUTE_USER

public static final String ATTRIBUTE_USER
Standard JDBC3 configuration property.

See Also:
ELEMENT_CONNECTION, Constant Field Values

ATTRIBUTE_XML

public static final String ATTRIBUTE_XML
XSL Task input file

See Also:
XSLTask, Constant Field Values

ATTRIBUTE_XSL

public static final String ATTRIBUTE_XSL
XSL Task transform file

See Also:
XSLTask, Constant Field Values

DATASOURCE_AUDIT

public static final String DATASOURCE_AUDIT
The name of the DataSource used by the ExecutionContext

See Also:
ScriptRunner, Constant Field Values

DATASOURCE_DEFAULT

public static final String DATASOURCE_DEFAULT
The default dataSourceName when looking for a Connection

See Also:
ConnectionFactory, Constant Field Values

ELEMENT_CONNECTION

public static final String ELEMENT_CONNECTION
DataSource name and configuration, to be used by the parent task and its children.

See Also:
Constant Field Values

ELEMENT_CONNECTIONS

public static final String ELEMENT_CONNECTIONS
List of connection elements

See Also:
Constant Field Values

ELEMENT_INPUT

public static final String ELEMENT_INPUT
The text is input for the process.

See Also:
ProcessTask, Constant Field Values

ELEMENT_PROPERTIES

public static final String ELEMENT_PROPERTIES
List of property elements

See Also:
Constant Field Values

ELEMENT_PROPERTY

public static final String ELEMENT_PROPERTY
Name-value pair

See Also:
Constant Field Values

ELEMENT_TASK

public static final String ELEMENT_TASK
See Also:
Task, Constant Field Values

ELEMENT_TEMPLATE

public static final String ELEMENT_TEMPLATE
Template for generated task elements

See Also:
SQLGeneratorTask, Constant Field Values

LOCATION_DOCUMENTER_XSL

public static final String LOCATION_DOCUMENTER_XSL
ScriptRunner documenter XSL location

See Also:
Main, Constant Field Values

LOCATION_XML_SCHEMA

public static final String LOCATION_XML_SCHEMA
ScriptRunner XML schema location

See Also:
ScriptRunner, Constant Field Values

PROPERTY_ALL_SERIAL

public static final String PROPERTY_ALL_SERIAL
Change Parallel to run in Serial. Useful for debugging

See Also:
TaskFactory, Constant Field Values

PROPERTY_CONNECTIONS

public static final String PROPERTY_CONNECTIONS
Command line connections file

See Also:
Constant Field Values

PROPERTY_CWD

public static final String PROPERTY_CWD
The working directory, or base URI, of the current task's defining XML

See Also:
AbstractTask, Constant Field Values

PROPERTY_FILE_DIR

public static final String PROPERTY_FILE_DIR
Define to set parent of FileExecutionContext's save directory.

See Also:
Constant Field Values

PROPERTY_RUN_IDENTIFIER

public static final String PROPERTY_RUN_IDENTIFIER
The current run identifier

See Also:
AbstractExecutionContext, AbstractTask, Main, Constant Field Values

PROPERTY_TASK_NAME

public static final String PROPERTY_TASK_NAME
The current task name

See Also:
AbstractTask, Constant Field Values