Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.management.configuration
Interface JDBCStoreMBean

All Superinterfaces:
ConfigurationMBean, DeploymentMBean, DescriptorBean, DynamicDeploymentMBean, DynamicMBean, GenericJDBCStoreMBean, MBeanRegistration, NotificationBroadcaster, PersistentStoreMBean, SettableBean, WebLogicMBean
All Known Subinterfaces:
TransactionLogJDBCStoreMBean

@SingleTargetOnly
public interface JDBCStoreMBean
extends GenericJDBCStoreMBean, PersistentStoreMBean

Defines an instance of the persistent store that stores its persistent records in a JDBC-accessible database. It may be used by JMS and by other subsystems.

Since:
9.0.0.0

Field Summary

 

Fields inherited from interface weblogic.management.configuration.DeploymentMBean
DEFAULT_ORDER, MAX_ORDER, MIN_ORDER

 

Method Summary
abstract  JDBCSystemResourceMBean getDataSource()
          The JDBC data source used by this JDBC store to access its backing table.
abstract  int getDeletesPerBatchMaximum()
          The maximum number of table rows that are deleted per database call.
abstract  int getDeletesPerStatementMaximum()
          The maximum number of table rows that are deleted per database call.
abstract  int getInsertsPerBatchMaximum()
          The maximum number of table rows that are inserted per database call.
abstract  int getReconnectRetryIntervalMillis()
          The length of time in milliseconds between reconnection attempts during the reconnection retry period.
abstract  int getReconnectRetryPeriodMillis()
          Returns the length of time in milliseconds during which the persistent store will attempt to re-establish a connection to the database.
abstract  int getThreeStepThreshold()
          Specifies the threshold, in bytes, when the JDBC store uses 3 steps (insert, select, populate) instead of 1 step (insert) to populate an Oracle Blob data type.
abstract  int getWorkerCount()
          The number of JDBC store worker threads to process the workerload.
abstract  int getWorkerPreferredBatchSize()
          Specifies the batch size when the Worker Count attribute is configured to a value greater than 1.
abstract  boolean isOraclePiggybackCommitEnabled()
          Enables committing a batch of INSERT or DELETE operations with the last operation of the transaction instead of issuing a separate commit call to database server which saves a server round trip.
abstract  void setDataSource(JDBCSystemResourceMBean dataSource)
          Sets the value of the DataSource attribute.
abstract  void setDeletesPerBatchMaximum(int deletesPerBatchMaximum)
          Sets the value of the DeletesPerBatchMaximum attribute.
abstract  void setDeletesPerStatementMaximum(int deletesPerBatchMaximum)
          Sets the value of the DeletesPerStatementMaximum attribute.
abstract  void setInsertsPerBatchMaximum(int deletesPerBatchMaximum)
          Sets the value of the InsertsPerBatchMaximu attribute.
abstract  void setOraclePiggybackCommitEnabled(boolean enable)
          Sets the value of the OraclePiggybackCommitEnabled attribute.
abstract  void setReconnectRetryIntervalMillis(int reconnectRetryIntervalMillis)
          Set the length of time in milliseconds between reconnection attempts during the reconnection retry period.
abstract  void setReconnectRetryPeriodMillis(int reconnectRetryPeriodMillis)
          Set the length of time in milliseconds during which the persistent store will attempt to re-establish a connection to the database.
abstract  void setThreeStepThreshold(int threeStepThreshold)
          Sets the value of the ThreeStepThreshold attribute.
abstract  void setWorkerCount(int workerCount)
          Sets the value of the WorkerCount attribute.
abstract  void setWorkerPreferredBatchSize(int workerLoadSize)
          Sets the value of the WorkerPreferredBatchSize attribute.

 

Methods inherited from interface weblogic.management.configuration.GenericJDBCStoreMBean
getCreateTableDDLFile, getPrefixName, setCreateTableDDLFile, setPrefixName

 

Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getId, getInheritedProperties, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setNotes, setPersistenceEnabled, unSet

 

Methods inherited from interface weblogic.management.WebLogicMBean
getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent

 

Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes

 

Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister

 

Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener

 

Methods inherited from interface weblogic.descriptor.DescriptorBean
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener

 

Methods inherited from interface weblogic.management.configuration.PersistentStoreMBean
addTarget, getLogicalName, getTargets, getXAResourceName, removeTarget, setLogicalName, setTargets, setXAResourceName

 

Methods inherited from interface weblogic.management.configuration.DynamicDeploymentMBean
getDistributionPolicy, getFailbackDelaySeconds, getInitialBootDelaySeconds, getMigrationPolicy, getNumberOfRestartAttempts, getPartialClusterStabilityDelaySeconds, getRestartInPlace, getSecondsBetweenRestarts, setDistributionPolicy, setFailbackDelaySeconds, setInitialBootDelaySeconds, setMigrationPolicy, setNumberOfRestartAttempts, setPartialClusterStabilityDelaySeconds, setRestartInPlace, setSecondsBetweenRestarts

 

Methods inherited from interface weblogic.management.configuration.DeploymentMBean
getDeploymentOrder, setDeploymentOrder

 

Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getId, getInheritedProperties, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setNotes, setPersistenceEnabled, unSet

 

Methods inherited from interface weblogic.management.WebLogicMBean
getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent

 

Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes

 

Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister

 

Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener

 

Methods inherited from interface weblogic.descriptor.DescriptorBean
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener

 

Method Detail

getDataSource

JDBCSystemResourceMBean getDataSource()

The JDBC data source used by this JDBC store to access its backing table.

The specified data source must use a non-XA JDBC driver since connection pools for XA JDBC drivers are not supported.


setDataSource

void setDataSource(JDBCSystemResourceMBean dataSource)
                   throws InvalidAttributeValueException

Sets the value of the DataSource attribute.

Throws:
InvalidAttributeValueException
See Also:
JDBCStoreMBean.getDataSource()

getDeletesPerBatchMaximum

int getDeletesPerBatchMaximum()

The maximum number of table rows that are deleted per database call.

Returns:
The deletesPerBatchMaximum value
See Also:
JDBCStoreMBean.getInsertsPerBatchMaximum(), JDBCStoreMBean.getDeletesPerStatementMaximum()

setDeletesPerBatchMaximum

void setDeletesPerBatchMaximum(int deletesPerBatchMaximum)
                               throws InvalidAttributeValueException

Sets the value of the DeletesPerBatchMaximum attribute.

Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
JDBCStoreMBean.getDeletesPerBatchMaximum()

getInsertsPerBatchMaximum

int getInsertsPerBatchMaximum()

The maximum number of table rows that are inserted per database call.

Returns:
The insertsPerBatchMaximum value
See Also:
JDBCStoreMBean.getDeletesPerBatchMaximum(), JDBCStoreMBean.getDeletesPerStatementMaximum()

setInsertsPerBatchMaximum

void setInsertsPerBatchMaximum(int deletesPerBatchMaximum)
                               throws InvalidAttributeValueException

Sets the value of the InsertsPerBatchMaximu attribute.

Throws:
InvalidAttributeValueException
See Also:
JDBCStoreMBean.getInsertsPerBatchMaximum()

getDeletesPerStatementMaximum

int getDeletesPerStatementMaximum()

The maximum number of table rows that are deleted per database call.

Returns:
The deletesPerStatementMaximum value
See Also:
JDBCStoreMBean.getDeletesPerBatchMaximum(), JDBCStoreMBean.getInsertsPerBatchMaximum()

setDeletesPerStatementMaximum

void setDeletesPerStatementMaximum(int deletesPerBatchMaximum)
                                   throws InvalidAttributeValueException

Sets the value of the DeletesPerStatementMaximum attribute.

Throws:
InvalidAttributeValueException
See Also:
JDBCStoreMBean.getDeletesPerStatementMaximum()

getWorkerCount

int getWorkerCount()

The number of JDBC store worker threads to process the workerload.

Returns:
The WorkerCount value

setWorkerCount

void setWorkerCount(int workerCount)
                    throws InvalidAttributeValueException

Sets the value of the WorkerCount attribute.

Throws:
InvalidAttributeValueException
See Also:
JDBCStoreMBean.getWorkerCount()

getWorkerPreferredBatchSize

int getWorkerPreferredBatchSize()

Specifies the batch size when the Worker Count attribute is configured to a value greater than 1.

Used to configure the workload the JDBC store incrementally puts on each worker thread. The workload consists of IO requests which are grouped and pushed to each JDBC worker thread for processing. If the IO request is very large (for example 1M), then tune this attribute to a smaller value.

Returns:
The WorkerPreferredBatchSize value

setWorkerPreferredBatchSize

void setWorkerPreferredBatchSize(int workerLoadSize)
                                 throws InvalidAttributeValueException

Sets the value of the WorkerPreferredBatchSize attribute.

The default value is 10.

Throws:
InvalidAttributeValueException
See Also:
JDBCStoreMBean.getWorkerPreferredBatchSize()

getThreeStepThreshold

int getThreeStepThreshold()

Specifies the threshold, in bytes, when the JDBC store uses 3 steps (insert, select, populate) instead of 1 step (insert) to populate an Oracle Blob data type.

Applies only to Oracle databases where a Blob data type is used instead of the default Long Raw data type for record data.

The default value is 200000.

Returns:
The threeStepThreshold value

setThreeStepThreshold

void setThreeStepThreshold(int threeStepThreshold)
                           throws InvalidAttributeValueException

Sets the value of the ThreeStepThreshold attribute.

Throws:
InvalidAttributeValueException
See Also:
JDBCStoreMBean.getThreeStepThreshold()

setOraclePiggybackCommitEnabled

void setOraclePiggybackCommitEnabled(boolean enable)

Sets the value of the OraclePiggybackCommitEnabled attribute.


isOraclePiggybackCommitEnabled

boolean isOraclePiggybackCommitEnabled()
Enables committing a batch of INSERT or DELETE operations with the last operation of the transaction instead of issuing a separate commit call to database server which saves a server round trip. This feature benefits applications that have many transactions of a small number of operations or small messages. This feature should be used only when configuring a JDBC store in Oracle Exalogic environments.

setReconnectRetryPeriodMillis

void setReconnectRetryPeriodMillis(int reconnectRetryPeriodMillis)

Set the length of time in milliseconds during which the persistent store will attempt to re-establish a connection to the database. The JDBC Store will repeatedly attempt to reconnection to the database during this period until the period has expired. The JDBC store will wait a specified period of time between reconnection attempts.

The reconnection period applies to JDBC connections regardless of the database that is used for the JDBC store.

See Also:
JDBCStoreMBean.getReconnectRetryPeriodMillis(), JDBCStoreMBean.getReconnectRetryIntervalMillis(), JDBCStoreMBean.setReconnectRetryIntervalMillis(int)

getReconnectRetryPeriodMillis

int getReconnectRetryPeriodMillis()

Returns the length of time in milliseconds during which the persistent store will attempt to re-establish a connection to the database. Successive reconnection attempts will be attempted after a fixed delay that is specified by the reconnection retry interval.

The reconnection period applies to JDBC connections regardless of the database that is used for the JDBC store.

The default value is 1000

Returns:
The length of the reconnection retry period in milliseconds
See Also:
JDBCStoreMBean.setReconnectRetryPeriodMillis(int), JDBCStoreMBean.getReconnectRetryIntervalMillis(), JDBCStoreMBean.setReconnectRetryIntervalMillis(int)

setReconnectRetryIntervalMillis

void setReconnectRetryIntervalMillis(int reconnectRetryIntervalMillis)

Set the length of time in milliseconds between reconnection attempts during the reconnection retry period.

The reconnection interval applies to JDBC connections regardless of the database that is used for the JDBC store.


getReconnectRetryIntervalMillis

int getReconnectRetryIntervalMillis()

The length of time in milliseconds between reconnection attempts during the reconnection retry period.

The reconnection interval applies to JDBC connections regardless of the database that is used for the JDBC store.

The default value is 200 milliseconds

Returns:
The length of time in milliseconds between reconnection attempts within the retry period
See Also:
JDBCStoreMBean.getReconnectRetryPeriodMillis(), JDBCStoreMBean.setReconnectRetryPeriodMillis(int)

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09