public class BasicActionContext extends AbstractStageContext implements ActionContext
ActionContext.| Constructor and Description |
|---|
BasicActionContext(CustomActionContext context,
Metrics metrics,
String stageName) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSecureData(String namespace,
String name) |
void |
execute(TxRunnable runnable) |
SettableArguments |
getArguments() |
long |
getLogicalStartTime() |
String |
getNamespace() |
SecureStoreData |
getSecureData(String namespace,
String name) |
Map<String,String> |
listSecureData(String namespace) |
void |
putSecureData(String namespace,
String name,
String data,
String description,
Map<String,String> properties) |
getMetrics, getPluginProperties, getPluginProperties, getStageName, loadPluginClass, newPluginInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetrics, getPluginProperties, getPluginProperties, getStageName, loadPluginClass, newPluginInstancepublic BasicActionContext(CustomActionContext context, Metrics metrics, String stageName)
public long getLogicalStartTime()
getLogicalStartTime in interface ActionContextpublic SettableArguments getArguments()
getArguments in interface ActionContextpublic void execute(TxRunnable runnable) throws org.apache.tephra.TransactionFailureException
execute in interface Transactionalorg.apache.tephra.TransactionFailureExceptionpublic Map<String,String> listSecureData(String namespace) throws Exception
listSecureData in interface SecureStoreExceptionpublic SecureStoreData getSecureData(String namespace, String name) throws Exception
getSecureData in interface SecureStoreExceptionpublic void putSecureData(String namespace, String name, String data, String description, Map<String,String> properties) throws Exception
putSecureData in interface SecureStoreManagerExceptionpublic void deleteSecureData(String namespace, String name) throws Exception
deleteSecureData in interface SecureStoreManagerExceptionpublic String getNamespace()
getNamespace in interface ActionContextCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.