Skip to content

Commit

Permalink
Remove deprecated RemoteProxy.getStatus method
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed May 18, 2018
1 parent 5344028 commit dfffd9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
12 changes: 0 additions & 12 deletions java/server/src/org/openqa/grid/internal/BaseRemoteProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
import static org.openqa.selenium.json.Json.MAP_TYPE;
import static org.openqa.selenium.remote.http.HttpMethod.GET;

import com.google.gson.Gson;
import com.google.gson.JsonObject;

import org.openqa.grid.common.RegistrationRequest;
import org.openqa.grid.common.SeleniumProtocol;
import org.openqa.grid.common.exception.GridException;
Expand Down Expand Up @@ -467,15 +464,6 @@ public Map<String, Object> getProxyStatus() {
}
}

/**
* @deprecated Use {@link #getProxyStatus()}.
*/
@Deprecated
public JsonObject getStatus() throws GridException {
Map<String, Object> status = getProxyStatus();
return new Gson().toJsonTree(status).getAsJsonObject();
}

@ManagedAttribute
public float getResourceUsageInPercent() {
return 100 * (float)getTotalUsed() / (float)getMaxNumberOfConcurrentTestSessions();
Expand Down
6 changes: 1 addition & 5 deletions java/server/src/org/openqa/grid/internal/RemoteProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,11 @@ default TestSlot createTestSlot(SeleniumProtocol protocol, Map<String, Object> c
*/
HttpClient getHttpClient(URL url);

/**
/**
* Renders the status of the node as JSON. Useful for APIs.
*
* @return the node status.
* @deprecated Use {@link #getProxyStatus()}.
*/
@Deprecated
JsonObject getStatus();

Map<String, Object> getProxyStatus();

/**
Expand Down

0 comments on commit dfffd9e

Please sign in to comment.