Skip to content

Commit

Permalink
Address review feedback. Fix checkstyle, javadoc, and whitespace warn…
Browse files Browse the repository at this point in the history
…ings
  • Loading branch information
apurtell committed Feb 16, 2022
1 parent 818b32c commit 9d0b028
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,31 @@ enum State {
}

/**
* Get the task's description.
* @return the task's description, typically a name
*/
String getDescription();

/**
* Get the current status of the task.
* @return the task's current status
*/
String getStatus();

/**
* Get the current state of the task.
* @return the task's current state
*/
State getState();

/**
* Get the task start time.
* @return the time when the task started, or 0 if it has not started yet
*/
long getStartTime();

/**
* Get the task completion time.
* @return the time when the task completed, or 0 if it has not completed yet
*/
long getCompletionTime();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static ServerTaskBuilder newBuilder() {

private ServerTaskBuilder() { }

private static class ServerTaskImpl implements ServerTask {
private static final class ServerTaskImpl implements ServerTask {

private final String description;
private final String status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
import org.apache.hadoop.hbase.ipc.ServerRpcController;
import org.apache.hadoop.hbase.log.HBaseMarkers;
import org.apache.hadoop.hbase.mob.MobFileCache;
import org.apache.hadoop.hbase.monitoring.MonitoredTask;
import org.apache.hadoop.hbase.monitoring.TaskMonitor;
import org.apache.hadoop.hbase.namequeues.NamedQueueRecorder;
import org.apache.hadoop.hbase.namequeues.SlowLogTableOpsChore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class TestClientClusterMetrics {
private static final byte[] CF = Bytes.toBytes("cf");

// We need to promote the visibility of tryRegionServerReport for this test
public static class MyRegionServer
public static class MyRegionServer
extends SingleProcessHBaseCluster.MiniHBaseClusterRegionServer {
public MyRegionServer(Configuration conf) throws IOException, InterruptedException {
super(conf);
Expand Down
2 changes: 1 addition & 1 deletion hbase-shell/src/main/ruby/hbase/admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ def status(format, type)
for server in cluster_metrics.getBackupMasters
puts(format(' %s:%d %d', server.getHostname, server.getPort, server.getStartcode))
end
master_coprocs = java.util.Arrays.toString(@admin.getMasterCoprocessors)
master_coprocs = @admin.getMasterCoprocessorNames.toString
unless master_coprocs.nil?
puts(format('master coprocessors: %s', master_coprocs))
end
Expand Down

0 comments on commit 9d0b028

Please sign in to comment.