congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
HealthcheckInstance.getId
Code IndexAdd Tabnine to your IDE (free)

How to use
getId
method
in
io.cattle.platform.core.model.HealthcheckInstance

Best Java code snippets using io.cattle.platform.core.model.HealthcheckInstance.getId (Showing top 7 results out of 315)

origin: rancher/cattle

    HealthcheckInstance.class, healthInstance.getId());
List<? extends Host> availableActiveHosts = allocatorDao.getActiveHosts(healthInstance.getAccountId());
origin: rancher/cattle

protected String determineNewHealthState(HealthcheckInstance hcInstance, HealthcheckInstanceHostMap hcihm,
    String healthState) {
  List<HealthcheckInstanceHostMap> others = objectManager.find(HealthcheckInstanceHostMap.class,
      HEALTHCHECK_INSTANCE_HOST_MAP.HEALTHCHECK_INSTANCE_ID, hcInstance.getId(),
      HEALTHCHECK_INSTANCE_HOST_MAP.STATE, CommonStatesConstants.ACTIVE);
origin: rancher/cattle

@Override
public void healthCheckReconcile(final HealthcheckInstanceHostMap hcihm, final String healthState) {
  final HealthcheckInstance hcInstance = objectManager.loadResource(HealthcheckInstance.class,
      hcihm.getHealthcheckInstanceId());
  lockManager.lock(new HealthcheckInstanceLock(hcInstance.getId()), new LockCallbackNoReturn() {
    @Override
    public void doWithLockNoResult() {
      processHealthcheckInstance(hcihm, healthState);
    }
  });
}
origin: rancher/cattle

protected void createHealthCheckHostMaps(HealthcheckInstanceType instanceType, long id, Long accountId,
    HealthcheckInstance healthInstance) {
  Long inferiorHostId = getInstanceHostId(instanceType, id);
  List<Long> healthCheckHostIds = getHealthCheckHostIds(healthInstance, inferiorHostId);
  List<HealthcheckInstanceHostMap> healthHostMaps = objectManager.find(HealthcheckInstanceHostMap.class,
      HEALTHCHECK_INSTANCE_HOST_MAP.HEALTHCHECK_INSTANCE_ID, healthInstance.getId(),
      HEALTHCHECK_INSTANCE_HOST_MAP.REMOVED, null);
  for (Long healthCheckHostId : healthCheckHostIds) {
    HealthcheckInstanceHostMap healthHostMap = null;
      for(HealthcheckInstanceHostMap hostMap : healthHostMaps) {
        if(!hostMap.getHostId().equals(healthCheckHostId)) {
            continue;
        }
        if (healthHostMap == null) {
            healthHostMap = hostMap;
        } else if (!hostMap.getState().equals(CommonStatesConstants.REMOVING)) {
            objectProcessManager.scheduleStandardProcess(StandardProcess.REMOVE, hostMap, null);
          }
    }
    Long instanceId = (instanceType == HealthcheckInstanceType.INSTANCE ? id : null);
    if (healthHostMap == null) {
      resourceDao.createAndSchedule(HealthcheckInstanceHostMap.class, HEALTHCHECK_INSTANCE_HOST_MAP.HOST_ID,
          healthCheckHostId,
          HEALTHCHECK_INSTANCE_HOST_MAP.HEALTHCHECK_INSTANCE_ID, healthInstance.getId(),
          HEALTHCHECK_INSTANCE_HOST_MAP.ACCOUNT_ID,
          accountId,
          HEALTHCHECK_INSTANCE_HOST_MAP.INSTANCE_ID, instanceId);
    }
  }
}
origin: rancher/cattle

@Override
public HandlerResult handle(ProcessState state, ProcessInstance process) {
  Instance instance = (Instance) state.getResource();
  HealthcheckInstance hi = objectManager.findAny(HealthcheckInstance.class, HEALTHCHECK_INSTANCE.INSTANCE_ID,
      instance.getId(),
      HEALTHCHECK_INSTANCE.REMOVED, null);
  if (hi == null) {
    return null;
  }
  List<? extends HealthcheckInstanceHostMap> hostMaps = objectManager.find(HealthcheckInstanceHostMap.class,
      HEALTHCHECK_INSTANCE_HOST_MAP.HEALTHCHECK_INSTANCE_ID,
      hi.getId(),
      HEALTHCHECK_INSTANCE_HOST_MAP.REMOVED, null);
  for (HealthcheckInstanceHostMap hostMap : hostMaps) {
    objectProcessManager.scheduleStandardProcess(StandardProcess.REMOVE, hostMap, null);
  }
  objectProcessManager.scheduleStandardProcess(StandardProcess.REMOVE, hi, null);
  return null;
}
origin: rancher/cattle

event.setHealthcheckInstanceId(healthcheckInstance.getId());
event.setHostId(healthcheckInstanceHostMap.getHostId());
origin: rancher/cattle

/**
 * {@inheritDoc}
 */
@Override
public void from(io.cattle.platform.core.model.HealthcheckInstance from) {
  setId(from.getId());
  setName(from.getName());
  setAccountId(from.getAccountId());
  setKind(from.getKind());
  setUuid(from.getUuid());
  setDescription(from.getDescription());
  setState(from.getState());
  setCreated(from.getCreated());
  setRemoved(from.getRemoved());
  setRemoveTime(from.getRemoveTime());
  setData(from.getData());
  setInstanceId(from.getInstanceId());
}
io.cattle.platform.core.modelHealthcheckInstancegetId

Javadoc

Getter for cattle.healthcheck_instance.id.

Popular methods of HealthcheckInstance

  • getInstanceId
    Getter for cattle.healthcheck_instance.instance_id.
  • getAccountId
    Getter for cattle.healthcheck_instance.account_id.
  • getRemoved
    Getter for cattle.healthcheck_instance.removed.
  • from
    Load data from another generated Record/POJO implementing the common interface HealthcheckInstance
  • getCreated
    Getter for cattle.healthcheck_instance.created.
  • getData
    Getter for cattle.healthcheck_instance.data.
  • getDescription
    Getter for cattle.healthcheck_instance.description.
  • getKind
    Getter for cattle.healthcheck_instance.kind.
  • getName
    Getter for cattle.healthcheck_instance.name.
  • getRemoveTime
    Getter for cattle.healthcheck_instance.remove_time.
  • getState
    Getter for cattle.healthcheck_instance.state.
  • getUuid
    Getter for cattle.healthcheck_instance.uuid.
  • getState,
  • getUuid

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JTable (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • CodeWhisperer alternatives
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