Search in sources :

Example 6 with GridClientTopologyRequest

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();
}
Also used : GridClientTopologyRequest(org.apache.ignite.internal.processors.rest.client.message.GridClientTopologyRequest)

Example 7 with GridClientTopologyRequest

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();
}
Also used : GridClientTopologyRequest(org.apache.ignite.internal.processors.rest.client.message.GridClientTopologyRequest)

Aggregations

GridClientTopologyRequest (org.apache.ignite.internal.processors.rest.client.message.GridClientTopologyRequest)7 GridClientNodeImpl (org.apache.ignite.internal.client.impl.GridClientNodeImpl)3 GridClientNodeBean (org.apache.ignite.internal.processors.rest.client.message.GridClientNodeBean)2 ArrayList (java.util.ArrayList)1 Collection (java.util.Collection)1 EnumMap (java.util.EnumMap)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 GridClientFutureAdapter (org.apache.ignite.internal.client.impl.GridClientFutureAdapter)1 GridClientAuthenticationRequest (org.apache.ignite.internal.processors.rest.client.message.GridClientAuthenticationRequest)1 GridClientCacheRequest (org.apache.ignite.internal.processors.rest.client.message.GridClientCacheRequest)1 GridClientClusterNameRequest (org.apache.ignite.internal.processors.rest.client.message.GridClientClusterNameRequest)1 GridClientClusterStateRequest (org.apache.ignite.internal.processors.rest.client.message.GridClientClusterStateRequest)1 GridClientClusterStateRequestV2 (org.apache.ignite.internal.processors.rest.client.message.GridClientClusterStateRequestV2)1 GridClientNodeStateBeforeStartRequest (org.apache.ignite.internal.processors.rest.client.message.GridClientNodeStateBeforeStartRequest)1 GridClientStateRequest (org.apache.ignite.internal.processors.rest.client.message.GridClientStateRequest)1 GridClientTaskRequest (org.apache.ignite.internal.processors.rest.client.message.GridClientTaskRequest)1 GridClientWarmUpRequest (org.apache.ignite.internal.processors.rest.client.message.GridClientWarmUpRequest)1 GridRestAuthenticationRequest (org.apache.ignite.internal.processors.rest.request.GridRestAuthenticationRequest)1