public interface DeltaRuntimeContext
extends io.cdap.cdap.api.plugin.PluginContext
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationName() |
int |
getInstanceId() |
int |
getMaxRetrySeconds() |
io.cdap.cdap.api.metrics.Metrics |
getMetrics() |
String |
getRunId() |
Map<String,String> |
getRuntimeArguments() |
byte[] |
getState(String key)
Get state associated with the given key.
|
void |
putState(String key,
byte[] val)
Write state for a given key.
|
String getApplicationName()
String getRunId()
io.cdap.cdap.api.metrics.Metrics getMetrics()
Map<String,String> getRuntimeArguments()
int getInstanceId()
int getMaxRetrySeconds()
@Nullable byte[] getState(String key) throws IOException
key - key to fetch state withIOExceptionvoid putState(String key, byte[] val) throws IOException
key - key to write toval - state to writeIOExceptionCopyright © 2020 CDAP Licensed under the Apache License, Version 2.0.