use of org.ovirt.engine.core.vdsbroker.vdsbroker.FenceStatusReturn in project ovirt-engine by oVirt.
the class JsonRpcVdsServer method fenceNode.
@Override
public FenceStatusReturn fenceNode(String ip, String port, String type, String user, String password, String action, String secured, String options, Map<String, Object> fencingPolicy) {
JsonRpcRequest request = new RequestBuilder("Host.fenceNode").withParameter("addr", ip).withParameter("port", port).withParameter("agent", type).withParameter("username", user).withParameter("password", password).withParameter("action", action).withOptionalParameter("secure", secured).withOptionalParameter("options", options).withOptionalParameterAsMap("policy", fencingPolicy).build();
Map<String, Object> response = new FutureMap(this.client, request).withIgnoreResponseKey();
return new FenceStatusReturn(response);
}
Aggregations