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

How to use
ResourceTimeoutException
in
io.cattle.platform.async.utils

Best Java code snippets using io.cattle.platform.async.utils.ResourceTimeoutException (Showing top 6 results out of 315)

origin: rancher/cattle

@Override
public boolean evaluate(Host obj) {
  if (!host.getState().equals(HostConstants.STATE_PROVISIONING)) {
    throw new ResourceTimeoutException(host, "provisioning canceled");
  }
  return obj.getAgentId() != null;
}
origin: rancher/cattle

protected Long getInstanceIdFromThrowable(Throwable t) {
  Object obj = null;
  if (t instanceof InstanceException) {
    obj = ((InstanceException) t).getInstance();
  }
  if (t instanceof ResourceTimeoutException) {
    obj = ((ResourceTimeoutException) t).getResource();
  }
  if (obj instanceof Instance) {
    return ((Instance) obj).getId();
  }
  return null;
}
origin: rancher/cattle

} catch (ResourceTimeoutException rte) {
  objectProcessManager.scheduleStandardProcess(StandardProcess.ERROR, host, null);
  ExecutionException e = new ExecutionException(rte.getMessage());
  e.setResources(host);
  throw e;
origin: rancher/cattle

throw new ResourceTimeoutException(obj, "Waiting: " + predicate.getMessage() + " [" + printKey + "]");
origin: rancher/cattle

@Override
public boolean evaluate(final PhysicalHost obj) {
  boolean transitioning = objectMetaDataManager.isTransitioningState(obj.getClass(),
      obj.getState());
  if (!transitioning) {
    return true;
  }
  objectManager.reload(host);
  if (!host.getState().equals(HostConstants.STATE_PROVISIONING)) {
    throw new ResourceTimeoutException(host, "provisioning canceled");
  }
  String message = TransitioningUtils.getTransitioningMessage(obj);
  objectManager.setFields(host, ObjectMetaDataManager.TRANSITIONING_MESSAGE_FIELD, message);
  DeferredUtils.nest(new Runnable() {
    @Override
    public void run() {
      ObjectUtils.publishChanged(eventService, objectManager, host);
    }
  });
  return false;
}
origin: rancher/cattle

int count = incrementDepTry(state);
if (serviceDao.isServiceInstance(instance) && count < 10) {
  throw new ResourceTimeoutException(instance, e.getMessage());
io.cattle.platform.async.utilsResourceTimeoutException

Most used methods

  • <init>
  • getMessage
  • getResource

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Sublime Text plugins
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