Class AbstractComputeResource

All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Direct Known Subclasses:
SimpleComputeResource

@Entity @VoDml(id="execbroker:AbstractComputeResource", role=objectType) public abstract class AbstractComputeResource extends LifecycleComponent implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Abstract base class for compute resources. objectType: AbstractComputeResource
  • Constructor Details

    • AbstractComputeResource

      public AbstractComputeResource()
      Creates a new AbstractComputeResource
    • AbstractComputeResource

      public AbstractComputeResource(LifecyclePhase phase, LifecycleSchedule schedule, String kind, ComponentMetadata meta)
      full parameter constructor.
      Parameters:
      phase - The lifecycle phase.
      schedule - The lifecycle schedule.
      kind - The component type identifier.
      meta - The component metadata.
    • AbstractComputeResource

      public AbstractComputeResource(AbstractComputeResource other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • copyMe

      public abstract AbstractComponent copyMe()
      make a clone of the object taking into account current polymorhic type.
      Specified by:
      copyMe in class LifecycleComponent
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(AbstractComputeResource other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      forceLoad in class LifecycleComponent