Examples of SnapshotCommand


Examples of org.apache.cassandra.db.SnapshotCommand

{
    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);
        Tracing.trace("Enqueuing response to snapshot request {} to {}", command.snapshot_name, message.from);
View Full Code Here

Examples of org.apache.cassandra.db.SnapshotCommand

{
    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.clearSnapshot(command.snapshot_name, command.keyspace);
        }
        else
View Full Code Here

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

Examples of org.apache.cassandra.db.SnapshotCommand

    private static final Logger logger = LoggerFactory.getLogger(SnapshotVerbHandler.class);
    public void doVerb(Message message, String id)
    {
        try
        {
            SnapshotCommand command = SnapshotCommand.read(message);
            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);
            Message response = message.getReply(FBUtilities.getBroadcastAddress(), new byte[0], MessagingService.version_);
View Full Code Here

Examples of org.apache.cassandra.db.SnapshotCommand

        this.endpoint = endpoint;
    }

    public void run()
    {
        MessagingService.instance().sendRR(new SnapshotCommand(desc.keyspace,
                                                               desc.columnFamily,
                                                               desc.sessionId.toString(),
                                                               false).createMessage(),
                                           endpoint,
                                           new SnapshotCallback(this));
View Full Code Here

Examples of org.apache.felix.deploymentadmin.spi.SnapshotCommand

        List commandChain = new ArrayList();

        GetStorageAreaCommand getStorageAreaCommand = new GetStorageAreaCommand();
        commandChain.add(getStorageAreaCommand);
        commandChain.add(new StopBundleCommand());
        commandChain.add(new SnapshotCommand(getStorageAreaCommand));
        commandChain.add(new UpdateCommand());
        commandChain.add(new StartCustomizerCommand());
        CommitResourceCommand commitCommand = new CommitResourceCommand();
        commandChain.add(new ProcessResourceCommand(commitCommand));
        commandChain.add(new DropResourceCommand(commitCommand));
View Full Code Here

Examples of org.apache.felix.deploymentadmin.spi.SnapshotCommand

        List commandChain = new ArrayList();

        GetStorageAreaCommand getStorageAreaCommand = new GetStorageAreaCommand();
        commandChain.add(getStorageAreaCommand);
        commandChain.add(new StopBundleCommand());
        commandChain.add(new SnapshotCommand(getStorageAreaCommand));
        commandChain.add(new StartCustomizerCommand());
        CommitResourceCommand commitCommand = new CommitResourceCommand();
        commandChain.add(new DropAllResourcesCommand(commitCommand));
        commandChain.add(commitCommand);
        commandChain.add(new DropAllBundlesCommand());
View Full Code Here

Examples of org.apache.felix.deploymentadmin.spi.SnapshotCommand

        List commandChain = new ArrayList();

        GetStorageAreaCommand getStorageAreaCommand = new GetStorageAreaCommand();
        commandChain.add(getStorageAreaCommand);
        commandChain.add(new StopBundleCommand());
        commandChain.add(new SnapshotCommand(getStorageAreaCommand));
        commandChain.add(new UpdateCommand());
        commandChain.add(new StartCustomizerCommand());
        CommitResourceCommand commitCommand = new CommitResourceCommand();
        commandChain.add(new ProcessResourceCommand(commitCommand));
        commandChain.add(new DropResourceCommand(commitCommand));
View Full Code Here

Examples of org.apache.felix.deploymentadmin.spi.SnapshotCommand

        List commandChain = new ArrayList();

        GetStorageAreaCommand getStorageAreaCommand = new GetStorageAreaCommand();
        commandChain.add(getStorageAreaCommand);
        commandChain.add(new StopBundleCommand());
        commandChain.add(new SnapshotCommand(getStorageAreaCommand));
        commandChain.add(new StartCustomizerCommand());
        CommitResourceCommand commitCommand = new CommitResourceCommand();
        commandChain.add(new DropAllResourcesCommand(commitCommand));
        commandChain.add(commitCommand);
        commandChain.add(new DropAllBundlesCommand());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.