Class ComputePool

java.lang.Object
dev.frostlake.metastore.SqlObject
dev.frostlake.metastore.model.ComputePool
All Implemented Interfaces:
Taggable

public class ComputePool extends SqlObject
An account-level compute pool. The properties are the ones CREATE COMPUTE POOL takes: MIN_NODES, MAX_NODES and INSTANCE_FAMILY are required, AUTO_RESUME defaults to true and AUTO_SUSPEND_SECS to DEFAULT_AUTO_SUSPEND_SECS — the value UNSET restores, live-verified.

resumedOn is null until the first RESUME; a real account displays the epoch for a pool that has never resumed, and the SHOW renderer does the same.

  • Field Details

    • DEFAULT_AUTO_SUSPEND_SECS

      public static final int DEFAULT_AUTO_SUSPEND_SECS
      The AUTO_SUSPEND_SECS a real account applies when the property is unset.
      See Also:
  • Constructor Details

    • ComputePool

      public ComputePool(String name)
  • Method Details

    • getObjectType

      public String getObjectType()
      Description copied from class: SqlObject
      Get the type of this SQL object (e.g., "TABLE", "VIEW", "DATABASE") Subclasses should override to provide their specific type
      Specified by:
      getObjectType in class SqlObject
      Returns:
      The object type as a string
    • getMinNodes

      public int getMinNodes()
    • setMinNodes

      public void setMinNodes(int minNodes)
    • getMaxNodes

      public int getMaxNodes()
    • setMaxNodes

      public void setMaxNodes(int maxNodes)
    • getInstanceFamily

      public String getInstanceFamily()
    • setInstanceFamily

      public void setInstanceFamily(String instanceFamily)
    • isAutoResume

      public boolean isAutoResume()
    • setAutoResume

      public void setAutoResume(boolean autoResume)
    • getAutoSuspendSecs

      public int getAutoSuspendSecs()
    • setAutoSuspendSecs

      public void setAutoSuspendSecs(int autoSuspendSecs)
    • getState

      public ComputePoolState getState()
    • setState

      public void setState(ComputePoolState state)
    • getApplication

      public String getApplication()
    • setApplication

      public void setApplication(String application)
    • getPlacementGroup

      public String getPlacementGroup()
    • setPlacementGroup

      public void setPlacementGroup(String placementGroup)
    • getBackupInstanceFamilies

      public List<String> getBackupInstanceFamilies()
    • setBackupInstanceFamilies

      public void setBackupInstanceFamilies(List<String> backupInstanceFamilies)
    • getResumedOn

      public Instant getResumedOn()
      Null until the first RESUME; rendered as the epoch by SHOW, the way a real account does.
    • setResumedOn

      public void setResumedOn(Instant resumedOn)
    • getUpdatedOn

      public Instant getUpdatedOn()
    • touchUpdatedOn

      public void touchUpdatedOn()