final NodeEngine nodeEngine = getNodeEngine();
if (attribute == null) {
throw new IllegalArgumentException("Attribute name cannot be null");
}
try {
AddIndexOperation addIndexOperation = new AddIndexOperation(name, attribute, ordered);
nodeEngine.getOperationService()
.invokeOnAllPartitions(SERVICE_NAME, new BinaryOperationFactory(addIndexOperation, nodeEngine));
} catch (Throwable t) {
throw ExceptionUtil.rethrow(t);
}