public class JsonJob extends Object implements FlowControlJob, io.continual.util.data.json.JsonSerialized
| Modifier and Type | Class and Description |
|---|---|
static interface |
JsonJob.Encryptor |
| Constructor and Description |
|---|
JsonJob(String name,
JsonJob.Encryptor enc) |
JsonJob(String name,
JsonJob.Encryptor enc,
org.json.JSONObject persisted) |
| Modifier and Type | Method and Description |
|---|---|
AccessControlList |
getAccessControlList() |
FlowControlJobConfig |
getConfiguration()
Get the configuration for this job.
|
String |
getId() |
String |
getName()
Get this job's name.
|
FlowControlRuntimeSpec |
getRuntimeSpec()
Get the runtime spec for this job.
|
Set<String> |
getSecretRefs()
Get a set of secret references used in this job's deployment.
|
Map<String,String> |
getSecrets()
Get a map of secrets and their values
|
FlowControlJob |
registerSecret(String key,
String value)
Register a secret key and value.
|
FlowControlJob |
removeSecretRef(String key)
Remove a secret reference from this job.
|
FlowControlJob |
setConfiguration(FlowControlJobConfig config)
Set the configuration for this job.
|
FlowControlJob |
setRuntimeSpec(FlowControlRuntimeSpec runtimeSpec)
Set the runtime spec for this job.
|
org.json.JSONObject |
toJson() |
public JsonJob(String name, JsonJob.Encryptor enc)
public JsonJob(String name, JsonJob.Encryptor enc, org.json.JSONObject persisted)
public org.json.JSONObject toJson()
toJson in interface io.continual.util.data.json.JsonSerializedpublic AccessControlList getAccessControlList()
getAccessControlList in interface ProtectedResourcepublic String getName()
FlowControlJobgetName in interface FlowControlJobpublic FlowControlJobConfig getConfiguration()
FlowControlJobgetConfiguration in interface FlowControlJobpublic FlowControlJob setConfiguration(FlowControlJobConfig config) throws IOException
FlowControlJobsetConfiguration in interface FlowControlJobIOExceptionpublic FlowControlRuntimeSpec getRuntimeSpec()
FlowControlJobgetRuntimeSpec in interface FlowControlJobpublic FlowControlJob setRuntimeSpec(FlowControlRuntimeSpec runtimeSpec)
FlowControlJobsetRuntimeSpec in interface FlowControlJobpublic Set<String> getSecretRefs()
FlowControlJobgetSecretRefs in interface FlowControlJobpublic FlowControlJob registerSecret(String key, String value) throws FlowControlJobDb.ServiceException
FlowControlJobregisterSecret in interface FlowControlJobFlowControlJobDb.ServiceExceptionpublic FlowControlJob removeSecretRef(String key)
FlowControlJobremoveSecretRef in interface FlowControlJobpublic Map<String,String> getSecrets() throws FlowControlJobDb.ServiceException
FlowControlJobgetSecrets in interface FlowControlJobFlowControlJobDb.ServiceExceptionCopyright © 2022 continual.io. All rights reserved.