public class CoreEnvironmentBean extends Object implements CoreEnvironmentBeanMBean
| Modifier and Type | Field and Description |
|---|---|
static int |
NODE_NAME_SIZE |
| Constructor and Description |
|---|
CoreEnvironmentBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBuildId() |
String |
getBuildVersion() |
String |
getNodeIdentifier()
Returns the Node Identifier.
|
int |
getPid()
Returns the process id to use if ManualProcessId is selected.
|
Process |
getProcessImplementation()
Returns an instance of a class implementing com.arjuna.ats.arjuna.utils.Process.
|
String |
getProcessImplementationClassName()
Returns the class name of the Process implementation to use.
|
int |
getSocketProcessIdMaxPorts()
Returns the maximum number of ports to search when looking for one that is free.
|
int |
getSocketProcessIdPort()
Returns the port number for the Socket based process id implementation.
|
int |
getTimeoutFactor() |
String |
getVarDir()
Returns the 'var' directory path.
|
boolean |
isAllowMultipleLastResources()
Returns if multiple last (i.e.
|
boolean |
isDisableMultipleLastResourcesWarning()
Returns if the per-transaction warning on enlistment of multiple last resources is disabled or not.
|
void |
setAllowMultipleLastResources(boolean allowMultipleLastResources)
Sets if multiple last (i.e.
|
void |
setDisableMultipleLastResourcesWarning(boolean disableMultipleLastResourcesWarning)
Sets if the per-transaction warning on enlistment of multiple last resource is disabled or not.
|
void |
setNodeIdentifier(String nodeIdentifier)
Sets the node identifier.
|
void |
setPid(int pid)
Sets the process id to use if ManualProcessId is selected.
|
void |
setProcessImplementation(Process instance)
Sets the instance of com.arjuna.ats.arjuna.utils.Process
|
void |
setProcessImplementationClassName(String processImplementationClassName)
Sets the class name of the Process implementation to use.
|
void |
setSocketProcessIdMaxPorts(int socketProcessIdMaxPorts)
Sets the maximum number of ports the socket process id implemention will try when searching to find one that is free.
|
void |
setSocketProcessIdPort(int socketProcessIdPort)
Sets the port on which the socket based process id implementation will listen.
|
void |
setTimeoutFactor(int timeoutFactor) |
void |
setVarDir(String varDir)
Sets the 'var' directory path
|
public static final int NODE_NAME_SIZE
public String getVarDir()
getVarDir in interface CoreEnvironmentBeanMBeanpublic void setVarDir(String varDir)
varDir - the path to the 'var' directory.public String getNodeIdentifier()
getNodeIdentifier in interface CoreEnvironmentBeanMBeanpublic void setNodeIdentifier(String nodeIdentifier) throws CoreEnvironmentBeanException
nodeIdentifier - the Node Identifier.CoreEnvironmentBeanException - if node identifier is null or too long.public int getSocketProcessIdPort()
getSocketProcessIdPort in interface CoreEnvironmentBeanMBeanpublic void setSocketProcessIdPort(int socketProcessIdPort)
socketProcessIdPort - the port number to bind to.public int getTimeoutFactor()
public void setTimeoutFactor(int timeoutFactor)
public int getSocketProcessIdMaxPorts()
getSocketProcessIdMaxPorts in interface CoreEnvironmentBeanMBeanpublic void setSocketProcessIdMaxPorts(int socketProcessIdMaxPorts)
socketProcessIdMaxPorts - the maximum number of ports to try.public String getProcessImplementationClassName()
getProcessImplementationClassName in interface CoreEnvironmentBeanMBeanpublic void setProcessImplementationClassName(String processImplementationClassName)
processImplementationClassName - the name of a class implementing Process.public Process getProcessImplementation()
public void setProcessImplementation(Process instance)
instance - an Object that implements Process, or null.public int getPid()
getPid in interface CoreEnvironmentBeanMBeanpublic void setPid(int pid)
pid - the process id to use.public boolean isAllowMultipleLastResources()
isAllowMultipleLastResources in interface CoreEnvironmentBeanMBeanpublic void setAllowMultipleLastResources(boolean allowMultipleLastResources)
allowMultipleLastResources - true if multiple 1PC resource should be permitted, false otherwise.public boolean isDisableMultipleLastResourcesWarning()
isDisableMultipleLastResourcesWarning in interface CoreEnvironmentBeanMBeanpublic void setDisableMultipleLastResourcesWarning(boolean disableMultipleLastResourcesWarning)
disableMultipleLastResourcesWarning - true to disable the warning, false otherwise.public String getBuildVersion()
getBuildVersion in interface CoreEnvironmentBeanMBeanpublic String getBuildId()
getBuildId in interface CoreEnvironmentBeanMBeanCopyright © 2014. All Rights Reserved.