lib: remove unnecessary methods in PieCannon
This commit is contained in:
@@ -14,16 +14,6 @@ import com.google.common.io.CharSource;
|
|||||||
import com.google.common.io.ByteStreams;
|
import com.google.common.io.ByteStreams;
|
||||||
|
|
||||||
public class PieCannon {
|
public class PieCannon {
|
||||||
private final List<Server> servers = new ArrayList<>();
|
|
||||||
|
|
||||||
public void addServer (final Server server) {
|
|
||||||
servers.add(server);
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<Server> getServers () {
|
|
||||||
return Collections.unmodifiableList(servers);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean testServer (final Server server) {
|
public static boolean testServer (final Server server) {
|
||||||
final String testString = "piecannon-test-" + System.currentTimeMillis();
|
final String testString = "piecannon-test-" + System.currentTimeMillis();
|
||||||
final URI result = server.upload("piecannon.test", CharSource.wrap(testString).asByteSource(Charsets.UTF_8));
|
final URI result = server.upload("piecannon.test", CharSource.wrap(testString).asByteSource(Charsets.UTF_8));
|
||||||
|
Reference in New Issue
Block a user