public class Configuration extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMIT_ONE_PHASE_DURING_RECOVERY |
static String |
COMMIT_RETRY
The property key used to specify the number of times the JTS should retry
a commit or resync operation before giving up.
|
static long |
COMMIT_RETRY_WAIT |
static String |
DB_LOG_RESOURCE
The property key used to specify the resource which will be used to wirte
transaction logs.
|
static int |
DEFAULT_INVALID
getDirectory return value which indicates that the required directory was
either not specified or was specified and invalid, and that the default
subdirectory does not exist.
|
static int |
DEFAULT_USED
getDirectory return value which indicates that the required directory was
either not specified or was specified and invalid, and that the default
subdirectory exists.
|
static int |
DIRECTORY_OK
getDirectory return value which indicates that the required directory was
specified and is OK.
|
static String |
ERR_LOGGING
Whether to write warnings and errors to jts.log file
if this property has any value, it is active, otherwise it is inactive
|
static int |
EXPECTED_CONCURRENT_THREADS
The approximate concurrent transactions expected.
|
static int |
EXPECTED_CONCURRENT_TRANSACTIONS
The approximate concurrent transactions expected.
|
static String |
HEURISTIC_DIRECTION
The property key used to specify whether the JTS should assume a transaction
is to be committed or rolled back if an outcome cannot be obtained during
recovery.
|
static String |
INSTANCE_NAME |
static String |
JTS_SUBDIRECTORY
The default subdirectory in which log and repository files are stored.
|
static String |
KEYPOINT_COUNT
The property key used to specify the number of transactions between keypoint
operations on the log.
|
static int |
LAO_PREPARE_OK |
static String |
LOG_DIRECTORY
The property key used to specify the directory to which transaction log files
should be written.
|
static String |
MANUAL_RECOVERY
This property indicates that XA Resources would be passed in via
the TM.recover() method, and that the recovery thread would have
to wait until the resources are passed in.
|
static String |
TIMEOUT_INTERVAL
The property is used to specify the time interval in seconds for which the timeout
manager would scan for timedout transactions.
|
static String |
TRACE_DIRECTORY
The property key used to specify the directory to which trace files and the
error log should be written.
|
| Constructor and Description |
|---|
Configuration() |
| Modifier and Type | Method and Description |
|---|---|
static void |
disableFileLogging() |
static void |
disableTrace() |
static void |
enableTrace() |
static String |
getDirectory(String envDir,
String defaultSubdirectory,
int[] result)
Returns a valid directory for a particular purpose.
|
static org.omg.CosTransactions.TransactionFactory |
getFactory()
Returns the identity of the TransactionFactory.
|
static com.sun.jts.CosTransactions.LogFile |
getLogFile()
Returns the identity of the LogFile for the process.
|
static com.sun.jts.CosTransactions.LogFile |
getLogFile(String logPath)
Returns the LogFile for the given log path.
|
static ORB |
getORB()
Returns the identity of the ORB.
|
static POA |
getPOA(String type)
Returns the identity of the POA to be used for the given type of objects.
|
static String |
getPropertyValue(String envValue)
Returns the value of the given variable.
|
static com.sun.jts.CosTransactions.ProxyChecker |
getProxyChecker()
Returns the identity of the ProxyChecker.
|
static int |
getRetries() |
static String |
getServerName()
Returns the name of the server.
|
static String |
getServerName(String logPath)
Returns the name of the server for the given log path.
|
static byte[] |
getServerNameByteArray()
Returns a byte array with the name of the server.
|
static boolean |
isAppClientContainer() |
static boolean |
isDBLoggingEnabled() |
static boolean |
isFileLoggingDisabled() |
static boolean |
isLocalFactory()
Determines whether we hava a local factory or a remote factory.
|
static boolean |
isRecoverable()
Determines whether the JTS instance is recoverable.
|
static boolean |
isTraceEnabled() |
static void |
setAsAppClientConatiner(boolean value) |
static void |
setCommitRetryVar(String commitRetryString) |
static void |
setFactory(org.omg.CosTransactions.TransactionFactory newFactory,
boolean localTxFactory)
Sets the identity of the TransactionFactory and indicates if it is local
or remote.
|
static void |
setKeypointTrigger(int keypoint) |
static void |
setLogFile(com.sun.jts.CosTransactions.LogFile newLogFile)
Sets the identity of the log file for the process.
|
static void |
setLogFile(String logPath,
com.sun.jts.CosTransactions.LogFile newLogFile)
Sets the log file for the given log path.
|
static void |
setORB(ORB newORB)
Sets the identity of the ORB.
|
static void |
setPOA(String type,
POA poa)
Sets the identity of the POA to be used for the given types of object.
|
static void |
setProperties(Properties newProp)
Sets the Properties object to be used for this JTS instance.
|
static void |
setProxyChecker(com.sun.jts.CosTransactions.ProxyChecker newChecker)
Sets the identity of the ProxyChecker.
|
static void |
setServerName(String name,
boolean recoverableServer)
Sets the name of the server.
|
static void |
setServerName(String logPath,
String name)
Sets the name of the server for the given log path.
|
public static final String COMMIT_ONE_PHASE_DURING_RECOVERY
public static final int LAO_PREPARE_OK
public static final long COMMIT_RETRY_WAIT
public static final String TRACE_DIRECTORY
The value is com.sun.jts.traceDirectory.
The default value used for this property is the current directory.
public static final String LOG_DIRECTORY
The value is com.sun.jts.logDirectory.
The default value used for this property is the "jts" subdirectory from the current directory, if that exists, otherwise the current directory.
public static final String DB_LOG_RESOURCE
The value is com.sun.jts.logResource.
public static final String ERR_LOGGING
public static final String MANUAL_RECOVERY
public static final String COMMIT_RETRY
The value is com.sun.jts.commitRetry.
If this property has no value, retries continue indefinitely. A value of zero indicates that no retries should be made.
public static final String HEURISTIC_DIRECTION
The value is com.sun.jts.heuristicDirection.
The default is to assume that the transaction should be rolled back. If the value is '1', the transaction should be committed.
public static final String KEYPOINT_COUNT
The value is com.sun.jts.keypointCount.
The default value for this property is 100. If the value is specified as zero, then no keypoints are taken.
public static final String INSTANCE_NAME
public static final String TIMEOUT_INTERVAL
The value is com.sun.jts.timeoutInterval"
This needs to be a positive integer value greater than 10. If the value is less than 10, illegal or unspecified a default value of 10 seconds is assumed.
public static final String JTS_SUBDIRECTORY
public static final int DIRECTORY_OK
public static final int DEFAULT_USED
public static final int DEFAULT_INVALID
public static final int EXPECTED_CONCURRENT_TRANSACTIONS
public static final int EXPECTED_CONCURRENT_THREADS
public static String getDirectory(String envDir, String defaultSubdirectory, int[] result)
envDir - The environment variable containing the directory.defaultSubdirectory - The default subdirectory to use.result - A single-element array which will hold a value
indicating whether the requested directory,
default subdirectory, or current directory
had to be used.public static final void setServerName(String name, boolean recoverableServer)
name - The server name. Non-recoverable servers have null.public static final String getServerName()
Non-recoverable servers may not have a name, in which case the method returns null.
public static final void setServerName(String logPath, String name)
logPath - Location, where the logs are stored.name - The server name.public static final String getServerName(String logPath)
logPath - location of the log files.public static final byte[] getServerNameByteArray()
Non-recoverable servers may not have a name, in which case the method returns null.
public static final void setProperties(Properties newProp)
prop - The Properties.public static final String getPropertyValue(String envValue)
envValue - The environment variable required.public static final void setORB(ORB newORB)
newORB - The ORB.public static final ORB getORB()
public static final void setFactory(org.omg.CosTransactions.TransactionFactory newFactory,
boolean localTxFactory)
newFactory - The TransactionFactory.localFactory - Indicates if the factory is local or remote.public static final org.omg.CosTransactions.TransactionFactory getFactory()
public static final boolean isLocalFactory()
public static final boolean isRecoverable()
public static final void setProxyChecker(com.sun.jts.CosTransactions.ProxyChecker newChecker)
newChecker - The new ProxyChecker.public static final com.sun.jts.CosTransactions.ProxyChecker getProxyChecker()
public static final void setLogFile(com.sun.jts.CosTransactions.LogFile newLogFile)
logFile - The new LogFile object.public static final com.sun.jts.CosTransactions.LogFile getLogFile()
public static final void setLogFile(String logPath, com.sun.jts.CosTransactions.LogFile newLogFile)
logPath - The new LogFile object.newLogFile - The new LogFile object.public static final com.sun.jts.CosTransactions.LogFile getLogFile(String logPath)
logPath - log location.public static final void setPOA(String type, POA poa)
type - The type of objects to use the POA.POA - The POA object.public static final POA getPOA(String type)
type - The type of objectspublic static final boolean isTraceEnabled()
public static final void enableTrace()
public static final void disableTrace()
public static void setKeypointTrigger(int keypoint)
public static void setCommitRetryVar(String commitRetryString)
public static int getRetries()
public static void setAsAppClientConatiner(boolean value)
public static boolean isAppClientContainer()
public static boolean isDBLoggingEnabled()
public static void disableFileLogging()
public static boolean isFileLoggingDisabled()
Copyright © 2017. All rights reserved.