public class MockActionContext extends Object implements ActionContext
| Constructor and Description |
|---|
MockActionContext() |
public long getLogicalStartTime()
getLogicalStartTime in interface StageContextpublic SettableArguments getArguments()
getArguments in interface ActionContextgetArguments in interface StageContextpublic 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 StageContextInstantiationException@Nullable public co.cask.cdap.api.data.schema.Schema getInputSchema()
getInputSchema in interface StageContextpublic Map<String,co.cask.cdap.api.data.schema.Schema> getInputSchemas()
getInputSchemas in interface StageContext@Nullable public co.cask.cdap.api.data.schema.Schema getOutputSchema()
getOutputSchema in interface StageContextpublic Map<String,co.cask.cdap.api.data.schema.Schema> getOutputPortSchemas()
getOutputPortSchemas in interface StageContext@Nullable public URL getServiceURL(String applicationId, String serviceId)
getServiceURL in interface ServiceDiscoverer@Nullable public URL getServiceURL(String serviceId)
getServiceURL in interface ServiceDiscovererpublic String getNamespace()
getNamespace in interface StageContextpublic String getPipelineName()
getPipelineName in interface StageContextpublic 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 © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.