Class SqliteStorageLayer<T extends IReplicationOrderedPacket>
java.lang.Object
com.gigaspaces.internal.server.space.redolog.storage.SqliteStorageLayer<T>
- Direct Known Subclasses:
SqliteRedoLogFileStorage
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Connectionprotected final org.slf4j.Loggerprotected final intprotected final intprotected final intprotected final intprotected final intprotected static final Stringprotected final intprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected TdeserializePacket(ResultSet resultSet) protected voidprotected voidexecuteCreateTable(String sqlQuery) protected longexecuteDelete(String sqlQuery) protected longexecuteInsert(PreparedStatement statement) protected ResultSetexecuteQuery(String sqlQuery) protected intgetPacketCount(T packet) protected StringgetPacketOperationTypeName(T packet) protected StringgetPacketTypeName(T packet) protected StringgetPacketUID(T packet) protected intgetPacketWeight(T packet) protected longprotected byte[]serializePacket(T packet)
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
TABLE_NAME
- See Also:
-
connection
-
COLUMN_NAMES
-
REDO_KEY_COLUMN_INDEX
protected final int REDO_KEY_COLUMN_INDEX- See Also:
-
TYPE_NAME_COLUMN_INDEX
protected final int TYPE_NAME_COLUMN_INDEX- See Also:
-
OPERATION_TYPE_COLUMN_INDEX
protected final int OPERATION_TYPE_COLUMN_INDEX- See Also:
-
UID_COLUMN_INDEX
protected final int UID_COLUMN_INDEX- See Also:
-
PACKET_COUNT_COLUMN_INDEX
protected final int PACKET_COUNT_COLUMN_INDEX- See Also:
-
PACKET_WEIGHT_COLUMN_INDEX
protected final int PACKET_WEIGHT_COLUMN_INDEX- See Also:
-
PACKET_COLUMN_INDEX
protected final int PACKET_COLUMN_INDEX- See Also:
-
-
Constructor Details
-
SqliteStorageLayer
-
-
Method Details
-
getStorageRedoLogSize
protected long getStorageRedoLogSize() -
executeCreateTable
- Throws:
SQLException
-
executeInsert
- Throws:
SQLException
-
executeQuery
- Throws:
SQLException
-
executeDelete
- Throws:
SQLException
-
serializePacket
-
deserializePacket
-
dropTable
- Throws:
SQLException
-
deleteDataFile
public void deleteDataFile() -
getPacketCount
-
getPacketTypeName
-
getPacketUID
-
getPacketWeight
-
getPacketOperationTypeName
-