DiskStoreFactory
instead@Deprecated public class DiskWriteAttributesFactory extends Object implements Serializable
Constructor and Description |
---|
DiskWriteAttributesFactory()
Deprecated.
Creates a new instance of DiskWriteAttributesFactory ready to create a
DiskWriteAttributes with default settings. |
DiskWriteAttributesFactory(DiskWriteAttributes dwa)
Deprecated.
Creates a new instance of DiskWriteAttributesFactory Factory ready to create a
DiskWriteAttributes with the same settings as those in the specified
DiskWriteAttributes . |
Modifier and Type | Method and Description |
---|---|
DiskWriteAttributes |
create()
Deprecated.
as of 6.5 use
DiskStoreFactory.create(java.lang.String) instead |
void |
setBytesThreshold(long bytesThreshold)
Deprecated.
as of 6.5 use
DiskStoreFactory.setQueueSize(int) instead |
void |
setCompactionThreshold(int compactionThreshold)
Deprecated.
as of 6.5 use
DiskStoreFactory.setCompactionThreshold(int) instead |
void |
setMaxOplogSize(int maxOplogSize)
Deprecated.
as of 6.5 use
DiskStoreFactory.setMaxOplogSize(long) instead |
void |
setMaxOplogSizeInBytes(long maxOplogSize)
Deprecated.
as of 6.5 use
DiskStoreFactory.setMaxOplogSize(long) instead |
void |
setRollOplogs(boolean rollingEnabled)
Deprecated.
as of 6.5 use
DiskStoreFactory.setAutoCompact(boolean) instead |
void |
setSynchronous(boolean isSynchronous)
Deprecated.
as of 6.5 use
AttributesFactory.setDiskSynchronous(boolean) instead |
void |
setTimeInterval(long timeInterval)
Deprecated.
as of 6.5 use
DiskStoreFactory.setTimeInterval(long) instead |
public DiskWriteAttributesFactory()
DiskWriteAttributes
with default settings. The default
DiskWriteAttributes
thus created will have following behaviour.
public DiskWriteAttributesFactory(DiskWriteAttributes dwa)
DiskWriteAttributes
with the same settings as those in the specified
DiskWriteAttributes
.dwa
- the DiskWriteAttributes
used to initialize this
DiskWriteAttributesFactory@Deprecated public void setSynchronous(boolean isSynchronous)
AttributesFactory.setDiskSynchronous(boolean)
insteadisSynchronous
- boolean if true indicates synchronous writes@Deprecated public void setRollOplogs(boolean rollingEnabled)
DiskStoreFactory.setAutoCompact(boolean)
insteadrollingEnabled
- true if oplogs are to be compacted automatically; false if no compaction.@Deprecated public void setCompactionThreshold(int compactionThreshold)
DiskStoreFactory.setCompactionThreshold(int)
insteadExamples: A threshold of 100 causes any oplog that is no longer being written to to be compactable. A threshold of 0 causes only oplogs that have no live records to be compactable in which case the compact can simply remove the oplog file. A threshold of 50 causes an oplog to become compactable when half of its live records become dead.
compactionThreshold
- the threshold at which an oplog will become compactable@Deprecated public void setMaxOplogSizeInBytes(long maxOplogSize)
DiskStoreFactory.setMaxOplogSize(long)
instead
Note that this method sets the same attribute as setMaxOplogSize(int)
. The last set of the
attribute determines its value.
maxOplogSize
- the maximum size of the oplog in bytes.IllegalArgumentException
- if the value specified is a negative number@Deprecated public void setMaxOplogSize(int maxOplogSize)
DiskStoreFactory.setMaxOplogSize(long)
instead
Note that this method sets the same attribute as setMaxOplogSizeInBytes(long)
. The last set
of the attribute determines its value.
maxOplogSize
- the maximum size of the oplog in megabytes.IllegalArgumentException
- if the value specified is a negative number@Deprecated public void setTimeInterval(long timeInterval)
DiskStoreFactory.setTimeInterval(long)
insteadtimeInterval
- Time interval in millisecondsIllegalArgumentException
- if the value specified is a negative number@Deprecated public void setBytesThreshold(long bytesThreshold)
DiskStoreFactory.setQueueSize(int)
insteadbytesThreshold
- the maximum number of bytes to enqueue before async data is flushed.IllegalArgumentException
- if the value specified is a negative number@Deprecated public DiskWriteAttributes create()
DiskStoreFactory.create(java.lang.String)
insteadDiskWriteAttributes
with the current settings.DiskWriteAttributes
IllegalStateException
- if the current settings has compaction enabled with maximum Oplog
Size specified as infinite ( represented by 0 ) *