Configuration params = Configuration.builder().addSimple("cqlPort", 9142).addSimple("gossipPort", 7200)
.openList("addresses", "address").addSimples("127.0.0.1", "127.0.0.2")
.closeList().build();
OperationManager operationManager = PluginContainer.getInstance().getOperationManager();
OperationServicesAdapter operationsService = new OperationServicesAdapter(operationManager);
long timeout = 1000 * 60;
OperationContextImpl operationContext = new OperationContextImpl(newStorageNode.getId(), operationManager);
OperationServicesResult result = operationsService.invokeOperation(operationContext, "prepareForBootstrap",
params, timeout);
log.info("Waiting for node to boostrap...");
// When a node goes through bootstrap, StorageService sleeps for RING_DELAY ms
// while it determines the ranges of the token ring it will own. RING_DELAY defaults