Package net.sf.katta.operation.master

Examples of net.sf.katta.operation.master.IndexUndeployOperation


      assertEquals(getNodeCount(), protocol.getShardNodes(shard.getName()).size());
      assertEquals(1, shard.getMetaDataMap().size());
    }

    // undeploy
    IndexUndeployOperation undeployOperation = new IndexUndeployOperation(INDEX_NAME);
    protocol.addMasterOperation(undeployOperation);
    TestUtil.waitUntilShardsUndeployed(protocol, indexMD);

    assertEquals(0, protocol.getIndices().size());
    assertEquals(null, protocol.getIndexMD(INDEX_NAME));
View Full Code Here


  @Override
  public void removeIndex(String indexName) {
    if (!existsIndex(indexName)) {
      throw new IllegalArgumentException("index with name '" + indexName + "' does not exists");
    }
    _protocol.addMasterOperation(new IndexUndeployOperation(indexName));
  }
View Full Code Here

TOP

Related Classes of net.sf.katta.operation.master.IndexUndeployOperation

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.