我想知道是否可以forceKeyspaceFlush()
从 Cassandra 的 C/C++ 驱动程序复制 nodetool 实用程序中的函数。
nodetool 函数如下所示:
public class Flush extends NodeToolCmd
{
@Arguments(usage = "[<keyspace> <tables>...]", description = "The keyspace followed by one or many tables")
private List<String> args = new ArrayList<>();
@Override
public void execute(NodeProbe probe)
{
List<String> keyspaces = parseOptionalKeyspace(args, probe);
String[] tableNames = parseOptionalTables(args);
for (String keyspace : keyspaces)
{
try
{
probe.forceKeyspaceFlush(keyspace, tableNames);
} catch (Exception e)
{
throw new RuntimeException("Error occurred during flushing", e);
}
}
}
}
我想在我的 C++ 软件中复制的是这一行:
probe.forceKeyspaceFlush(keyspace, tableNames);
可能吗?