Codota Logo
OpenShiftProviderConfigImpl.clear
Code IndexAdd Codota to your IDE (free)

How to use
clear
method
in
org.guvnor.ala.openshift.config.impl.OpenShiftProviderConfigImpl

Best Java code snippets using org.guvnor.ala.openshift.config.impl.OpenShiftProviderConfigImpl.clear (Showing top 8 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.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.implOpenShiftProviderConfigImplclear

Popular methods of OpenShiftProviderConfigImpl

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

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Menu (java.awt)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JButton (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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