SandboxNodes
Section titled “SandboxNodes”Rank-ordered nodes, including rank zero. Membership helpers wait by default; timing out ends the SDK wait and does not cancel a submitted operation.
Constructors
Section titled “Constructors”new SandboxNodes()
Section titled “new SandboxNodes()”def initialize(parent)Returns:
SandboxNodes- a new instance of SandboxNodes
Methods
Section titled “Methods”process()
Section titled “process()”def process()Returns the value of attribute process.
def fs()Returns the value of attribute fs.
each()
Section titled “each()”def each()Returns:
Enumerator, Array\<Daytona:SandboxNode\>
def [](rank)Parameters:
rankInteger - Index within this Sandbox response; a direct worker lookup has one member
Returns:
Daytona:SandboxNode, nil
size()
Section titled “size()”def size()Returns:
Integer- Current membership size
length()
Section titled “length()”def length()Returns:
Integer- Current membership size
to_a()
Section titled “to_a()”def to_a()Returns:
Array\<Daytona:SandboxNode\>- Snapshot of current membership
def add(nodes:, timeout: 600)Parameters:
nodesArray<Daytona:NodeResources> - Resources in appended rank ordertimeoutNumeric - Overall wait budget in seconds; zero disables it
Returns:
DaytonaApiClient:GangMembershipOperation
release()
Section titled “release()”def release(count: 1, timeout: 600)Parameters:
countInteger - Number of highest ranks to releasetimeoutNumeric - Overall wait budget in seconds. Zero disables the limit.
Returns:
DaytonaApiClient:GangMembershipOperation
Raises:
Sdk:Error-
replace()
Section titled “replace()”def replace(rank:, timeout: 600)Parameters:
rankInteger - Failed logical rank to replacetimeoutNumeric - Overall wait budget in seconds. Zero disables the limit.
Returns:
DaytonaApiClient:GangMembershipOperation
Raises:
Sdk:Error-