本文整理汇总了Java中org.apache.hadoop.hbase.util.HBaseFsck.ErrorReporter.print方法的典型用法代码示例。如果您正苦于以下问题:Java ErrorReporter.print方法的具体用法?Java ErrorReporter.print怎么用?Java ErrorReporter.print使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.hbase.util.HBaseFsck.ErrorReporter
的用法示例。
在下文中一共展示了ErrorReporter.print方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: report
import org.apache.hadoop.hbase.util.HBaseFsck.ErrorReporter; //导入方法依赖的package包/类
/**
* Print a human readable summary of hfile quarantining operations.
* @param out
*/
public void report(ErrorReporter out) {
out.print("Checked " + hfilesChecked.get() + " hfile for corruption");
out.print(" HFiles corrupted: " + corrupted.size());
if (inQuarantineMode) {
out.print(" HFiles successfully quarantined: " + quarantined.size());
for (Path sq : quarantined) {
out.print(" " + sq);
}
out.print(" HFiles failed quarantine: " + failures.size());
for (Path fq : failures) {
out.print(" " + fq);
}
}
out.print(" HFiles moved while checking: " + missing.size());
for (Path mq : missing) {
out.print(" " + mq);
}
String initialState = (corrupted.size() == 0) ? "OK" : "CORRUPTED";
String fixedState = (corrupted.size() == quarantined.size()) ? "OK"
: "CORRUPTED";
if (inQuarantineMode) {
out.print("Summary: " + initialState + " => " + fixedState);
} else {
out.print("Summary: " + initialState);
}
}