public interface ApplicationConfigurer extends PluginConfigurer, DatasetConfigurer, FeatureFlagsProvider
Modifier and Type | Method and Description |
---|---|
void |
addMapReduce(MapReduce mapReduce)
Adds a
MapReduce job to the Application. |
void |
addService(Service service)
Adds a custom
Service to the Application. |
void |
addSpark(Spark spark)
Adds a
Spark job to the Application. |
void |
addWorker(Worker worker)
Adds a
Worker to the Application. |
void |
addWorkflow(Workflow workflow)
Adds a
Workflow to the Application. |
ScheduleBuilder |
buildSchedule(String scheduleName,
ProgramType programType,
String programName)
Get a ScheduleBuilder for the specified program.
|
default void |
emitMetadata(Metadata metadata,
MetadataScope scope)
Emit the given
Metadata for the application in the given scope. |
default ApplicationSpecification |
getDeployedApplicationSpec()
Return the application Specification if it was deployed before.
|
default String |
getDeployedNamespace()
Return the namespace the app is deployed.
|
default RuntimeConfigurer |
getRuntimeConfigurer()
Return the runtime configurer that contains the runtime arguments and provides access for other
runtime functionalities.
|
TriggerFactory |
getTriggerFactory()
Get a TriggerFactory to get triggers.
|
void |
schedule(ScheduleCreationSpec scheduleCreationSpec)
Schedules a program, using the given scheduleCreationSpec.
|
void |
setDescription(String description)
Sets the description of the Application.
|
void |
setName(String name)
Sets the name of the Application.
|
evaluateMacros, evaluateMacros, usePlugin, usePlugin, usePluginClass, usePluginClass
addDatasetModule, addDatasetType, createDataset, createDataset, createDataset, createDataset
isFeatureEnabled
void setName(String name)
name
- namevoid setDescription(String description)
description
- descriptionvoid addMapReduce(MapReduce mapReduce)
MapReduce job
to the Application. Use it when you need to re-use
existing MapReduce jobs that rely on Hadoop MapReduce APIs.mapReduce
- The MapReduce job
to include in the Applicationvoid addSpark(Spark spark)
Spark
job to the Application.spark
- The Spark
job to include in the Applicationvoid addWorkflow(Workflow workflow)
Workflow
to the Application.workflow
- The Workflow
to include in the Applicationvoid addService(Service service)
Service
to the Application.service
- The service to include in the Applicationvoid addWorker(Worker worker)
Worker
to the Application.worker
- The worker to include in the ApplicationScheduleBuilder buildSchedule(String scheduleName, ProgramType programType, String programName)
scheduleName
- the name of the scheduleprogramType
- the type of the program; currently, only ProgramType.WORKFLOW can be
scheduledprogramName
- the name of the programScheduleBuilder
used to build the schedulevoid schedule(ScheduleCreationSpec scheduleCreationSpec)
scheduleCreationSpec
- defines the schedule.default void emitMetadata(Metadata metadata, MetadataScope scope)
Metadata
for the application in the given scope. Note the tags and
properties emitted in SYSTEM scope will get overridden by the platform system metadata if the
tags or property keys are same.metadata
- the metadata to emitTriggerFactory getTriggerFactory()
TriggerFactory
used to get triggers@Nullable default RuntimeConfigurer getRuntimeConfigurer()
default String getDeployedNamespace()
@Nullable default ApplicationSpecification getDeployedApplicationSpec()
Copyright © 2023 Cask Data, Inc. Licensed under the Apache License, Version 2.0.