|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jts.CosTransactions.Configuration
public class Configuration
Provides interaction with the execution environment.
| Field Summary | |
|---|---|
static java.lang.String |
COMMIT_ONE_PHASE_DURING_RECOVERY
|
static java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String |
INSTANCE_NAME
|
static java.lang.String |
JTS_SUBDIRECTORY
The default subdirectory in which log and repository files are stored. |
static java.lang.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 java.lang.String |
LOG_DIRECTORY
The property key used to specify the directory to which transaction log files should be written. |
static java.lang.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 java.lang.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 java.lang.String |
TRACE_DIRECTORY
The property key used to specify the directory to which trace files and the error log should be written. |
| Constructor Summary | |
|---|---|
Configuration()
|
|
| Method Summary | |
|---|---|
static void |
disableFileLogging()
|
static void |
disableTrace()
|
static void |
enableTrace()
|
static java.lang.String |
getDirectory(java.lang.String envDir,
java.lang.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(java.lang.String logPath)
Returns the LogFile for the given log path. |
static org.omg.CORBA.ORB |
getORB()
Returns the identity of the ORB. |
static org.omg.PortableServer.POA |
getPOA(java.lang.String type)
Returns the identity of the POA to be used for the given type of objects. |
static java.lang.String |
getPropertyValue(java.lang.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 java.lang.String |
getServerName()
Returns the name of the server. |
static java.lang.String |
getServerName(java.lang.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(java.lang.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(java.lang.String logPath,
com.sun.jts.CosTransactions.LogFile newLogFile)
Sets the log file for the given log path. |
static void |
setORB(org.omg.CORBA.ORB newORB)
Sets the identity of the ORB. |
static void |
setPOA(java.lang.String type,
org.omg.PortableServer.POA poa)
Sets the identity of the POA to be used for the given types of object. |
static void |
setProperties(java.util.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(java.lang.String name,
boolean recoverableServer)
Sets the name of the server. |
static void |
setServerName(java.lang.String logPath,
java.lang.String name)
Sets the name of the server for the given log path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COMMIT_ONE_PHASE_DURING_RECOVERY
public static final int LAO_PREPARE_OK
public static final long COMMIT_RETRY_WAIT
public static final java.lang.String TRACE_DIRECTORY
The value is com.sun.jts.traceDirectory.
The default value used for this property is the current directory.
public static final java.lang.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 java.lang.String DB_LOG_RESOURCE
The value is com.sun.jts.logResource.
public static final java.lang.String ERR_LOGGING
public static final java.lang.String MANUAL_RECOVERY
public static final java.lang.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 java.lang.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 java.lang.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 java.lang.String INSTANCE_NAME
public static final java.lang.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 java.lang.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
| Constructor Detail |
|---|
public Configuration()
| Method Detail |
|---|
public static java.lang.String getDirectory(java.lang.String envDir,
java.lang.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(java.lang.String name,
boolean recoverableServer)
name - The server name. Non-recoverable servers have null.public static final java.lang.String getServerName()
Non-recoverable servers may not have a name, in which case the method returns null.
-
public static final void setServerName(java.lang.String logPath,
java.lang.String name)
logPath - Location, where the logs are stored.name - The server name.public static final java.lang.String getServerName(java.lang.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(java.util.Properties newProp)
prop - The Properties.public static final java.lang.String getPropertyValue(java.lang.String envValue)
envValue - The environment variable required.
public static final void setORB(org.omg.CORBA.ORB newORB)
newORB - The ORB.public static final org.omg.CORBA.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(java.lang.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(java.lang.String logPath)
logPath - log location.
public static final void setPOA(java.lang.String type,
org.omg.PortableServer.POA poa)
type - The type of objects to use the POA.POA - The POA object.public static final org.omg.PortableServer.POA getPOA(java.lang.String type)
type - The type of objects
public static final boolean isTraceEnabled()
public static final void enableTrace()
public static final void disableTrace()
public static void setKeypointTrigger(int keypoint)
public static void setCommitRetryVar(java.lang.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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||