use of org.apache.ignite.internal.processors.rest.client.message.GridClientTopologyRequest in project ignite by apache.
the class TestBinaryClient method node.
/**
* @param ipAddr IP address.
* @param includeAttrs Whether to include attributes.
* @param includeMetrics Whether to include metrics.
* @return Node.
* @throws IgniteCheckedException In case of error.
*/
public GridClientNodeBean node(String ipAddr, boolean includeAttrs, boolean includeMetrics) throws IgniteCheckedException {
assert !F.isEmpty(ipAddr);
GridClientTopologyRequest msg = new GridClientTopologyRequest();
msg.nodeIp(ipAddr);
msg.includeAttributes(includeAttrs);
msg.includeMetrics(includeMetrics);
return makeRequest(msg).getObject();
}
use of org.apache.ignite.internal.processors.rest.client.message.GridClientTopologyRequest in project ignite by apache.
the class TestBinaryClient method node.
/**
* @param id Node ID.
* @param includeAttrs Whether to include attributes.
* @param includeMetrics Whether to include metrics.
* @return Node.
* @throws IgniteCheckedException In case of error.
*/
public GridClientNodeBean node(UUID id, boolean includeAttrs, boolean includeMetrics) throws IgniteCheckedException {
assert id != null;
GridClientTopologyRequest msg = new GridClientTopologyRequest();
msg.nodeId(id);
msg.includeAttributes(includeAttrs);
msg.includeMetrics(includeMetrics);
return makeRequest(msg).getObject();
}
Aggregations