public final class InstanceContext extends Object
| Constructor and Description |
|---|
InstanceContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addComputeNodeInstance(ComputeNodeInstance instance)
Add compute node instance.
|
void |
deleteComputeNodeInstance(ComputeNodeInstance instance)
Delete compute node instance.
|
List<InstanceId> |
getComputeNodeInstanceIds(InstanceType instanceType,
Collection<String> labels)
Get compute node instances by instance type and labels.
|
long |
getWorkerId()
Get worker id.
|
void |
updateInstanceStatus(String instanceId,
Collection<String> status)
Update instance status.
|
void |
updateLabel(String instanceId,
Collection<String> labels)
Update instance label.
|
void |
updateWorkerId(Long workerId)
Update instance worker id.
|
void |
updateXaRecoveryId(String xaRecoveryId)
Update instance xa recovery id.
|
public void updateInstanceStatus(String instanceId, Collection<String> status)
instanceId - instance idstatus - collection of statuspublic void updateWorkerId(Long workerId)
workerId - worker idpublic void updateLabel(String instanceId, Collection<String> labels)
instanceId - instance idlabels - collection of labelpublic void updateXaRecoveryId(String xaRecoveryId)
xaRecoveryId - xa recovery idpublic long getWorkerId()
public void addComputeNodeInstance(ComputeNodeInstance instance)
instance - compute node instancepublic void deleteComputeNodeInstance(ComputeNodeInstance instance)
instance - compute node instancepublic List<InstanceId> getComputeNodeInstanceIds(InstanceType instanceType, Collection<String> labels)
instanceType - instance typelabels - collection of contained labelCopyright © 2022 The Apache Software Foundation. All rights reserved.