SandboxNodes
Section titled “SandboxNodes”Read-only, live rank-ordered members, including the head at index zero.
Methods
Section titled “Methods”public SandboxNode get(int rank)Parameters:
rankint -
Returns:
SandboxNode-
size()
Section titled “size()”public int size()Returns:
int-
getProcess()
Section titled “getProcess()”public NodeProcess getProcess()Returns:
NodeProcess-
getFs()
Section titled “getFs()”public NodeFileSystem getFs()Returns:
NodeFileSystem-
public GangMembershipOperation add(List<NodeResources> nodes)Append rank-ordered nodes and wait up to 600 seconds. An accepted operation continues after a timeout.
Parameters:
nodesList<NodeResources> -
Returns:
GangMembershipOperation-
public GangMembershipOperation add(List<NodeResources> nodes, long timeoutSeconds)Wait up to timeoutSeconds for the membership change. Zero disables the wait limit. An accepted operation continues after a timeout.
Parameters:
nodesList<NodeResources> -timeoutSecondslong -
Returns:
GangMembershipOperation-
release()
Section titled “release()”public GangMembershipOperation release(int count)Release the highest ranks and wait up to 600 seconds. An accepted operation continues after a timeout.
Parameters:
countint -
Returns:
GangMembershipOperation-
release()
Section titled “release()”public GangMembershipOperation release(int count, long timeoutSeconds)Wait up to timeoutSeconds for the membership change. Zero disables the wait limit. An accepted operation continues after a timeout.
Parameters:
countint -timeoutSecondslong -
Returns:
GangMembershipOperation-
replace()
Section titled “replace()”public GangMembershipOperation replace(int rank)Replace a degraded rank and wait up to 600 seconds. An accepted operation continues after a timeout.
Parameters:
rankint -
Returns:
GangMembershipOperation-
replace()
Section titled “replace()”public GangMembershipOperation replace(int rank, long timeoutSeconds)Wait up to timeoutSeconds for the membership change. Zero disables the wait limit. An accepted operation continues after a timeout.
Parameters:
rankint -timeoutSecondslong -
Returns:
GangMembershipOperation-
SandboxNodes.NodeProcess
Section titled “SandboxNodes.NodeProcess”Parallel process execution over a membership snapshot.
Methods
Section titled “Methods”executeCommand()
Section titled “executeCommand()”public Map<Integer, ExecuteResponse> executeCommand(String command)Run the command on every rank.
Parameters:
commandString -
Returns:
Map\<Integer, ExecuteResponse\>-
Throws:
DaytonaNodeOperationException- if any rank fails. Inspect getFailures() for errors and getResults() for successful commands.
executeCommand()
Section titled “executeCommand()”public Map<Integer, ExecuteResponse> executeCommand(String command, NodeExecuteOptions options)Run the command on every rank.
Parameters:
commandString -optionsNodeExecuteOptions -
Returns:
Map\<Integer, ExecuteResponse\>-
Throws:
DaytonaNodeOperationException- if any rank fails. Inspect getFailures() for errors and getResults() for successful commands.
SandboxNodes.NodeFileSystem
Section titled “SandboxNodes.NodeFileSystem”Upload the same bytes to each node; successful uploads are not rolled back.
Methods
Section titled “Methods”uploadFile()
Section titled “uploadFile()”public void uploadFile(byte[] content, String destination)Upload the file to every rank.
Parameters:
contentbyte[] -destinationString -
Throws:
DaytonaNodeOperationException- if any rank fails. Inspect getFailures() for failed ranks. Successful uploads are retained.
uploadFile()
Section titled “uploadFile()”public void uploadFile(Path source, String destination)Upload the file to every rank.
Parameters:
sourcePath -destinationString -
Throws:
DaytonaNodeOperationException- if any rank fails. Inspect getFailures() for failed ranks. Successful uploads are retained.