AtomicReference operations
Usage:
clc atomicreference [command] [flags]clc atomicreference clear
Deletes the AtomicReference value.
Usage:
clc atomicreference clear [flags]Parameters:
| Parameter | Required | Description | Default | 
|---|---|---|---|
| 
 | Optional | Name of the AtomicReference. | 
 | 
Global parameters
| Parameter | Description | Default | ||
|---|---|---|---|---|
| 
 | Path to the configuration file in YAML format. | The following locations are tried in order for the existence of  
 | ||
| 
 | Set the output format 
 | 
 | ||
| 
 | Set the log level, one of: 
 | 
 | ||
| 
 | Set the log path. Use  | 
 | ||
| 
 | Prevent displaying unnecessary output. | 
 | ||
| 
 | Enable output with more information. | 
 | ||
| 
 | Timeout for operation to complete. The duration is a string in the form of  
 Underscore (_) character is ignored in the  The following are a few of the valid DURATIONs: 
 
 | 
Example:
clc atomicreference --name ref1 clear ref1clc atomicreference compare-and-set
Sets the value for the given key if it has the expected value.
Usage:
clc atomicreference compare-and-set [expected value] [new value] [flags]Parameters:
| Parameter | Required | Description | Default | 
|---|---|---|---|
| 
 | Optional | Name of the AtomicReference. | 
 | 
| 
 | Required | Old value of the atomic reference. | N/A | 
| 
 | Required | New value of the atomic reference. | N/A | 
| 
 | Optional | Data type of the value. One of:  | string | 
| 
 | Optional | Add a type column to the output. | 
 | 
Global parameters
| Parameter | Description | Default | ||
|---|---|---|---|---|
| 
 | Path to the configuration file in YAML format. | The following locations are tried in order for the existence of  
 | ||
| 
 | Set the output format 
 | 
 | ||
| 
 | Set the log level, one of: 
 | 
 | ||
| 
 | Set the log path. Use  | 
 | ||
| 
 | Prevent displaying unnecessary output. | 
 | ||
| 
 | Enable output with more information. | 
 | ||
| 
 | Timeout for operation to complete. The duration is a string in the form of  
 Underscore (_) character is ignored in the  The following are a few of the valid DURATIONs: 
 
 | 
Example:
clc atomicreference --name ref1 compare-and-set previous-value next-valueclc atomicreference contains
Checks whether the AtomcReference has the given value.
Usage:
clc atomicreference contains [value] [flags]Parameters:
| Parameter | Required | Description | Default | 
|---|---|---|---|
| 
 | Optional | Name of the AtomicReference. | 
 | 
| 
 | Required | Value to be checked for existence. | N/A | 
| 
 | Optional | Data type of the value. One of:  | string | 
| 
 | Optional | Add a type column to the output. | 
 | 
Global parameters
| Parameter | Description | Default | ||
|---|---|---|---|---|
| 
 | Path to the configuration file in YAML format. | The following locations are tried in order for the existence of  
 | ||
| 
 | Set the output format 
 | 
 | ||
| 
 | Set the log level, one of: 
 | 
 | ||
| 
 | Set the log path. Use  | 
 | ||
| 
 | Prevent displaying unnecessary output. | 
 | ||
| 
 | Enable output with more information. | 
 | ||
| 
 | Timeout for operation to complete. The duration is a string in the form of  
 Underscore (_) character is ignored in the  The following are a few of the valid DURATIONs: 
 
 | 
Example:
clc atomicreference --name ref1 contains my-valueclc atomicreference get
Gets the AtomicReference value.
Usage:
clc atomicreference get [value] [flags]Parameters:
| Parameter | Required | Description | Default | 
|---|---|---|---|
| 
 | Optional | Name of the AtomicReference. | 
 | 
| 
 | Required | Value to be checked for existence. | N/A | 
| 
 | Optional | Data type of the value. One of:  | string | 
| 
 | Optional | Add a type column to the output. | 
 | 
Global parameters
| Parameter | Description | Default | ||
|---|---|---|---|---|
| 
 | Path to the configuration file in YAML format. | The following locations are tried in order for the existence of  
 | ||
| 
 | Set the output format 
 | 
 | ||
| 
 | Set the log level, one of: 
 | 
 | ||
| 
 | Set the log path. Use  | 
 | ||
| 
 | Prevent displaying unnecessary output. | 
 | ||
| 
 | Enable output with more information. | 
 | ||
| 
 | Timeout for operation to complete. The duration is a string in the form of  
 Underscore (_) character is ignored in the  The following are a few of the valid DURATIONs: 
 
 | 
Example:
clc atomicreference --name ref1 get my-valueclc atomicreference get-and-set
Sets a value in the given AtomicReference and returns the previous value.
Usage:
clc atomicreference get-and-set [value] [flags]Parameters:
| Parameter | Required | Description | Default | 
|---|---|---|---|
| 
 | Optional | Name of the AtomicReference. | 
 | 
| 
 | Required | Value to be checked for existence. | N/A | 
| 
 | Optional | Data type of the value. One of:  | string | 
| 
 | Optional | Add a type column to the output. | 
 | 
Global parameters
| Parameter | Description | Default | ||
|---|---|---|---|---|
| 
 | Path to the configuration file in YAML format. | The following locations are tried in order for the existence of  
 | ||
| 
 | Set the output format 
 | 
 | ||
| 
 | Set the log level, one of: 
 | 
 | ||
| 
 | Set the log path. Use  | 
 | ||
| 
 | Prevent displaying unnecessary output. | 
 | ||
| 
 | Enable output with more information. | 
 | ||
| 
 | Timeout for operation to complete. The duration is a string in the form of  
 Underscore (_) character is ignored in the  The following are a few of the valid DURATIONs: 
 
 | 
Example:
clc atomicreference --name ref1 get-and-set my-valueclc atomicreference is-null
Checks whether the stored value in the reference is null.
Usage:
clc atomicreference is-null [flags]Parameters:
| Parameter | Required | Description | Default | 
|---|---|---|---|
| 
 | Optional | Name of the AtomicReference. | 
 | 
| 
 | Optional | Add a type column to the output. | 
 | 
Global parameters
| Parameter | Description | Default | ||
|---|---|---|---|---|
| 
 | Path to the configuration file in YAML format. | The following locations are tried in order for the existence of  
 | ||
| 
 | Set the output format 
 | 
 | ||
| 
 | Set the log level, one of: 
 | 
 | ||
| 
 | Set the log path. Use  | 
 | ||
| 
 | Prevent displaying unnecessary output. | 
 | ||
| 
 | Enable output with more information. | 
 | ||
| 
 | Timeout for operation to complete. The duration is a string in the form of  
 Underscore (_) character is ignored in the  The following are a few of the valid DURATIONs: 
 
 | 
Example:
clc atomicreference --name ref1 is-nullclc atomicreference set
Sets a value in the given AtomicReference.
Usage:
clc atomicreference set [value] [flags]Parameters:
| Parameter | Required | Description | Default | 
|---|---|---|---|
| 
 | Optional | Name of the AtomicReference. | 
 | 
| 
 | Required | Value to be checked for existence. | N/A | 
| 
 | Optional | Data type of the value. One of:  | string | 
Global parameters
| Parameter | Description | Default | ||
|---|---|---|---|---|
| 
 | Path to the configuration file in YAML format. | The following locations are tried in order for the existence of  
 | ||
| 
 | Set the output format 
 | 
 | ||
| 
 | Set the log level, one of: 
 | 
 | ||
| 
 | Set the log path. Use  | 
 | ||
| 
 | Prevent displaying unnecessary output. | 
 | ||
| 
 | Enable output with more information. | 
 | ||
| 
 | Timeout for operation to complete. The duration is a string in the form of  
 Underscore (_) character is ignored in the  The following are a few of the valid DURATIONs: 
 
 | 
Example:
clc atomicreference --name ref1 set my-valueclc atomicreference destroy
Deletes the AtomicReference and related data. Once destroyed, an AtomicReference with the same name cannot be used.
Usage:
clc atomicreference destroy [flags]Parameters:
| Parameter | Required | Description | Default | 
|---|---|---|---|
| 
 | Optional | Name of the atomic reference. | 
 | 
| 
 | Optional | Skip confirming the destroy operation. | 
 |