Codota Logo
ResourceTimeoutException
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • BoxLayout (javax.swing)
  • Join (org.hibernate.mapping)
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