public class OStorageConfigurationImpl extends Object implements OSerializableStream, OStorageConfiguration
OStorageConfiguration.IndexEngineData
Modifier and Type | Field and Description |
---|---|
protected OReadersWriterSpinLock |
lock |
protected Charset |
streamCharset |
protected OStorageConfigurationUpdateListener |
updateListener |
CURRENT_BINARY_FORMAT_VERSION, CURRENT_VERSION, DEFAULT_CHARSET, DEFAULT_DATE_FORMAT, DEFAULT_DATETIME_FORMAT
Constructor and Description |
---|
OStorageConfigurationImpl(OAbstractPaginatedStorage iStorage,
Charset streamCharset) |
protected final OReadersWriterSpinLock lock
protected OStorageConfigurationUpdateListener updateListener
protected final Charset streamCharset
public OStorageConfigurationImpl(OAbstractPaginatedStorage iStorage, Charset streamCharset)
public int getPageSize()
getPageSize
in interface OStorageConfiguration
public void setPageSize(int pageSize)
public int getFreeListBoundary()
getFreeListBoundary
in interface OStorageConfiguration
public void setFreeListBoundary(int freeListBoundary)
public int getMaxKeySize()
getMaxKeySize
in interface OStorageConfiguration
public void setMaxKeySize(int maxKeySize)
public void setCreationVersion(String version)
public String getCreatedAtVersion()
getCreatedAtVersion
in interface OStorageConfiguration
public void initConfiguration(OContextConfiguration conf)
public String getConflictStrategy()
getConflictStrategy
in interface OStorageConfiguration
public void setConflictStrategy(String conflictStrategy)
public OContextConfiguration getContextConfiguration()
getContextConfiguration
in interface OStorageConfiguration
public OStorageConfigurationImpl load(OContextConfiguration configuration) throws OSerializationException
OSerializationException
public void update() throws OSerializationException
OSerializationException
public String getDirectory()
getDirectory
in interface OStorageConfiguration
public Locale getLocaleInstance()
getLocaleInstance
in interface OStorageConfiguration
public SimpleDateFormat getDateFormatInstance()
getDateFormatInstance
in interface OStorageConfiguration
public SimpleDateFormat getDateTimeFormatInstance()
getDateTimeFormatInstance
in interface OStorageConfiguration
public void fromStream(byte[] stream, int offset, int length, Charset charset)
@Deprecated public OSerializableStream fromStream(byte[] iStream) throws OSerializationException
fromStream(byte[], int, int,
Charset)
instead.OSerializableStream
fromStream
in interface OSerializableStream
iStream
- byte array representation of the objectOSerializationException
- if the unmarshalling does not succeedpublic byte[] toStream() throws OSerializationException
toStream(Charset)
instead.OSerializableStream
toStream
in interface OSerializableStream
OSerializationException
- if the marshalling does not succeedOSerializableStream.fromStream(byte[])
public byte[] toStream(Charset charset) throws OSerializationException
OSerializationException
public byte[] toStream(int iNetworkVersion, Charset charset) throws OSerializationException
OSerializationException
public void create() throws IOException
IOException
public void delete() throws IOException
IOException
public void close() throws IOException
IOException
public void dropCluster(int iClusterId)
public void addCluster(OStoragePaginatedClusterConfiguration config)
public void addIndexEngine(String name, OStorageConfiguration.IndexEngineData engineData)
public void deleteIndexEngine(String name)
public Set<String> indexEngines()
indexEngines
in interface OStorageConfiguration
public OStorageConfiguration.IndexEngineData getIndexEngine(String name, int defaultIndexId)
getIndexEngine
in interface OStorageConfiguration
public void setClusterStatus(int clusterId, OStorageClusterConfiguration.STATUS iStatus)
public TimeZone getTimeZone()
getTimeZone
in interface OStorageConfiguration
public void setTimeZone(TimeZone timeZone)
public String getLocaleLanguage()
getLocaleLanguage
in interface OStorageConfiguration
public void setLocaleLanguage(String iValue)
public String getLocaleCountry()
getLocaleCountry
in interface OStorageConfiguration
public void setLocaleCountry(String iValue)
public String getCharset()
getCharset
in interface OStorageConfiguration
public void setCharset(String charset)
public String getDateFormat()
getDateFormat
in interface OStorageConfiguration
public String getDateTimeFormat()
getDateTimeFormat
in interface OStorageConfiguration
public String getClusterSelection()
getClusterSelection
in interface OStorageConfiguration
public void setClusterSelection(String clusterSelection)
public int getMinimumClusters()
getMinimumClusters
in interface OStorageConfiguration
public void setMinimumClusters(int minimumClusters)
public String getRecordSerializer()
getRecordSerializer
in interface OStorageConfiguration
public void setRecordSerializer(String recordSerializer)
public int getRecordSerializerVersion()
getRecordSerializerVersion
in interface OStorageConfiguration
public void setRecordSerializerVersion(int recordSerializerVersion)
public boolean isStrictSql()
isStrictSql
in interface OStorageConfiguration
public List<OStorageEntryConfiguration> getProperties()
getProperties
in interface OStorageConfiguration
public String getProperty(String iName)
getProperty
in interface OStorageConfiguration
public void removeProperty(String iName)
public void clearProperties()
public boolean isValidationEnabled()
isValidationEnabled
in interface OStorageConfiguration
public void setValidation(boolean validation)
public String getSchemaRecordId()
getSchemaRecordId
in interface OStorageConfiguration
public void setSchemaRecordId(String schemaRecordId)
public String getIndexMgrRecordId()
getIndexMgrRecordId
in interface OStorageConfiguration
public void setIndexMgrRecordId(String indexMgrRecordId)
public void setDateFormat(String dateFormat)
public void setDateTimeFormat(String dateTimeFormat)
public int getBinaryFormatVersion()
getBinaryFormatVersion
in interface OStorageConfiguration
public String getName()
getName
in interface OStorageConfiguration
public int getVersion()
getVersion
in interface OStorageConfiguration
public List<OStorageClusterConfiguration> getClusters()
getClusters
in interface OStorageConfiguration
public void setConfigurationUpdateListener(OStorageConfigurationUpdateListener updateListener)
public String getUuid()
getUuid
in interface OStorageConfiguration
public void setUuid(OAtomicOperation atomicOperation, String uuid)
setUuid
in interface OStorageConfiguration
Copyright © 2009–2020 OrientDB. All rights reserved.