Search in sources :

Example 1 with ServerSideConnectionPeer

use of herddb.server.ServerSideConnectionPeer in project herddb by diennea.

the class NonMarshallingClientSideConnectionPeer method executeUpdates.

@Override
public List<DMLResult> executeUpdates(String tableSpace, String query, long tx, boolean returnValues, boolean usePreparedStatement, List<List<Object>> batch) throws HDBException, ClientSideMetadataProviderException {
    LocalVMChannel channel = (LocalVMChannel) realConnection.ensureOpen();
    ServerSideConnectionPeer serverSidePeer = (ServerSideConnectionPeer) channel.getServerSideChannel().getMessagesReceiver();
    return serverSidePeer.executeUpdates(tableSpace, query, tx, returnValues, batch);
}
Also used : ServerSideConnectionPeer(herddb.server.ServerSideConnectionPeer) LocalVMChannel(herddb.network.netty.LocalVMChannel)

Example 2 with ServerSideConnectionPeer

use of herddb.server.ServerSideConnectionPeer in project herddb by diennea.

the class NonMarshallingClientSideConnectionPeer method executeScan.

@Override
public ScanResultSet executeScan(String tableSpace, String query, boolean usePreparedStatement, List<Object> params, long tx, int maxRows, int fetchSize, boolean keepReadLocks) throws HDBException, ClientSideMetadataProviderException {
    LocalVMChannel channel = (LocalVMChannel) realConnection.ensureOpen();
    ServerSideConnectionPeer serverSidePeer = (ServerSideConnectionPeer) channel.getServerSideChannel().getMessagesReceiver();
    return serverSidePeer.executeScan(tableSpace, query, usePreparedStatement, params, tx, maxRows, fetchSize, keepReadLocks);
}
Also used : ServerSideConnectionPeer(herddb.server.ServerSideConnectionPeer) LocalVMChannel(herddb.network.netty.LocalVMChannel)

Example 3 with ServerSideConnectionPeer

use of herddb.server.ServerSideConnectionPeer in project herddb by diennea.

the class NonMarshallingClientSideConnectionPeer method commitTransaction.

@Override
public void commitTransaction(String tableSpace, long tx) throws HDBException, ClientSideMetadataProviderException {
    LocalVMChannel channel = (LocalVMChannel) realConnection.ensureOpen();
    ServerSideConnectionPeer serverSidePeer = (ServerSideConnectionPeer) channel.getServerSideChannel().getMessagesReceiver();
    serverSidePeer.commitTransaction(tableSpace, tx);
}
Also used : ServerSideConnectionPeer(herddb.server.ServerSideConnectionPeer) LocalVMChannel(herddb.network.netty.LocalVMChannel)

Example 4 with ServerSideConnectionPeer

use of herddb.server.ServerSideConnectionPeer in project herddb by diennea.

the class NonMarshallingClientSideConnectionPeer method beginTransaction.

@Override
public long beginTransaction(String tableSpace) throws HDBException, ClientSideMetadataProviderException {
    LocalVMChannel channel = (LocalVMChannel) realConnection.ensureOpen();
    ServerSideConnectionPeer serverSidePeer = (ServerSideConnectionPeer) channel.getServerSideChannel().getMessagesReceiver();
    return serverSidePeer.beginTransaction(tableSpace);
}
Also used : ServerSideConnectionPeer(herddb.server.ServerSideConnectionPeer) LocalVMChannel(herddb.network.netty.LocalVMChannel)

Example 5 with ServerSideConnectionPeer

use of herddb.server.ServerSideConnectionPeer in project herddb by diennea.

the class NonMarshallingClientSideConnectionPeer method executeGet.

@Override
public GetResult executeGet(String tableSpace, String query, long tx, boolean usePreparedStatement, List<Object> params) throws HDBException, ClientSideMetadataProviderException {
    LocalVMChannel channel = (LocalVMChannel) realConnection.ensureOpen();
    ServerSideConnectionPeer serverSidePeer = (ServerSideConnectionPeer) channel.getServerSideChannel().getMessagesReceiver();
    return serverSidePeer.executeGet(tableSpace, query, tx, params);
}
Also used : ServerSideConnectionPeer(herddb.server.ServerSideConnectionPeer) LocalVMChannel(herddb.network.netty.LocalVMChannel)

Aggregations

ServerSideConnectionPeer (herddb.server.ServerSideConnectionPeer)9 LocalVMChannel (herddb.network.netty.LocalVMChannel)7 Channel (herddb.network.Channel)2 Pdu (herddb.proto.Pdu)2 Server (herddb.server.Server)2 ServerConfiguration (herddb.server.ServerConfiguration)2 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)2 Test (org.junit.Test)2 ClientConfiguration (herddb.client.ClientConfiguration)1 HDBClient (herddb.client.HDBClient)1 HDBConnection (herddb.client.HDBConnection)1 HDBOperationTimeoutException (herddb.client.impl.HDBOperationTimeoutException)1 TableSpaceManager (herddb.core.TableSpaceManager)1 MissingJDBCParameterException (herddb.model.MissingJDBCParameterException)1 NettyChannel (herddb.network.netty.NettyChannel)1 StaticClientSideMetadataProvider (herddb.server.StaticClientSideMetadataProvider)1 SocketChannel (io.netty.channel.socket.SocketChannel)1 IOException (java.io.IOException)1 Path (java.nio.file.Path)1 StatsLogger (org.apache.bookkeeper.stats.StatsLogger)1