Package org.apache.cassandra.db

Examples of org.apache.cassandra.db.SnapshotCommand


                            {
                                RepairJob.this.snapshotLatch.countDown();
                            }
                    };
                    for (InetAddress endpoint : endpoints)
                        MessagingService.instance().sendRR(new SnapshotCommand(tablename, cfname, sessionName, false), endpoint, callback);
                    snapshotLatch.await();
                    snapshotLatch = null;
                }
                catch (InterruptedException e)
                {
View Full Code Here


                            {
                                RepairJob.this.snapshotLatch.countDown();
                            }
                    };
                    for (InetAddress endpoint : endpoints)
                        MessagingService.instance().sendRR(new SnapshotCommand(tablename, cfname, sessionName, false), endpoint, callback);
                    snapshotLatch.await();
                    snapshotLatch = null;
                }
                catch (InterruptedException e)
                {
View Full Code Here

{
    private static final Logger logger = LoggerFactory.getLogger(SnapshotVerbHandler.class);

    public void doVerb(MessageIn<SnapshotCommand> message, int id)
    {
        SnapshotCommand command = message.payload;
        if (command.clear_snapshot)
            Keyspace.open(command.keyspace).clearSnapshot(command.snapshot_name);
        else
            Keyspace.open(command.keyspace).getColumnFamilyStore(command.column_family).snapshot(command.snapshot_name);
        logger.debug("Enqueuing response to snapshot request {} to {}", command.snapshot_name, message.from);
View Full Code Here

                {
                    RepairJob.this.snapshotLatch.countDown();
                }
            };
            for (InetAddress endpoint : endpoints)
                MessagingService.instance().sendRR(new SnapshotCommand(desc.keyspace, desc.columnFamily, desc.sessionId.toString(), false).createMessage(), endpoint, callback);
            snapshotLatch.await();
            snapshotLatch = null;
        }
        catch (InterruptedException e)
        {
View Full Code Here

                            {
                                RepairJob.this.snapshotLatch.countDown();
                            }
                    };
                    for (InetAddress endpoint : endpoints)
                        MessagingService.instance().sendRR(new SnapshotCommand(tablename, cfname, sessionName, false), endpoint, callback);
                    snapshotLatch.await();
                    snapshotLatch = null;
                }
                catch (InterruptedException e)
                {
View Full Code Here

{
    private static final Logger logger = LoggerFactory.getLogger(SnapshotVerbHandler.class);

    public void doVerb(MessageIn<SnapshotCommand> message, String id)
    {
        SnapshotCommand command = message.payload;
        if (command.clear_snapshot)
            Table.open(command.keyspace).clearSnapshot(command.snapshot_name);
        else
            Table.open(command.keyspace).getColumnFamilyStore(command.column_family).snapshot(command.snapshot_name);
        logger.debug("Enqueuing response to snapshot request {} to {} ", command.snapshot_name, message.from);
View Full Code Here

{
    private static final Logger logger = LoggerFactory.getLogger(SnapshotVerbHandler.class);

    public void doVerb(MessageIn<SnapshotCommand> message, String id)
    {
        SnapshotCommand command = message.payload;
        if (command.clear_snapshot)
            Table.open(command.keyspace).clearSnapshot(command.snapshot_name);
        else
            Table.open(command.keyspace).getColumnFamilyStore(command.column_family).snapshot(command.snapshot_name);
        if (logger.isDebugEnabled())
View Full Code Here

                            {
                                RepairJob.this.snapshotLatch.countDown();
                            }
                    };
                    for (InetAddress endpoint : endpoints)
                        MessagingService.instance().sendRR(new SnapshotCommand(tablename, cfname, sessionName, false), endpoint, callback);
                    snapshotLatch.await();
                    snapshotLatch = null;
                }
                catch (InterruptedException e)
                {
View Full Code Here

{
    private static final Logger logger = LoggerFactory.getLogger(SnapshotVerbHandler.class);

    public void doVerb(MessageIn<SnapshotCommand> message, int id)
    {
        SnapshotCommand command = message.payload;
        if (command.clear_snapshot)
            Keyspace.open(command.keyspace).clearSnapshot(command.snapshot_name);
        else
            Keyspace.open(command.keyspace).getColumnFamilyStore(command.column_family).snapshot(command.snapshot_name);
        Tracing.trace("Enqueuing response to snapshot request {} to {}", command.snapshot_name, message.from);
View Full Code Here

                {
                    RepairJob.this.snapshotLatch.countDown();
                }
            };
            for (InetAddress endpoint : endpoints)
                MessagingService.instance().sendRR(new SnapshotCommand(desc.keyspace, desc.columnFamily, desc.sessionId.toString(), false).createMessage(), endpoint, callback);
            snapshotLatch.await();
            snapshotLatch = null;
        }
        catch (InterruptedException e)
        {
View Full Code Here

TOP

Related Classes of org.apache.cassandra.db.SnapshotCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.