public class MockActionContext extends Object implements ActionContext
| Constructor and Description |
|---|
MockActionContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSecureData(String namespace,
String name) |
void |
execute(int timeoutInSeconds,
TxRunnable runnable) |
void |
execute(TxRunnable runnable) |
SettableArguments |
getArguments() |
long |
getLogicalStartTime() |
StageMetrics |
getMetrics() |
String |
getNamespace() |
PluginProperties |
getPluginProperties() |
PluginProperties |
getPluginProperties(String pluginId) |
SecureStoreData |
getSecureData(String namespace,
String name) |
String |
getStageName() |
Map<String,String> |
listSecureData(String namespace) |
<T> Class<T> |
loadPluginClass(String pluginId) |
<T> T |
newPluginInstance(String pluginId) |
void |
putSecureData(String namespace,
String name,
String data,
String description,
Map<String,String> properties) |
public long getLogicalStartTime()
getLogicalStartTime in interface ActionContextpublic SettableArguments getArguments()
getArguments in interface ActionContextpublic String getStageName()
getStageName in interface StageContextpublic StageMetrics getMetrics()
getMetrics in interface StageContextpublic PluginProperties getPluginProperties()
getPluginProperties in interface StageContextpublic PluginProperties getPluginProperties(String pluginId)
getPluginProperties in interface StageContextpublic <T> Class<T> loadPluginClass(String pluginId)
loadPluginClass in interface StageContextpublic <T> T newPluginInstance(String pluginId) throws InstantiationException
newPluginInstance in interface StageContextInstantiationExceptionpublic String getNamespace()
getNamespace in interface ActionContextpublic Map<String,String> listSecureData(String namespace)
listSecureData in interface SecureStorepublic SecureStoreData getSecureData(String namespace, String name)
getSecureData in interface SecureStorepublic void putSecureData(String namespace, String name, String data, String description, Map<String,String> properties)
putSecureData in interface SecureStoreManagerpublic void deleteSecureData(String namespace, String name)
deleteSecureData in interface SecureStoreManagerpublic void execute(TxRunnable runnable)
execute in interface Transactionalpublic void execute(int timeoutInSeconds,
TxRunnable runnable)
execute in interface TransactionalCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.