Codota Logo
OpenShiftProviderConfigImpl.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.guvnor.ala.openshift.config.impl.OpenShiftProviderConfigImpl
constructor

Best Java code snippets using org.guvnor.ala.openshift.config.impl.OpenShiftProviderConfigImpl.<init> (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.guvnor/guvnor-ala-openshift-provider

@Override
public OpenShiftProviderConfig asNewClone(OpenShiftProviderConfig origin) {
  return new OpenShiftProviderConfigImpl(origin);
}
origin: org.guvnor/guvnor-ala-openshift-provider

public OpenShiftProviderImpl(final String id, final OpenShiftProviderConfig config) {
  super(id, OpenShiftProviderType.instance(), new OpenShiftProviderConfigImpl(config));
}
origin: org.kie.workbench/kie-wb-common-ala-openshift-provider

  public static OpenShiftProviderImpl createOpenShiftProvider() {
    return new OpenShiftProviderImpl(PROVIDER_ID,
                     new OpenShiftProviderConfigImpl().clear());
  }
}
origin: org.guvnor/guvnor-ala-openshift-provider

  public static OpenShiftProviderImpl createOpenShiftProvider() {
    return new OpenShiftProviderImpl(PROVIDER_ID,
                     new OpenShiftProviderConfigImpl().clear());
  }
}
origin: org.guvnor/guvnor-ala-openshift-ui-backend

@Override
public OpenShiftProviderConfig toDomain(ProviderConfiguration modelValue) {
  if (modelValue == null) {
    return null;
  }
  OpenShiftProviderConfigImpl openShiftProviderConfig = new OpenShiftProviderConfigImpl();
  openShiftProviderConfig.clear();
  openShiftProviderConfig.setName(modelValue.getId());
  openShiftProviderConfig.setKubernetesMaster(getStringValue(modelValue.getValues(),
                                KUBERNETES_MASTER.inputKey()));
  openShiftProviderConfig.setKubernetesAuthBasicUsername(getStringValue(modelValue.getValues(),
                                     KUBERNETES_AUTH_BASIC_USERNAME.inputKey()));
  openShiftProviderConfig.setKubernetesAuthBasicPassword(getStringValue(modelValue.getValues(),
                                     KUBERNETES_AUTH_BASIC_PASSWORD.inputKey()));
  return openShiftProviderConfig;
}
origin: org.kie.workbench/kie-wb-common-ala-openshift-ui-backend

@Override
public OpenShiftProviderConfig toDomain(ProviderConfiguration modelValue) {
  if (modelValue == null) {
    return null;
  }
  OpenShiftProviderConfigImpl openShiftProviderConfig = new OpenShiftProviderConfigImpl();
  openShiftProviderConfig.clear();
  openShiftProviderConfig.setName(modelValue.getId());
  openShiftProviderConfig.setKubernetesMaster(getStringValue(modelValue.getValues(),
                                KUBERNETES_MASTER.inputKey()));
  openShiftProviderConfig.setKubernetesAuthBasicUsername(getStringValue(modelValue.getValues(),
                                     KUBERNETES_AUTH_BASIC_USERNAME.inputKey()));
  openShiftProviderConfig.setKubernetesAuthBasicPassword(getStringValue(modelValue.getValues(),
                                     KUBERNETES_AUTH_BASIC_PASSWORD.inputKey()));
  return openShiftProviderConfig;
}
origin: org.kie.workbench/kie-wb-common-ala-openshift-provider

@Test
public void testProviderConfig() {
  OpenShiftProviderConfigImpl providerConfig = new OpenShiftProviderConfigImpl().clear();
  providerConfig.setKubernetesMaster("https://localhost:8443");
  providerConfig.setKubernetesOapiVersion("v2");
  OpenShiftConfig clientConfig = OpenShiftAccessInterfaceImpl.buildOpenShiftConfig(providerConfig);
  assertEquals("https://localhost:8443/", clientConfig.getMasterUrl());
  assertEquals("https://localhost:8443/oapi/v2/", clientConfig.getOpenShiftUrl());
}
origin: org.guvnor/guvnor-ala-openshift-provider

@Test
public void testProviderConfig() {
  OpenShiftProviderConfigImpl providerConfig = new OpenShiftProviderConfigImpl().clear();
  providerConfig.setKubernetesMaster("https://localhost:8443");
  providerConfig.setKubernetesOapiVersion("v2");
  OpenShiftConfig clientConfig = OpenShiftAccessInterfaceImpl.buildOpenShiftConfig(providerConfig);
  assertEquals("https://localhost:8443/", clientConfig.getMasterUrl());
  assertEquals("https://localhost:8443/oapi/v2/", clientConfig.getOpenShiftUrl());
}
origin: org.kie.workbench/kie-wb-common-ala-openshift-provider

/**
 * Make sure we can reuse the provider for two different runtimes.
 * TODO: replace with more lightweight image and non-internal (minishift?) environment.
 * @throws Exception
 */
@Test
public void testProviderConfigReuse() throws Exception {
  OpenShiftProviderConfigImpl providerConfig = new OpenShiftProviderConfigImpl().clear();
  providerConfig.setName(getClass().getSimpleName());
  providerConfig.setKubernetesMaster("https://ce-os-rhel-master.usersys.redhat.com:8443");
  providerConfig.setKubernetesAuthBasicUsername("admin");
  providerConfig.setKubernetesAuthBasicPassword("admin");
  OpenShiftClient client = new OpenShiftAccessInterfaceImpl().newOpenShiftClient(providerConfig);
  OpenShiftRuntimeConfigImpl runtimeConfigA = createRuntimeConfig("tpcr1");
  OpenShiftRuntimeConfigImpl runtimeConfigB = createRuntimeConfig("tpcr2");
  client.create(runtimeConfigA);
  client.create(runtimeConfigB);
  client.destroy(runtimeConfigA.getRuntimeId().toString());
  client.destroy(runtimeConfigB.getRuntimeId().toString());
}
origin: org.guvnor/guvnor-ala-openshift-provider

/**
 * Make sure we can reuse the provider for two different runtimes.
 * TODO: replace with more lightweight image and non-internal (minishift?) environment.
 * @throws Exception
 */
@Test
public void testProviderConfigReuse() throws Exception {
  OpenShiftProviderConfigImpl providerConfig = new OpenShiftProviderConfigImpl().clear();
  providerConfig.setName(getClass().getSimpleName());
  providerConfig.setKubernetesMaster("https://ce-os-rhel-master.usersys.redhat.com:8443");
  providerConfig.setKubernetesAuthBasicUsername("admin");
  providerConfig.setKubernetesAuthBasicPassword("admin");
  OpenShiftClient client = new OpenShiftAccessInterfaceImpl().newOpenShiftClient(providerConfig);
  OpenShiftRuntimeConfigImpl runtimeConfigA = createRuntimeConfig("tpcr1");
  OpenShiftRuntimeConfigImpl runtimeConfigB = createRuntimeConfig("tpcr2");
  client.create(runtimeConfigA);
  client.create(runtimeConfigB);
  client.destroy(runtimeConfigA.getRuntimeId().toString());
  client.destroy(runtimeConfigB.getRuntimeId().toString());
}
org.guvnor.ala.openshift.config.implOpenShiftProviderConfigImpl<init>

Popular methods of OpenShiftProviderConfigImpl

  • setKubernetesAuthBasicPassword
  • setKubernetesAuthBasicUsername
  • setKubernetesMaster
  • setName
  • clear
  • setKubernetesOapiVersion
  • setAllProxy
  • setHttpProxy
  • setHttpsProxy
  • setKubernetesApiVersion
  • setKubernetesAuthToken
  • setKubernetesCertsCaData
  • setKubernetesAuthToken,
  • setKubernetesCertsCaData,
  • setKubernetesCertsCaFile,
  • setKubernetesCertsClientData,
  • setKubernetesCertsClientFile,
  • setKubernetesCertsClientKeyAlgo,
  • setKubernetesCertsClientKeyData,
  • setKubernetesCertsClientKeyFile,
  • setKubernetesCertsClientKeyPassphrase

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Collectors (java.util.stream)
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now