Package dev.frostlake.metastore.model
Class ComputePool
java.lang.Object
dev.frostlake.metastore.SqlObject
dev.frostlake.metastore.model.ComputePool
- All Implemented Interfaces:
Taggable
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe AUTO_SUSPEND_SECS a real account applies when the property is unset.Fields inherited from class dev.frostlake.metastore.SqlObject
comment, createdTime, name, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintGet the type of this SQL object (e.g., "TABLE", "VIEW", "DATABASE") Subclasses should override to provide their specific typeNull until the first RESUME; rendered as the epoch by SHOW, the way a real account does.getState()booleanvoidsetApplication(String application) voidsetAutoResume(boolean autoResume) voidsetAutoSuspendSecs(int autoSuspendSecs) voidsetBackupInstanceFamilies(List<String> backupInstanceFamilies) voidsetInstanceFamily(String instanceFamily) voidsetMaxNodes(int maxNodes) voidsetMinNodes(int minNodes) voidsetPlacementGroup(String placementGroup) voidsetResumedOn(Instant resumedOn) voidsetState(ComputePoolState state) voidMethods inherited from class dev.frostlake.metastore.SqlObject
equals, getComment, getCreatedTime, getName, getOwner, getTagValue, getTagValues, hashCode, rename, setComment, setName, setOwner, setTag, toString, unsetTag, withoutTrailingSemicolon
-
Field Details
-
DEFAULT_AUTO_SUSPEND_SECS
public static final int DEFAULT_AUTO_SUSPEND_SECSThe AUTO_SUSPEND_SECS a real account applies when the property is unset.- See Also:
-
-
Constructor Details
-
ComputePool
-
-
Method Details
-
getObjectType
Description copied from class:SqlObjectGet the type of this SQL object (e.g., "TABLE", "VIEW", "DATABASE") Subclasses should override to provide their specific type- Specified by:
getObjectTypein classSqlObject- 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
-
setInstanceFamily
-
isAutoResume
public boolean isAutoResume() -
setAutoResume
public void setAutoResume(boolean autoResume) -
getAutoSuspendSecs
public int getAutoSuspendSecs() -
setAutoSuspendSecs
public void setAutoSuspendSecs(int autoSuspendSecs) -
getState
-
setState
-
getApplication
-
setApplication
-
getPlacementGroup
-
setPlacementGroup
-
getBackupInstanceFamilies
-
setBackupInstanceFamilies
-
getResumedOn
Null until the first RESUME; rendered as the epoch by SHOW, the way a real account does. -
setResumedOn
-
getUpdatedOn
-
touchUpdatedOn
public void touchUpdatedOn()
-