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 GenericFileStoreMBean

All Superinterfaces:
ConfigurationMBean, DescriptorBean, DynamicMBean, MBeanRegistration, NotificationBroadcaster, SettableBean, WebLogicMBean
All Known Subinterfaces:
DefaultFileStoreMBean, FileStoreMBean, JMSFileStoreMBean

public interface GenericFileStoreMBean
extends ConfigurationMBean

This MBean defines common parameters for file stores. It is the parent of FileStoreMBean and the deprecated JMSFileStoreMBean.

Since:
9.0.0.0

Field Summary
static String SYNCWRITE_CACHEFLUSH
           
static String SYNCWRITE_DIRECTWRITE
           
static String SYNCWRITE_DIRECTWRITEWITHCACHE
           
static String SYNCWRITE_DISABLED
           

 

Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY

 

Method Summary
abstract  int getBlockSize()
          The smallest addressable block, in bytes, of a file.
abstract  String getCacheDirectory()
          The location of the cache directory for Direct-Write-With-Cache, ignored for other policies.
abstract  String getDirectory()
          The path name to the file system directory where the file store maintains its data files.
abstract  long getInitialSize()
          The initial file size, in bytes.
abstract  int getIoBufferSize()
          The I/O buffer size, in bytes, automatically rounded down to the nearest power of 2.
abstract  long getMaxFileSize()
          The maximum file size, in bytes.
abstract  int getMaxWindowBufferSize()
          The maximum amount of data, in bytes and rounded down to the nearest power of 2, mapped into the JVM's address space per primary store file.
abstract  int getMinWindowBufferSize()
          The minimum amount of data, in bytes and rounded down to the nearest power of 2, mapped into the JVM's address space per primary store file.
abstract  String getSynchronousWritePolicy()
          The disk write policy that determines how the file store writes data to disk.
abstract  boolean isFileLockingEnabled()
          Determines whether OS file locking is used.
abstract  void setBlockSize(int blockSize)
          Sets the value of the BlockSize attribute.
abstract  void setCacheDirectory(String cacheDirectory)
          Sets the value of the CacheDirectory attribute.
abstract  void setDirectory(String directory)
          Sets the value of the Directory attribute.
abstract  void setFileLockingEnabled(boolean fileLockingEnabled)
          Sets the value of the FileLockingEnabled attribute.
abstract  void setInitialSize(long initialSize)
          Sets the value of the InitialSize attribute.
abstract  void setIoBufferSize(int ioBufferSize)
          Sets the value of the IOBufferSize attribute.
abstract  void setMaxFileSize(long maxFileSize)
          Sets the value of the MaxFileSize attribute.
abstract  void setMaxWindowBufferSize(int maxWindowBufferSize)
          Sets the value of the MaxWindowBufferSize attribute.
abstract  void setMinWindowBufferSize(int minWindowBufferSize)
          Sets the value of the MinWindowBufferSize attribute.
abstract  void setSynchronousWritePolicy(String policy)
          Sets the value of the SynchronousWritePolicy attribute.

 

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

 

Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, 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

 

Field Detail

SYNCWRITE_DISABLED

static final String SYNCWRITE_DISABLED
See Also:
Constant Field Values

SYNCWRITE_CACHEFLUSH

static final String SYNCWRITE_CACHEFLUSH
See Also:
Constant Field Values

SYNCWRITE_DIRECTWRITE

static final String SYNCWRITE_DIRECTWRITE
See Also:
Constant Field Values

SYNCWRITE_DIRECTWRITEWITHCACHE

static final String SYNCWRITE_DIRECTWRITEWITHCACHE
See Also:
Constant Field Values

Method Detail

getDirectory

String getDirectory()

The path name to the file system directory where the file store maintains its data files.

Returns:
The directory value

setDirectory

void setDirectory(String directory)
                  throws InvalidAttributeValueException

Sets the value of the Directory attribute.

Parameters:
directory - The new directory value
Throws:
InvalidAttributeValueException
See Also:
GenericFileStoreMBean.getDirectory()

getSynchronousWritePolicy

String getSynchronousWritePolicy()

The disk write policy that determines how the file store writes data to disk.

This policy also affects the JMS file store's performance, scalability, and reliability. Oracle recommends Direct-Write-With-Cache which tends to have the highest performance. The default value is Direct-Write. The valid policy options are:

Notes:

Returns:
The synchronousWritePolicy value

setSynchronousWritePolicy

void setSynchronousWritePolicy(String policy)
                               throws InvalidAttributeValueException,
                                      DistributedManagementException

Sets the value of the SynchronousWritePolicy attribute.

Parameters:
policy - The new synchronousWritePolicy value
Throws:
InvalidAttributeValueException
DistributedManagementException
See Also:
GenericFileStoreMBean.getSynchronousWritePolicy()

getCacheDirectory

String getCacheDirectory()

The location of the cache directory for Direct-Write-With-Cache, ignored for other policies.

When Direct-Write-With-Cache is specified as the SynchronousWritePolicy, cache files are created in addition to primary files (see Directory for the location of primary files). If a cache directory location is specified, the cache file path is CacheDirectory/WLStoreCache/StoreNameFileNum.DAT.cache. When specified, Oracle recommends using absolute paths, but if the directory location is a relative path, then CacheDirectory is created relative to the WebLogic Server instance's home directory. If "" or Null is specified, the Cache Directory is located in the current operating system temp directory as determined by the java.io.tmpdir Java System property (JDK's default: /tmp on UNIX, %TEMP% on Windows) and is TempDirectory/WLStoreCache/DomainName/unique-id/StoreNameFileNum.DAT.cache. The value of java.io.tmpdir varies between operating systems and configurations, and can be overridden by passing -Djava.io.tmpdir=My_path on the JVM command line.

Considerations:

Returns:
The CacheDirectory value

setCacheDirectory

void setCacheDirectory(String cacheDirectory)
                       throws InvalidAttributeValueException

Sets the value of the CacheDirectory attribute.

If no value specified, then the current OS user's tmp dir (java.io.tmpdir); the files will be placed under <CacheDirectory>/<DomainName>/<ServerName>/<StoreName>/
Parameters:
cacheDirectory - The new cache directory value
Throws:
InvalidAttributeValueException
See Also:
GenericFileStoreMBean.getCacheDirectory()

getMinWindowBufferSize

int getMinWindowBufferSize()

The minimum amount of data, in bytes and rounded down to the nearest power of 2, mapped into the JVM's address space per primary store file. Applies to synchronous write policies Direct-Write-With-Cache and Disabled, but only when a native wlfileio library is loaded. See Maximum Window Buffer Size.

Returns:
The MinWindowBufferSize value

setMinWindowBufferSize

void setMinWindowBufferSize(int minWindowBufferSize)

Sets the value of the MinWindowBufferSize attribute.

Minimum amount of VM mapped into the JVM's address space per store file.
Parameters:
minWindowBufferSize - The new cache directory value
Throws:
InvalidAttributeValueException
See Also:
GenericFileStoreMBean.getMinWindowBufferSize()

getMaxWindowBufferSize

int getMaxWindowBufferSize()

The maximum amount of data, in bytes and rounded down to the nearest power of 2, mapped into the JVM's address space per primary store file. Applies to synchronous write policies Direct-Write-With-Cache and Disabled but only when the native wlfileio library is loaded.

A window buffer does not consume Java heap memory, but does consume off-heap (native) memory. If the store is unable to allocate the requested buffer size, it allocates smaller and smaller buffers until it reaches MinWindowBufferSize, and then fails if cannot honor MinWindowBufferSize.

Oracle recommends setting the max window buffer size to more than double the size of the largest write (multiple concurrently updated records may be combined into a single write), and greater than or equal to the file size, unless there are other constraints. 32-bit JVMs may impose a total limit of between 2 and 4GB for combined Java heap plus off-heap (native) memory usage.

Returns:
The MaxWindowBufferSize value

setMaxWindowBufferSize

void setMaxWindowBufferSize(int maxWindowBufferSize)

Sets the value of the MaxWindowBufferSize attribute.

Maximum amount of VM mapped into the JVM's address space per store file, without other constraints should be as big as possible. Graceful degradation to the MinWindowBufferSize, fail if impossible.
Parameters:
maxWindowBufferSize - The new MaxWindowBufferSize value
Throws:
InvalidAttributeValueException
See Also:
GenericFileStoreMBean.getMaxWindowBufferSize()

getIoBufferSize

int getIoBufferSize()

The I/O buffer size, in bytes, automatically rounded down to the nearest power of 2.

See AllocatedIOBufferBytes to find out the actual allocated off-heap (native) memory amount. It is a multiple of IOBufferSize for the Direct-Write and Cache-Flush policies, or zero.

Returns:
The IoBufferSize value

setIoBufferSize

void setIoBufferSize(int ioBufferSize)

Sets the value of the IOBufferSize attribute.

In the old modes defines the size of pooled DirectByteBuffer's, in the new mode describes the maximum portion of a cache view that is passed to a system call (read, write)
Parameters:
ioBufferSize - The new IOBufferSize value
Throws:
InvalidAttributeValueException
See Also:
GenericFileStoreMBean.getIoBufferSize()

getMaxFileSize

long getMaxFileSize()

The maximum file size, in bytes.

Returns:
The MaxFileSize value

setMaxFileSize

void setMaxFileSize(long maxFileSize)

Sets the value of the MaxFileSize attribute.

Parameters:
maxFileSize - The new MaxFileSize value
Throws:
InvalidAttributeValueException
See Also:
GenericFileStoreMBean.getMaxFileSize()

getBlockSize

int getBlockSize()

The smallest addressable block, in bytes, of a file. When a native wlfileio driver is available and the block size has not been configured by the user, the store selects the minimum OS specific value for unbuffered (direct) I/O, if it is within the range [512, 8192].

A file store's block size does not change once the file store creates its files. Changes to block size only take effect for new file stores or after the current files have been deleted. See "Tuning the Persistent Store" in Tuning Performance of Oracle WebLogic Server.
Returns:
The BlockSize value

setBlockSize

void setBlockSize(int blockSize)

Sets the value of the BlockSize attribute.

The smallest addressable block in a file.
Parameters:
blockSize - The new BlockSize value
Throws:
InvalidAttributeValueException
See Also:
GenericFileStoreMBean.getBlockSize()

getInitialSize

long getInitialSize()

The initial file size, in bytes.

Returns:
The InitialSize value

setInitialSize

void setInitialSize(long initialSize)

Sets the value of the InitialSize attribute.

The maximum value allowed is 2^15 * 128G = 4P TODO: legalMax 4503599627370496L breaks schema validation.
Parameters:
initialSize - The new InitialSize value
Throws:
InvalidAttributeValueException
See Also:
GenericFileStoreMBean.getInitialSize()

isFileLockingEnabled

boolean isFileLockingEnabled()

Determines whether OS file locking is used.

When file locking protection is enabled, a store boot fails if another store instance already has opened the store files. Do not disable this setting unless you have procedures in place to prevent multiple store instances from opening the same file. File locking is not required but helps prevent corruption in the event that two same-named file store instances attempt to operate in the same directories. This setting applies to both primary and cache files.
Returns:
FileLockingEnabled value
See Also:
GenericFileStoreMBean.getDirectory(), GenericFileStoreMBean.getCacheDirectory()

setFileLockingEnabled

void setFileLockingEnabled(boolean fileLockingEnabled)

Sets the value of the FileLockingEnabled attribute.

Parameters:
fileLockingEnabled - The new FileLockingEnabled value
Throws:
InvalidAttributeValueException
See Also:
GenericFileStoreMBean.isFileLockingEnabled()

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