Skip to content

Commit

Permalink
javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
snalli committed Nov 27, 2023
1 parent 5907439 commit 3899443
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
import org.slf4j.LoggerFactory;


/**
* This is an iterator for account storage stats fetched from MySQL
*/
public class AccountStorageStatsIterator implements Iterator<Pair<String, HostAccountStorageStatsWrapper>> {

private static final Logger logger = LoggerFactory.getLogger(AccountStorageStatsIterator.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
* This is an iterator for partition storage stats fetched from MySQL
*/
public class PartitionClassStorageStatsIterator implements
Iterator<Pair<String, HostPartitionClassStorageStatsWrapper>> {

Expand Down Expand Up @@ -47,5 +49,4 @@ public Pair<String, HostPartitionClassStorageStatsWrapper> next() {
throw new RuntimeException(e);
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

public class TaskUtils {

/**
* Given an instance name of the form hostname_port, returns a pair of <hostname, port>.
* Given an instance name of the form hostname, returns a pair of <hostname, defaultPort>.
* @param instanceName Name of the instance machine
* @param defaultPort Default port used by machines
* @return Pair of <hostname, port>
*/
protected static Pair<String, Integer> getHostNameAndPort(String instanceName, int defaultPort) {
String hostname = instanceName;
int port = defaultPort;
Expand Down

0 comments on commit 3899443

Please sign in to comment.