// Path: common/src/main/java/org/openshift/ping/common/stream/StreamProvider.java
// public interface StreamProvider {
// 
//     public InputStream openStream(String url, Map<String, String> headers, int connectTimeout, int readTimeout) throws IOException;
// 
// }


import static org.openshift.ping.common.Utils.openStream;
import static org.openshift.ping.common.Utils.urlencode;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jboss.dmr.ModelNode;
import org.openshift.ping.common.stream.StreamProvider;
/**
 *  Copyright 2014 Red Hat, Inc.
 *
 *  Red Hat licenses this file to you under the Apache License, version
 *  2.0 (the "License"); you may not use this file except in compliance
 *  with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 *  implied.  See the License for the specific language governing
 *  permissions and limitations under the License.
 */

package org.openshift.ping.kube;




/**
 * @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a>
 */
public class Client {
    private static final Logger log = Logger.getLogger(Client.class.getName());

    private final String masterUrl;
    private final Map<String, String> headers;
    private final int connectTimeout;
    private final int readTimeout;
    private final int operationAttempts;
    private final long operationSleep;
// Path: common/src/main/java/org/openshift/ping/common/stream/StreamProvider.java
// public interface StreamProvider {
// 
//     public InputStream openStream(String url, Map<String, String> headers, int connectTimeout, int readTimeout) throws IOException;
// 
// }


// Path: kube/src/main/java/org/openshift/ping/kube/Client.java
import static org.openshift.ping.common.Utils.openStream;
import static org.openshift.ping.common.Utils.urlencode;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jboss.dmr.ModelNode;
import org.openshift.ping.common.stream.StreamProvider;

/**
 *  Copyright 2014 Red Hat, Inc.
 *
 *  Red Hat licenses this file to you under the Apache License, version
 *  2.0 (the "License"); you may not use this file except in compliance
 *  with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 *  implied.  See the License for the specific language governing
 *  permissions and limitations under the License.
 */

package org.openshift.ping.kube;




/**
 * @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a>
 */
public class Client {
    private static final Logger log = Logger.getLogger(Client.class.getName());

    private final String masterUrl;
    private final Map<String, String> headers;
    private final int connectTimeout;
    private final int readTimeout;
    private final int operationAttempts;
    private final long operationSleep;
    private final StreamProvider streamProvider;