Tabnine Logo
RuntimeOperationException
Code IndexAdd Tabnine to your IDE (free)

How to use
RuntimeOperationException
in
org.guvnor.ala.exceptions

Best Java code snippets using org.guvnor.ala.exceptions.RuntimeOperationException (Showing top 20 results out of 315)

origin: org.guvnor/guvnor-ala-openshift-provider

  @Override
  public void destroy(final RuntimeId runtimeId) {
    final Optional<OpenShiftProvider> _openshiftProvider = runtimeRegistry.getProvider(runtimeId.getProviderId(), OpenShiftProvider.class);
    if (!_openshiftProvider.isPresent()) {
      return;
    }
    OpenShiftProvider openshiftProvider = _openshiftProvider.get();
    try {
      LOG.info("Destroying runtime: " + runtimeId.getId());
      openshift.getOpenShiftClient(openshiftProvider).destroy(runtimeId.getId());
      LOG.info("Destroyed runtime: " + runtimeId.getId());
    } catch (OpenShiftClientException ex) {
      throw new RuntimeOperationException("Error Destroying runtime: " + runtimeId.getId(), ex);
    }
    runtimeRegistry.deregisterRuntime(runtimeId);

  }
}
origin: org.guvnor/guvnor-ala-openshift-provider

@Override
public void restart(RuntimeId runtimeId) throws RuntimeOperationException {
  OpenShiftRuntime runtime = (OpenShiftRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    LOG.info("Restarting runtime: " + runtimeId.getId());
    openshift.getOpenShiftClient(runtime.getProviderId()).restart(runtime.getId());
    refresh(runtimeId);
    LOG.info("Restarted runtime: " + runtimeId.getId());
  } catch (OpenShiftClientException ex) {
    LOG.error("Error Restarting runtime: " + runtimeId.getId(), ex);
    throw new RuntimeOperationException("Error Restarting runtime: " + runtimeId.getId(), ex);
  }
}
origin: org.guvnor/guvnor-ala-openshift-provider

@Override
public void stop(RuntimeId runtimeId) throws RuntimeOperationException {
  OpenShiftRuntime runtime = (OpenShiftRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    LOG.info("Stopping runtime: " + runtimeId.getId());
    openshift.getOpenShiftClient(runtime.getProviderId()).stop(runtime.getId());
    refresh(runtimeId);
    LOG.info("Stopped runtime: " + runtimeId.getId());
  } catch (OpenShiftClientException ex) {
    LOG.error("Error Stopping runtime: " + runtimeId.getId(), ex);
    throw new RuntimeOperationException("Error Stopping runtime: " + runtimeId.getId(), ex);
  }
}
origin: org.guvnor/guvnor-ala-openshift-provider

@Override
public void start(RuntimeId runtimeId) throws RuntimeOperationException {
  OpenShiftRuntime runtime = (OpenShiftRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    LOG.info("Starting runtime: " + runtimeId.getId());
    openshift.getOpenShiftClient(runtime.getProviderId()).start(runtime.getId());
    refresh(runtimeId);
    LOG.info("Started runtime: " + runtimeId.getId());
  } catch (OpenShiftClientException ex) {
    LOG.error("Error Starting runtime: " + runtimeId.getId(), ex);
    throw new RuntimeOperationException("Error Starting runtime: " + runtimeId.getId(), ex);
  }
}
origin: org.guvnor/guvnor-ala-openshift-provider

@Override
public void pause(RuntimeId runtimeId) throws RuntimeOperationException {
  OpenShiftRuntime runtime = (OpenShiftRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    LOG.info("Pausing runtime: " + runtimeId.getId());
    openshift.getOpenShiftClient(runtime.getProviderId()).pause(runtime.getId());
    refresh(runtimeId);
    LOG.info("Paused runtime: " + runtimeId.getId());
  } catch (OpenShiftClientException ex) {
    LOG.error("Error Pausing runtime: " + runtimeId.getId(), ex);
    throw new RuntimeOperationException("Error Pausing runtime: " + runtimeId.getId(), ex);
  }
}
origin: org.kie.workbench/kie-wb-common-ala-docker-provider

@Override
public void start(RuntimeId runtimeId) throws RuntimeOperationException {
  DockerRuntime runtime = (DockerRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    LOG.info("Starting container: " + runtimeId.getId());
    docker.getDockerClient(runtime.getProviderId()).startContainer(runtime.getId());
    refresh(runtimeId);
  } catch (DockerException | InterruptedException ex) {
    LOG.error("Error Starting container: " + runtimeId.getId(),
         ex);
    throw new RuntimeOperationException("Error Starting container: " + runtimeId.getId(),
                      ex);
  }
}
origin: org.guvnor/guvnor-ala-docker-provider

@Override
public void start(RuntimeId runtimeId) throws RuntimeOperationException {
  DockerRuntime runtime = (DockerRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    LOG.info("Starting container: " + runtimeId.getId());
    docker.getDockerClient(runtime.getProviderId()).startContainer(runtime.getId());
    refresh(runtimeId);
  } catch (DockerException | InterruptedException ex) {
    LOG.error("Error Starting container: " + runtimeId.getId(),
         ex);
    throw new RuntimeOperationException("Error Starting container: " + runtimeId.getId(),
                      ex);
  }
}
origin: org.guvnor/guvnor-ala-docker-provider

@Override
public void stop(RuntimeId runtimeId) throws RuntimeOperationException {
  DockerRuntime runtime = (DockerRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    LOG.info("Stopping container: " + runtimeId.getId());
    docker.getDockerClient(runtime.getProviderId()).stopContainer(runtime.getId(),
                                   1);
    refresh(runtimeId);
  } catch (DockerException | InterruptedException ex) {
    LOG.error("Error Stopping container: " + runtimeId.getId(),
         ex);
    throw new RuntimeOperationException("Error Stopping container: " + runtimeId.getId(),
                      ex);
  }
}
origin: org.kie.workbench/kie-wb-common-ala-docker-provider

@Override
public void stop(RuntimeId runtimeId) throws RuntimeOperationException {
  DockerRuntime runtime = (DockerRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    LOG.info("Stopping container: " + runtimeId.getId());
    docker.getDockerClient(runtime.getProviderId()).stopContainer(runtime.getId(),
                                   1);
    refresh(runtimeId);
  } catch (DockerException | InterruptedException ex) {
    LOG.error("Error Stopping container: " + runtimeId.getId(),
         ex);
    throw new RuntimeOperationException("Error Stopping container: " + runtimeId.getId(),
                      ex);
  }
}
origin: org.guvnor/guvnor-ala-docker-provider

@Override
public void restart(RuntimeId runtimeId) throws RuntimeOperationException {
  DockerRuntime runtime = (DockerRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    docker.getDockerClient(runtime.getProviderId()).restartContainer(runtime.getId());
    refresh(runtimeId);
  } catch (DockerException | InterruptedException ex) {
    LOG.error("Error Restarting container: " + runtimeId.getId(),
         ex);
    throw new RuntimeOperationException("Error Restarting container: " + runtimeId.getId(),
                      ex);
  }
}
origin: org.kie.workbench/kie-wb-common-ala-docker-provider

@Override
public void restart(RuntimeId runtimeId) throws RuntimeOperationException {
  DockerRuntime runtime = (DockerRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    docker.getDockerClient(runtime.getProviderId()).restartContainer(runtime.getId());
    refresh(runtimeId);
  } catch (DockerException | InterruptedException ex) {
    LOG.error("Error Restarting container: " + runtimeId.getId(),
         ex);
    throw new RuntimeOperationException("Error Restarting container: " + runtimeId.getId(),
                      ex);
  }
}
origin: org.guvnor/guvnor-ala-docker-provider

  @Override
  public void pause(RuntimeId runtimeId) throws RuntimeOperationException {
    DockerRuntime runtime = (DockerRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
    try {
      docker.getDockerClient(runtime.getProviderId()).pauseContainer(runtime.getId());
      refresh(runtimeId);
    } catch (DockerException | InterruptedException ex) {
      LOG.error("Error Pausing container: " + runtimeId.getId(),
           ex);
      throw new RuntimeOperationException("Error Pausing container: " + runtimeId.getId(),
                        ex);
    }
  }
}
origin: org.kie.workbench/kie-wb-common-ala-docker-provider

  @Override
  public void pause(RuntimeId runtimeId) throws RuntimeOperationException {
    DockerRuntime runtime = (DockerRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
    try {
      docker.getDockerClient(runtime.getProviderId()).pauseContainer(runtime.getId());
      refresh(runtimeId);
    } catch (DockerException | InterruptedException ex) {
      LOG.error("Error Pausing container: " + runtimeId.getId(),
           ex);
      throw new RuntimeOperationException("Error Pausing container: " + runtimeId.getId(),
                        ex);
    }
  }
}
origin: org.kie.workbench/kie-wb-common-ala-wildfly-provider

@Override
public void restart(RuntimeId runtimeId) {
  WildflyRuntime runtime = (WildflyRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    wildfly.getWildflyClient(runtime.getProviderId()).restart(runtime.getId());
    refresh(runtimeId);
  } catch (WildflyClientException ex) {
    throw new RuntimeOperationException("Error Restarting container: " + runtimeId.getId()
                          + "\n\t There as a problem with restarting your application, please check into the Wildfly Logs for more information.",
                      ex);
  }
}
origin: org.guvnor/guvnor-ala-wildfly-provider

@Override
public void start(RuntimeId runtimeId) throws RuntimeOperationException {
  WildflyRuntime runtime = (WildflyRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  int result = wildfly.getWildflyClient(runtime.getProviderId()).start(runtime.getId());
  if (result != 200) {
    throw new RuntimeOperationException("Error Starting container: " + runtimeId.getId()
                          + " \n\t There as a problem with starting your application, please check into the Wildfly Logs for more information.");
  }
  refresh(runtimeId);
}
origin: org.guvnor/guvnor-ala-wildfly-provider

@Override
public void stop(RuntimeId runtimeId) throws RuntimeOperationException {
  WildflyRuntime runtime = (WildflyRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    wildfly.getWildflyClient(runtime.getProviderId()).stop(runtime.getId());
    refresh(runtimeId);
  } catch (WildflyClientException ex) {
    throw new RuntimeOperationException("Error Stopping container: " + runtimeId.getId()
                          + "\n\t There as a problem with stopping your application, please check into the Wildfly Logs for more information.",
                      ex);
  }
}
origin: org.kie.workbench/kie-wb-common-ala-wildfly-provider

@Override
public void stop(RuntimeId runtimeId) throws RuntimeOperationException {
  WildflyRuntime runtime = (WildflyRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    wildfly.getWildflyClient(runtime.getProviderId()).stop(runtime.getId());
    refresh(runtimeId);
  } catch (WildflyClientException ex) {
    throw new RuntimeOperationException("Error Stopping container: " + runtimeId.getId()
                          + "\n\t There as a problem with stopping your application, please check into the Wildfly Logs for more information.",
                      ex);
  }
}
origin: org.guvnor/guvnor-ala-wildfly-provider

@Override
public void restart(RuntimeId runtimeId) {
  WildflyRuntime runtime = (WildflyRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  try {
    wildfly.getWildflyClient(runtime.getProviderId()).restart(runtime.getId());
    refresh(runtimeId);
  } catch (WildflyClientException ex) {
    throw new RuntimeOperationException("Error Restarting container: " + runtimeId.getId()
                          + "\n\t There as a problem with restarting your application, please check into the Wildfly Logs for more information.",
                      ex);
  }
}
origin: org.kie.workbench/kie-wb-common-ala-wildfly-provider

@Override
public void start(RuntimeId runtimeId) throws RuntimeOperationException {
  WildflyRuntime runtime = (WildflyRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
  int result = wildfly.getWildflyClient(runtime.getProviderId()).start(runtime.getId());
  if (result != 200) {
    throw new RuntimeOperationException("Error Starting container: " + runtimeId.getId()
                          + " \n\t There as a problem with starting your application, please check into the Wildfly Logs for more information.");
  }
  refresh(runtimeId);
}
origin: org.kie.workbench/kie-wb-common-ala-wildfly-provider

  @Override
  public void pause(RuntimeId runtimeId) throws RuntimeOperationException {
    WildflyRuntime runtime = (WildflyRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
    try {
      wildfly.getWildflyClient(runtime.getProviderId()).stop(runtime.getId());
      refresh(runtimeId);
    } catch (WildflyClientException ex) {
      throw new RuntimeOperationException("Error Pausing container: " + runtimeId.getId()
                            + "\n\t There as a problem with stopping your application, please check into the Wildfly Logs for more information.",
                        ex);
    }
  }
}
org.guvnor.ala.exceptionsRuntimeOperationException

Javadoc

RuntimeOperationException to be used in different RUntimeManager implementations.

Most used methods

  • <init>

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Notification (javax.management)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now