public abstract class AbstractDestinationDescriptor extends AbstractSettingsBasedDescriptor implements DestinationDescriptorMBean
Base implementation for a destination descriptor.
| Modifier and Type | Field and Description |
|---|---|
protected int |
autoExtendAmount |
protected int |
blockSize |
protected File |
dataFolder |
protected int |
initialBlockCount |
protected File |
journalFolder |
protected int |
journalOutputBuffer |
protected int |
maxBlockCount |
protected long |
maxJournalSize |
protected int |
maxNonPersistentMessages |
protected int |
maxUncommittedStoreSize |
protected int |
maxUnflushedJournalSize |
protected int |
maxWriteBatchSize |
protected String |
name |
protected boolean |
overflowToPersistent |
protected boolean |
preAllocateFiles |
protected String |
rawDataFolder |
protected String |
rawJournalFolder |
protected int |
storageSyncMethod |
protected boolean |
temporary |
protected boolean |
useJournal |
| Constructor and Description |
|---|
AbstractDestinationDescriptor()
Constructor
|
AbstractDestinationDescriptor(Settings settings)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Settings |
asSettings()
Serialize the definition to settings
|
void |
check()
Check the object consistency
|
protected void |
copyAttributesTo(AbstractDestinationDefinition target) |
protected void |
fillSettings(Settings settings)
Append nodes to the XML definition
|
int |
getAutoExtendAmount() |
int |
getBlockSize() |
File |
getDataFolder() |
int |
getInitialBlockCount() |
File |
getJournalFolder() |
int |
getJournalOutputBuffer() |
int |
getMaxBlockCount() |
long |
getMaxJournalSize() |
int |
getMaxNonPersistentMessages() |
int |
getMaxUncommittedStoreSize() |
int |
getMaxUnflushedJournalSize() |
int |
getMaxWriteBatchSize() |
String |
getName()
Get the destination name
|
String |
getRawDataFolder() |
String |
getRawJournalFolder() |
int |
getStorageSyncMethod() |
boolean |
hasPersistentStore() |
protected void |
initFromSettings(Settings settings)
Initialize descriptor fields from the given settings
|
boolean |
isOverflowToPersistent() |
boolean |
isPreAllocateFiles() |
boolean |
isTemporary() |
boolean |
isUseJournal() |
void |
setAutoExtendAmount(int autoExtendAmount) |
void |
setBlockSize(int blockSize) |
void |
setDataFolder(File dataFolder) |
void |
setInitialBlockCount(int initialBlockCount) |
void |
setJournalFolder(File journalFolder) |
void |
setJournalOutputBuffer(int journalOutputBuffer) |
void |
setMaxBlockCount(int maxBlockCount) |
void |
setMaxJournalSize(long maxJournalSize) |
void |
setMaxNonPersistentMessages(int maxNonPersistentMessages) |
void |
setMaxUncommittedStoreSize(int maxUncommittedStoreSize) |
void |
setMaxUnflushedJournalSize(int maxUnflushedJournalSize) |
void |
setMaxWriteBatchSize(int maxWriteBatchSize) |
void |
setName(String name) |
void |
setOverflowToPersistent(boolean overflowToPersistent) |
void |
setPreAllocateFiles(boolean preAllocateFiles) |
void |
setRawDataFolder(String rawDataFolder) |
void |
setRawJournalFolder(String rawJournalFolder) |
void |
setStorageSyncMethod(int storageSyncMethod) |
void |
setTemporary(boolean temporary) |
void |
setUseJournal(boolean useJournal) |
String |
toString() |
getDescriptorFile, setDescriptorFileprotected String name
protected int initialBlockCount
protected int maxBlockCount
protected int autoExtendAmount
protected int blockSize
protected String rawDataFolder
protected File dataFolder
protected int maxNonPersistentMessages
protected boolean useJournal
protected String rawJournalFolder
protected File journalFolder
protected long maxJournalSize
protected int maxWriteBatchSize
protected int maxUnflushedJournalSize
protected int maxUncommittedStoreSize
protected int journalOutputBuffer
protected boolean temporary
protected int storageSyncMethod
protected boolean preAllocateFiles
protected boolean overflowToPersistent
public AbstractDestinationDescriptor()
public AbstractDestinationDescriptor(Settings settings)
protected void initFromSettings(Settings settings)
AbstractSettingsBasedDescriptorinitFromSettings in class AbstractSettingsBasedDescriptorsettings - some settingsprotected void copyAttributesTo(AbstractDestinationDefinition target)
public final Settings asSettings()
protected void fillSettings(Settings settings)
public String getName()
DestinationDescriptorMBeangetName in interface DestinationDescriptorMBeanpublic boolean isTemporary()
isTemporary in interface DestinationDescriptorMBeanpublic File getDataFolder()
public int getMaxNonPersistentMessages()
getMaxNonPersistentMessages in interface DestinationDescriptorMBeanpublic boolean isUseJournal()
isUseJournal in interface DestinationDescriptorMBeanpublic int getInitialBlockCount()
getInitialBlockCount in interface DestinationDescriptorMBeanpublic int getBlockSize()
getBlockSize in interface DestinationDescriptorMBeanpublic void setInitialBlockCount(int initialBlockCount)
initialBlockCount - the initial blockCount to setpublic void setMaxBlockCount(int maxBlockCount)
maxBlockCount - the maxBlockCount to setpublic int getMaxBlockCount()
getMaxBlockCount in interface DestinationDescriptorMBeanpublic void setAutoExtendAmount(int autoExtendAmount)
autoExtendAmount - the autoExtendAmount to setpublic int getAutoExtendAmount()
getAutoExtendAmount in interface DestinationDescriptorMBeanpublic void setBlockSize(int blockSize)
blockSize - the blockSize to setpublic String getRawDataFolder()
public void setRawDataFolder(String rawDataFolder)
rawDataFolder - the rawDataFolder to setpublic void setDataFolder(File dataFolder)
dataFolder - the dataFolder to setpublic void setUseJournal(boolean useJournal)
useJournal - the useJournal to setpublic void setName(String name)
name - the name to setpublic void setMaxNonPersistentMessages(int maxNonPersistentMessages)
maxNonPersistentMessages - the maxNonPersistentMessages to setpublic void setTemporary(boolean temporary)
temporary - the temporary to setpublic String getRawJournalFolder()
public void setRawJournalFolder(String rawJournalFolder)
rawJournalFolder - the rawJournalFolder to setpublic File getJournalFolder()
public void setJournalFolder(File journalFolder)
journalFolder - the journalFolder to setpublic long getMaxJournalSize()
getMaxJournalSize in interface DestinationDescriptorMBeanpublic void setMaxJournalSize(long maxJournalSize)
maxJournalSize - the maxJournalSize to setpublic int getMaxWriteBatchSize()
getMaxWriteBatchSize in interface DestinationDescriptorMBeanpublic void setMaxWriteBatchSize(int maxWriteBatchSize)
maxWriteBatchSize - the maxWriteBatchSize to setpublic int getMaxUnflushedJournalSize()
getMaxUnflushedJournalSize in interface DestinationDescriptorMBeanpublic void setMaxUnflushedJournalSize(int maxUnflushedJournalSize)
maxUnflushedJournalSize - the maxUnflushedJournalSize to setpublic int getMaxUncommittedStoreSize()
getMaxUncommittedStoreSize in interface DestinationDescriptorMBeanpublic void setMaxUncommittedStoreSize(int maxUncommittedStoreSize)
maxUncommittedStoreSize - the maxUncommittedStoreSize to setpublic int getJournalOutputBuffer()
getJournalOutputBuffer in interface DestinationDescriptorMBeanpublic void setJournalOutputBuffer(int journalOutputBuffer)
journalOutputBuffer - the journalOutputBuffer to setpublic int getStorageSyncMethod()
getStorageSyncMethod in interface DestinationDescriptorMBeanpublic void setStorageSyncMethod(int storageSyncMethod)
storageSyncMethod - the syncMethod to setpublic boolean isPreAllocateFiles()
isPreAllocateFiles in interface DestinationDescriptorMBeanpublic void setPreAllocateFiles(boolean preAllocateFiles)
preAllocateFiles - the preAllocateFiles to setpublic boolean isOverflowToPersistent()
public void setOverflowToPersistent(boolean overflowToPersistent)
overflowToPersistent - the overflowToPersistent to setpublic void check()
throws javax.jms.JMSException
Checkablepublic boolean hasPersistentStore()
Copyright © 2019. All rights reserved.