本文整理汇总了Java中org.apache.cassandra.db.compaction.CompactionInfo.Holder方法的典型用法代码示例。如果您正苦于以下问题:Java CompactionInfo.Holder方法的具体用法?Java CompactionInfo.Holder怎么用?Java CompactionInfo.Holder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cassandra.db.compaction.CompactionInfo
的用法示例。
在下文中一共展示了CompactionInfo.Holder方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: afterTest
import org.apache.cassandra.db.compaction.CompactionInfo; //导入方法依赖的package包/类
@After
public void afterTest()
{
for (CompactionInfo.Holder holder: CompactionMetrics.getCompactions())
{
holder.stop();
}
String ksname = KEYSPACE1;
String cfname = CF_STANDARDLOWiINTERVAL; // index interval of 8, no key caching
Keyspace keyspace = Keyspace.open(ksname);
ColumnFamilyStore cfs = keyspace.getColumnFamilyStore(cfname);
cfs.metadata.minIndexInterval(originalMinIndexInterval);
cfs.metadata.maxIndexInterval(originalMaxIndexInterval);
IndexSummaryManager.instance.setMemoryPoolCapacityInMB(originalCapacity);
}
示例2: finishCompaction
import org.apache.cassandra.db.compaction.CompactionInfo; //导入方法依赖的package包/类
public void finishCompaction(CompactionInfo.Holder ci)
{
// notify
ci.finished();
compactions.remove(ci);
bytesCompacted.inc(ci.getCompactionInfo().getTotal());
totalCompactionsCompleted.mark();
}
示例3: beginCompaction
import org.apache.cassandra.db.compaction.CompactionInfo; //导入方法依赖的package包/类
public void beginCompaction(CompactionInfo.Holder ci)
{
// notify
ci.started();
compactions.add(ci);
}
示例4: getCompactions
import org.apache.cassandra.db.compaction.CompactionInfo; //导入方法依赖的package包/类
public static List<CompactionInfo.Holder> getCompactions()
{
return new ArrayList<CompactionInfo.Holder>(compactions);
}