/*
Initiate {@code PING} on all connections and return the {@link Requests}.

@return the {@link Requests}.
19745
public Requests requestPing() {

        Set<Map.Entry<RedisURI, StatefulRedisConnection<String, String>>> entries = new LinkedHashSet<>(
                this.connections.entrySet());
        Requests requests = new Requests(entries.size(), this.nodes);

        for (Map.Entry<RedisURI, StatefulRedisConnection<String, String>> entry : entries) {

            CommandArgs<String, String> args = new CommandArgs<>(StringCodec.ASCII).add(CommandKeyword.NODES);
            Command<String, String, String> command = new Command<>(CommandType.PING, new StatusOutput<>(StringCodec.ASCII),
                    args);
            TimedAsyncCommand<String, String, String> timedCommand = new TimedAsyncCommand<>(command);

            entry.getValue().dispatch(timedCommand);
            requests.addRequest(entry.getKey(), timedCommand);
        }

        return requests;
    }
1359782
public java.util.List<String> getSpotInstanceRequestIds() {
        if (spotInstanceRequestIds == null) {
            spotInstanceRequestIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return spotInstanceRequestIds;
    }
760954
public java.util.List<String> getTasks() {
        if (tasks == null) {
            tasks = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return tasks;
    }
117132
public void request(List<org.apache.mesos.v1.Protos.Request> requests) {
    Builder request = build().setRequest(Request.newBuilder().addAllRequests(requests));
    sendCall(request, Type.REQUEST);
  }
554128
public ArrayList<TcpEndpoint> peers() {
        tcp_endpoint_vector v = alert.peers();
        int size = (int) v.size();
        ArrayList<TcpEndpoint> peers = new ArrayList<>(size);

        for (int i = 0; i < size; i++) {
            tcp_endpoint endp = v.get(i);
            String ip = new Address(endp.address()).toString(); // clone
            peers.add(new TcpEndpoint(ip, endp.port()));
        }

        return peers;
    }
378748
public java.util.List<Nameserver> getNameservers() {
        if (nameservers == null) {
            nameservers = new com.amazonaws.internal.SdkInternalList<Nameserver>();
        }
        return nameservers;
    }
1289616
public List<String> getSites() {
		List<String> sites = new ArrayList<String>();
		if (this.sessions == null) {
			return sites;
		}

		synchronized (sessionLock) {
			sites.addAll(this.sessions.keySet());
		}

		return sites;
	}
251911
public static ping[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ping obj = new ping();
		options option = new options();
		option.set_filter(filter);
		ping[] response = (ping[]) obj.getfiltered(service, option);
		return response;
	}
1335691
public java.util.List<SpotInstanceRequest> getSpotInstanceRequests() {
        if (spotInstanceRequests == null) {
            spotInstanceRequests = new com.amazonaws.internal.SdkInternalList<SpotInstanceRequest>();
        }
        return spotInstanceRequests;
    }
1102366
public final List<String> getServersDescription() {
    final List<String> result = new ArrayList<String>();
    for (Session session : this.connector.getSessionSet()) {
      InetSocketAddress socketAddress = session.getRemoteSocketAddress();
      int weight = ((MemcachedSession) session).getInetSocketAddressWrapper().getWeight();
      result.add(SystemUtils.getRawAddress(socketAddress) + ":" + socketAddress.getPort()
          + "(weight=" + weight + ")");
    }
    return result;
  }
283830
public java.util.List<String> getNatGatewayIds() {
        if (natGatewayIds == null) {
            natGatewayIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return natGatewayIds;
    }
225832
public Map<String, String> requestHeaders(){
        Map<String, String> headers = new HashMap<String, String>();
        Enumeration<String> names = request.getHeaderNames();
        while (names.hasMoreElements()) {
            String name = names.nextElement();
            headers.put(name, request.getHeader(name));
        }
        return headers;
    }
584111
public java.util.List<String> getHostIds() {
        if (hostIds == null) {
            hostIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return hostIds;
    }
838514
public java.util.List<ElasticIp> getElasticIps() {
        if (elasticIps == null) {
            elasticIps = new com.amazonaws.internal.SdkInternalList<ElasticIp>();
        }
        return elasticIps;
    }
761780
static List<NetworkInterface> getInterfaces() throws SocketException {
        List<NetworkInterface> all = new ArrayList<NetworkInterface>();
        addAllInterfaces(all, Collections.list(NetworkInterface.getNetworkInterfaces()));
        return all;
    }
869917
public List<HostAddress> connectedHosts() {
    List<HostAddress> usedHost = new ArrayList<>();

    if (isMasterHostFail()) {
      Protocol masterProtocol = waitNewMasterProtocol.get();
      if (masterProtocol != null) {
        usedHost.add(masterProtocol.getHostAddress());
      }
    } else {
      usedHost.add(masterProtocol.getHostAddress());
    }

    if (isSecondaryHostFail()) {
      Protocol secondProtocol = waitNewSecondaryProtocol.get();
      if (secondProtocol != null) {
        usedHost.add(secondProtocol.getHostAddress());
      }
    } else {
      usedHost.add(secondaryProtocol.getHostAddress());
    }

    return usedHost;
  }
1193105
public java.util.List<Lag> getLags() {
        if (lags == null) {
            lags = new com.amazonaws.internal.SdkInternalList<Lag>();
        }
        return lags;
    }