public abstract class DataGridParameters<KEY,VALUE> extends Object
DataGridReaderParameters
and the DataGridWriterParameters
.Constructor and Description |
---|
DataGridParameters(int region,
int appId,
boolean memoryMappedFileEnabled,
SerializerDeserializer<KEY> keySerializer,
SerializerDeserializer<VALUE> valueSerializer,
com.scaleoutsoftware.soss.client.util.SerializationMode serializationMode)
Default constructor for data grid parameters
|
Modifier and Type | Method and Description |
---|---|
int |
getAppId()
Get the application ID the reader/writer is operating on.
|
SerializerDeserializer<KEY> |
getFirstKeySerializer()
Get the key serializer
|
boolean |
getMemoryMappedFileEnabled()
Get whether memory mapped files are enabled for the reader/writer.
|
int |
getRegion()
Get the region the reader/writer is operating on.
|
com.scaleoutsoftware.soss.client.util.SerializationMode |
getSerializationMode()
Gets the serialization mode
|
SerializerDeserializer<VALUE> |
getValueSerializer()
Get the value serializer
|
void |
setRegion(int region)
Set the region the reader/writer is operating on.
|
public DataGridParameters(int region, int appId, boolean memoryMappedFileEnabled, SerializerDeserializer<KEY> keySerializer, SerializerDeserializer<VALUE> valueSerializer, com.scaleoutsoftware.soss.client.util.SerializationMode serializationMode)
region
- The region the reader/writer will be operating onappId
- The application ID the reader/writer will be operating onmemoryMappedFileEnabled
- Flag to tell the reader/writer to use memory mapped fileskeySerializer
- Serializer for keysvalueSerializer
- Serializer for valuespublic int getRegion()
public void setRegion(int region)
region
- the new regionpublic int getAppId()
public boolean getMemoryMappedFileEnabled()
true
if memory mapped files are enabled, otherwise falsepublic SerializerDeserializer<KEY> getFirstKeySerializer()
public SerializerDeserializer<VALUE> getValueSerializer()
public com.scaleoutsoftware.soss.client.util.SerializationMode getSerializationMode()
Copyright (C) 2007-2014 ScaleOut Software, Inc.