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 Transactionalpublic Map<MetadataScope,Metadata> getMetadata(MetadataEntity metadataEntity)
getMetadata in interface MetadataReaderpublic Metadata getMetadata(MetadataScope scope, MetadataEntity metadataEntity)
getMetadata in interface MetadataReaderpublic void addProperties(MetadataEntity metadataEntity, Map<String,String> properties)
addProperties in interface MetadataWriterpublic void addTags(MetadataEntity metadataEntity, String... tags)
addTags in interface MetadataWriterpublic void addTags(MetadataEntity metadataEntity, Iterable<String> tags)
addTags in interface MetadataWriterpublic void removeMetadata(MetadataEntity metadataEntity)
removeMetadata in interface MetadataWriterpublic void removeProperties(MetadataEntity metadataEntity)
removeProperties in interface MetadataWriterpublic void removeProperties(MetadataEntity metadataEntity, String... keys)
removeProperties in interface MetadataWriterpublic void removeTags(MetadataEntity metadataEntity)
removeTags in interface MetadataWriterpublic void removeTags(MetadataEntity metadataEntity, String... tags)
removeTags in interface MetadataWriterpublic void record(List<FieldOperation> fieldOperations)
record in interface LineageRecorderCopyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.