diff --git a/docs/assets/themes/zeppelin/img/docs-img/writing_spell_registered.png b/docs/assets/themes/zeppelin/img/docs-img/writing_spell_registered.png
deleted file mode 100644
index e8bcd473088..00000000000
Binary files a/docs/assets/themes/zeppelin/img/docs-img/writing_spell_registered.png and /dev/null differ
diff --git a/docs/assets/themes/zeppelin/img/docs-img/writing_spell_using.gif b/docs/assets/themes/zeppelin/img/docs-img/writing_spell_using.gif
deleted file mode 100644
index ac73cefc13c..00000000000
Binary files a/docs/assets/themes/zeppelin/img/docs-img/writing_spell_using.gif and /dev/null differ
diff --git a/docs/assets/themes/zeppelin/img/docs-img/writing_visualization_example.png b/docs/assets/themes/zeppelin/img/docs-img/writing_visualization_example.png
deleted file mode 100644
index 219d7c8b4e5..00000000000
Binary files a/docs/assets/themes/zeppelin/img/docs-img/writing_visualization_example.png and /dev/null differ
diff --git a/docs/assets/themes/zeppelin/img/docs-img/writing_visualization_helium_menu.png b/docs/assets/themes/zeppelin/img/docs-img/writing_visualization_helium_menu.png
deleted file mode 100644
index 7e1ce20831b..00000000000
Binary files a/docs/assets/themes/zeppelin/img/docs-img/writing_visualization_helium_menu.png and /dev/null differ
diff --git a/docs/development/contribution/useful_developer_tools.md b/docs/development/contribution/useful_developer_tools.md
index 7e2dc3e7c8f..380d42cca29 100644
--- a/docs/development/contribution/useful_developer_tools.md
+++ b/docs/development/contribution/useful_developer_tools.md
@@ -80,8 +80,8 @@ you can use this function like `setjdk 1.8` / `setjdk 1.7`
### Running Individual Tests
```bash
-# run the `HeliumBundleFactoryTest` test class
-./mvnw test -pl 'zeppelin-server' --am -DfailIfNoTests=false -Dtest=HeliumBundleFactoryTest
+# run the `NotebookServerTest` test class
+./mvnw test -pl 'zeppelin-server' --am -DfailIfNoTests=false -Dtest=NotebookServerTest
```
### Running Selenium Tests
diff --git a/docs/development/helium/overview.md b/docs/development/helium/overview.md
deleted file mode 100644
index 92da7e8a932..00000000000
--- a/docs/development/helium/overview.md
+++ /dev/null
@@ -1,43 +0,0 @@
----
-layout: page
-title: "Helium"
-description: ""
-group: development/helium
----
-
-{% include JB/setup %}
-
-# Helium Overview
-
-
-
-## What is Helium?
-
-Helium is a plugin system that can extend Zeppelin a lot.
-For example, you can write [custom display system](./writing_spell.html) or
-install already published one in [Helium Online Registry](http://zeppelin.apache.org/helium_packages.html).
-
-Currently, Helium supports 4 types of package.
-
-- [Helium Visualization](./writing_visualization_basic.html): Adding a new chart type
-- [Helium Spell](./writing_spell.html): Adding new interpreter, display system running on browser
-- [Helium Application](./writing_application.html)
-- [Helium Interpreter](../writing_zeppelin_interpreter.html): Adding a new custom interpreter
-
-
-## Configuration
-
-Zeppelin ships with several builtin helium plugins which is located in $ZEPPELIN_HOME/heliums. If you want to try more types of heliums plugins,
-you can configure `zeppelin.helium.registry` to be `helium,https://zeppelin.apache.org/helium.json` in zeppelin-site.xml. `https://zeppelin.apache.org/helium.json` will be updated regularly.
diff --git a/docs/development/helium/writing_application.md b/docs/development/helium/writing_application.md
deleted file mode 100644
index 0fa775dd6ef..00000000000
--- a/docs/development/helium/writing_application.md
+++ /dev/null
@@ -1,185 +0,0 @@
----
-layout: page
-title: "Writing a new Helium Application"
-description: "Apache Zeppelin Application is a package that runs on Interpreter process and displays it's output inside of the notebook. Make your own Application in Apache Zeppelin is quite easy."
-group: development/helium
----
-
-{% include JB/setup %}
-
-# Writing a new Application
-
-
-
-## What is Apache Zeppelin Application
-
-Apache Zeppelin Application is a package that runs on Interpreter process and displays it's output inside of the notebook. While application runs on Interpreter process, it's able to access resources provided by Interpreter through ResourcePool. Output is always rendered by AngularDisplaySystem. Therefore application provides all the possibilities of making interactive graphical application that uses data and processing power of any Interpreter.
-
-
-## Make your own Application
-
-Writing Application means extending `org.apache.zeppelin.helium.Application`. You can use your favorite IDE and language while Java class files are packaged into jar. `Application` class looks like
-
-```java
-
-/**
- * Constructor. Invoked when application is loaded
- */
-public Application(ApplicationContext context);
-
-/**
- * Invoked when there're (possible) updates in required resource set.
- * i.e. invoked after application load and after paragraph finishes.
- */
-public abstract void run(ResourceSet args);
-
-/**
- * Invoked before application unload.
- * Application is automatically unloaded with paragraph/notebook removal
- */
-public abstract void unload();
-```
-
-
-You can check example applications under [./zeppelin-examples](https://github.com/apache/incubator-zeppelin/tree/master/zeppelin-examples) directory.
-
-
-## Development mode
-
-In the development mode, you can run your Application in your IDE as a normal java application and see the result inside of Zeppelin notebook.
-
-`org.apache.zeppelin.helium.ZeppelinApplicationDevServer` can run Zeppelin Application in development mode.
-
-```java
-
-// entry point for development mode
-public static void main(String[] args) throws Exception {
-
- // add resources for development mode
- LocalResourcePool pool = new LocalResourcePool("dev");
- pool.put("date", new Date());
-
- // run application in devlopment mode with given resource
- // in this case, Clock.class.getName() will be the application class name
- org.apache.zeppelin.helium.ZeppelinApplicationDevServer devServer = new org.apache.zeppelin.helium.ZeppelinApplicationDevServer(
- Clock.class.getName(), pool.getAll());
-
- // start development mode
- devServer.start();
- devServer.join();
-}
-```
-
-
-In the Zeppelin notebook, run `%dev run` will connect to application running in development mode.
-
-
-## Package file
-
-Package file is a json file that provides information about the application.
-Json file contains the following information
-
-```json
-{
- "name" : "[organization].[name]",
- "description" : "Description",
- "artifact" : "groupId:artifactId:version",
- "className" : "your.package.name.YourApplicationClass",
- "resources" : [
- ["resource.name", ":resource.class.name"],
- ["alternative.resource.name", ":alternative.class.name"]
- ],
- "icon" : ""
-}
-```
-
-#### name
-
-Name is a string in `[group].[name]` format.
-`[group]` and `[name]` allow only `[A-Za-z0-9_]`.
-Group is normally the name of an organization who creates this application.
-
-#### description
-
-A short description about the application
-
-#### artifact
-
-Location of the jar artifact.
-`"groupId:artifactId:version"` will load artifact from maven repository.
-If jar exists in the local filesystem, absolute/relative can be used.
-
-e.g.
-
-When artifact exists in Maven repository
-
-```
-artifact: "org.apache.zeppelin:zeppelin-examples:0.6.0"
-```
-
-When artifact exists in the local filesystem
-
-```
-artifact: "zeppelin-example/target/zeppelin-example-0.6.0.jar"
-```
-
-#### className
-
-Entry point. Class that extends `org.apache.zeppelin.helium.Application`
-
-#### resources
-
-Two dimensional array that defines required resources by name or by className. Helium Application launcher will compare resources in the ResourcePool with the information in this field and suggest application only when all required resources are available in the ResourcePool.
-
-Resource name is a string which will be compared with the name of objects in the ResourcePool. className is a string with ":" prepended, which will be compared with className of the objects in the ResourcePool.
-
-Application may require two or more resources. Required resources can be listed inside of the json array. For example, if the application requires object "name1", "name2" and "className1" type of object to run, resources field can be
-
-```json
-resources: [
- [ "name1", "name2", ":className1", ...]
-]
-```
-
-If Application can handle alternative combination of required resources, alternative set can be listed as below.
-
-```json
-resources: [
- [ "name", ":className"],
- [ "altName", ":altClassName1"],
- ...
-]
-```
-
-Easier way to understand this scheme is
-
-```json
-resources: [
- [ 'resource' AND 'resource' AND ... ] OR
- [ 'resource' AND 'resource' AND ... ] OR
- ...
-]
-```
-
-
-#### icon
-
-Icon to be used on the application button. String in this field will be rendered as a HTML tag.
-
-e.g.
-
-```
-icon: ""
-```
diff --git a/docs/development/helium/writing_spell.md b/docs/development/helium/writing_spell.md
deleted file mode 100644
index b2988a90ae4..00000000000
--- a/docs/development/helium/writing_spell.md
+++ /dev/null
@@ -1,214 +0,0 @@
----
-layout: page
-title: "Writing a new Helium Spell"
-description: "Spell is a kind of interpreter that runs on browser not on backend. So, technically it's the frontend interpreter. "
-group: development/helium
----
-
-{% include JB/setup %}
-
-# Writing a new Spell
-
-
-
-## What is Apache Zeppelin Spell
-
-Spell is a kind of interpreter that runs on browser not on backend. So, technically it's the frontend interpreter.
-It can provide many benefits.
-
-- Spell is pluggable frontend interpreter. So it can be installed and removed easily using helium registry.
-- Every spell is written in javascript. It means you can use existing javascript libraries whatever you want.
-- Spell runs on browser like display system (`%html`, `%table`). In other words, every spell can be used as display system as well.
-
-## How it works
-
-Helium Spell works like [Helium Visualization](./writing_visualization_basic.html).
-
-- Every helium packages are loaded from central (online) registry or local registry
-- You can see loaded packages in `/helium` page.
-- When you enable a spell, it's built from server and sent to client
-- Finally it will be loaded into browser.
-
-## How to use spell
-
-### 1. Enabling
-
-Find a spell what you want to use in `/helium` package and click `Enable` button.
-
-
-
-### 2. Using
-
-Spell works like an interpreter. Use the `MAGIC` value to execute spell in a note. (you might need to refresh after enabling)
-For example, Use `%echo` for the Echo Spell.
-
-
-
-
-## Write a new Spell
-
-Making a new spell is similar to [Helium Visualization#write-new-visualization](./writing_visualization_basic.html#write-new-visualization).
-
-- Add framework dependency called zeppelin-spell into `package.json`
-- Write code using framework
-- Publish your spell to [npm](https://www.npmjs.com/)
-
-### 1. Create a npm package
-
-Create a [package.json](https://docs.npmjs.com/files/package.json) in new directory for spell.
-
-- You have to add a framework called `zeppelin-spell` as a dependency to create spell ([zeppelin-spell](https://github.com/apache/zeppelin/tree/master/zeppelin-web/src/app/spell))
-- Also, you can add any dependencies you want to utilise.
-
-Here's an example
-
-```json
-{
- "name": "zeppelin-echo-spell",
- "description": "Zeppelin Echo Spell (example)",
- "version": "1.0.0",
- "main": "index",
- "author": "",
- "license": "Apache-2.0",
- "dependencies": {
- "zeppelin-spell": "*"
- },
- "helium": {
- "icon" : "",
- "spell": {
- "magic": "%echo",
- "usage": "%echo "
- }
- }
-}
-```
-
-### 2. Write spell using framework
-
-Here are some examples you can refer
-
-- [Echo Spell](https://github.com/apache/zeppelin/blob/master/zeppelin-examples/zeppelin-example-spell-echo/index.js)
-- [Markdown Spell: Using library](https://github.com/apache/zeppelin/blob/master/zeppelin-examples/zeppelin-example-spell-markdown/index.js)
-- [Flowchart Spell: Using DOM](https://github.com/apache/zeppelin/blob/master/zeppelin-examples/zeppelin-example-spell-flowchart/index.js)
-- [Google Translation API Spell: Using API (returning promise)](https://github.com/apache/zeppelin/blob/master/zeppelin-examples/zeppelin-example-spell-translator/index.js)
-
-Now, you need to write code to create spell which processing text.
-
-```js
-import {
- SpellBase,
- SpellResult,
- DefaultDisplayType,
-} from 'zeppelin-spell';
-
-export default class EchoSpell extends SpellBase {
- constructor() {
- /** pass magic to super class's constructor parameter */
- super("%echo");
- }
-
- interpret(paragraphText) {
- const processed = paragraphText + '!';
-
- /**
- * should return `SpellResult` which including `data` and `type`
- * default type is `TEXT` if you don't specify.
- */
- return new SpellResult(processed);
- }
-}
-```
-
-Here is another example. Let's say we want to create markdown spell. First of all, we should add a dependency for markdown in package.json
-
-```json
-// package.json
- "dependencies": {
- "markdown": "0.5.0",
- "zeppelin-spell": "*"
- },
-```
-
-And here is spell code.
-
-```js
-import {
- SpellBase,
- SpellResult,
- DefaultDisplayType,
-} from 'zeppelin-spell';
-
-import md from 'markdown';
-
-const markdown = md.markdown;
-
-export default class MarkdownSpell extends SpellBase {
- constructor() {
- super("%markdown");
- }
-
- interpret(paragraphText) {
- const parsed = markdown.toHTML(paragraphText);
-
- /**
- * specify `DefaultDisplayType.HTML` since `parsed` will contain DOM
- * otherwise it will be rendered as `DefaultDisplayType.TEXT` (default)
- */
- return new SpellResult(parsed, DefaultDisplayType.HTML);
- }
-}
-```
-
-- You might want to manipulate DOM directly (e.g google d3.js), then refer [Flowchart Spell](https://github.com/apache/zeppelin/blob/master/zeppelin-examples/zeppelin-example-spell-flowchart/index.js)
-- You might want to return promise not string (e.g API call), then refer [Google Translation API Spell](https://github.com/apache/zeppelin/blob/master/zeppelin-examples/zeppelin-example-spell-translator/index.js)
-
-### 3. Create __Helium package file__ for local deployment
-
-You don't want to publish your package every time you make a change in your spell. Zeppelin provides local deploy.
-The only thing you need to do is creating a __Helium Package file__ (JSON) for local deploy.
-It's automatically created when you publish to npm repository but in local case, you should make it by yourself.
-
-```json
-{
- "type" : "SPELL",
- "name" : "zeppelin-echo-spell",
- "version": "1.0.0",
- "description" : "Return just what receive (example)",
- "artifact" : "./zeppelin-examples/zeppelin-example-spell-echo",
- "license" : "Apache-2.0",
- "spell": {
- "magic": "%echo",
- "usage": "%echo "
- }
-}
-```
-
-- Place this file in your local registry directory (default `$ZEPPELIN_HOME/helium`).
-- `type` should be `SPELL`
-- Make sure that `artifact` should be same as your spell directory.
-- You can get information about other fields in [Helium Visualization#3-create-helium-package-file-and-locally-deploy](./writing_visualization_basic.html#3-create-helium-package-file-and-locally-deploy).
-
-### 4. Run in dev mode
-
-```bash
-cd zeppelin-web
-yarn run dev:helium
-```
-
-You can browse localhost:9000. Every time refresh your browser, Zeppelin will rebuild your spell and reload changes.
-
-### 5. Publish your spell to the npm repository
-
-See [Publishing npm packages](https://docs.npmjs.com/getting-started/publishing-npm-packages)
diff --git a/docs/development/helium/writing_visualization_basic.md b/docs/development/helium/writing_visualization_basic.md
deleted file mode 100644
index c1dc6968b0c..00000000000
--- a/docs/development/helium/writing_visualization_basic.md
+++ /dev/null
@@ -1,212 +0,0 @@
----
-layout: page
-title: "Writing a new Helium Visualization: basic"
-description: "Apache Zeppelin Visualization is a pluggable package that can be loaded/unloaded on runtime through Helium framework in Zeppelin. A Visualization is a javascript npm package and user can use them just like any other built-in visualization in a note."
-group: development/helium
----
-
-{% include JB/setup %}
-
-# Writing a new Visualization
-
-
-
-## What is Apache Zeppelin Visualization
-
-Apache Zeppelin Visualization is a pluggable package that can be loaded/unloaded on runtime through Helium framework in Zeppelin. A Visualization is a javascript npm package and user can use them just like any other built-in visualization in notebook.
-
-
-## How it works
-
-
-#### 1. Load Helium package files from registry
-
-Zeppelin needs to know what Visualization packages are available. Zeppelin will read information of packages from both online and local registry.
-Registries are configurable through `ZEPPELIN_HELIUM_LOCALREGISTRY_DEFAULT` env variable or `zeppelin.helium.localregistry.default` property.
-
-#### 2. Enable packages
-Once Zeppelin loads _Helium package files_ from registries, available packages are displayed in Helium menu.
-
-Click 'enable' button.
-
-
-
-
-#### 3. Create and load visualization bundle on the fly
-
-Once a Visualization package is enabled, [HeliumBundleFactory](https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/helium/HeliumBundleFactory.java) creates a js bundle. The js bundle is served by `helium/bundle/load` rest api endpoint.
-
-#### 4. Run visualization
-
-Zeppelin shows additional button for loaded Visualizations.
-User can use just like any other built-in visualizations.
-
-
-
-
-
-## Write new Visualization
-
-#### 1. Create a npm package
-
-Create a [package.json](https://docs.npmjs.com/files/package.json) in your new Visualization directory. You can add any dependencies in package.json, but you **must include two dependencies: [zeppelin-vis](https://github.com/apache/zeppelin/tree/master/zeppelin-web/src/app/visualization) and [zeppelin-tabledata](https://github.com/apache/zeppelin/tree/master/zeppelin-web/src/app/tabledata).**
-
-Here's an example
-
-```json
-{
- "name": "zeppelin_horizontalbar",
- "description" : "Horizontal Bar chart",
- "version": "1.0.0",
- "main": "horizontalbar",
- "author": "",
- "license": "Apache-2.0",
- "dependencies": {
- "zeppelin-tabledata": "*",
- "zeppelin-vis": "*"
- }
-}
-```
-
-#### 2. Create your own visualization
-
-To create your own visualization, you need to create a js file and import [Visualization](https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/app/visualization/visualization.js) class from [zeppelin-vis](https://github.com/apache/zeppelin/tree/master/zeppelin-web/src/app/visualization) package and extend the class. [zeppelin-tabledata](https://github.com/apache/zeppelin/tree/master/zeppelin-web/src/app/tabledata) package provides some useful transformations, like pivot, you can use in your visualization. (you can create your own transformation, too).
-
-[Visualization](https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/app/visualization/visualization.js) class, there're several methods that you need to override and implement. Here's simple visualization that just prints `Hello world`.
-
-```js
-import Visualization from 'zeppelin-vis'
-import PassthroughTransformation from 'zeppelin-tabledata/passthrough'
-
-export default class helloworld extends Visualization {
- constructor(targetEl, config) {
- super(targetEl, config)
- this.passthrough = new PassthroughTransformation(config);
- }
-
- render(tableData) {
- this.targetEl.html('Hello world!')
- }
-
- getTransformation() {
- return this.passthrough
- }
-}
-```
-
-To learn more about `Visualization` class, check [visualization.js](https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/app/visualization/visualization.js).
-
-You can check complete visualization package example [here](https://github.com/apache/zeppelin/tree/master/zeppelin-examples/zeppelin-example-horizontalbar).
-
-Zeppelin's built-in visualization uses the same API, so you can check [built-in visualizations](https://github.com/apache/zeppelin/tree/master/zeppelin-web/src/app/visualization/builtins) as additional examples.
-
-
-#### 3. Create __Helium package file__ and locally deploy
-
-__Helium Package file__ is a json file that provides information about the application.
-Json file contains the following information
-
-```json
-{
- "type" : "VISUALIZATION",
- "name" : "zeppelin_horizontalbar",
- "description" : "Horizontal Bar chart (example)",
- "license" : "Apache-2.0",
- "artifact" : "./zeppelin-examples/zeppelin-example-horizontalbar",
- "icon" : ""
-}
-```
-
-Place this file in your local registry directory (default `./helium`).
-
-
-##### type
-
-When you're creating a visualization, 'type' should be 'VISUALIZATION'. Check these types as well.
-
-- [Helium Application](./writing_application.html)
-- [Helium Spell](./writing_spell.html)
-
-##### name
-
-Name of visualization. Should be unique. Allows `[A-Za-z90-9_]`.
-
-
-##### description
-
-A short description about visualization.
-
-##### artifact
-
-Location of the visualization npm package. Support npm package with version or local filesystem path.
-
-e.g.
-
-When artifact exists in npm repository
-
-```json
-"artifact": "my-visualiztion@1.0.0"
-```
-
-
-When artifact exists in local file system
-
-```json
-"artifact": "/path/to/my/visualization"
-```
-
-##### license
-
-License information.
-
-e.g.
-
-```json
-"license": "Apache-2.0"
-```
-
-##### icon
-
-Icon to be used in visualization select button. String in this field will be rendered as a HTML tag.
-
-e.g.
-
-```json
-"icon": ""
-```
-
-
-#### 4. Run in dev mode
-
-Place your __Helium package file__ in local registry (`ZEPPELIN_HOME/helium`).
-Run Zeppelin. And then run zeppelin-web in visualization dev mode.
-
-```bash
-cd zeppelin-web
-yarn run dev:helium
-```
-
-You can browse `localhost:9000`. Everytime refresh your browser, Zeppelin will rebuild your visualization and reload changes.
-
-
-#### 5. Publish your visualization
-
-Once it's done, publish your visualization package using `npm publish`.
-That's it. With in an hour, your visualization will be available in Zeppelin's helium menu.
-
-### See More
-
-Check [Helium Visualization: Transformation](./writing_visualization_transformation.html) for more complex examples.
-
diff --git a/docs/development/helium/writing_visualization_transformation.md b/docs/development/helium/writing_visualization_transformation.md
deleted file mode 100644
index 273e3c727dc..00000000000
--- a/docs/development/helium/writing_visualization_transformation.md
+++ /dev/null
@@ -1,280 +0,0 @@
----
-layout: page
-title: "Transformations in Zeppelin Visualization"
-description: "Description for Transformations"
-group: development/helium
----
-
-{% include JB/setup %}
-
-# Transformations for Zeppelin Visualization
-
-
-
-## Overview
-
-Transformations
-
-- **renders** setting which allows users to set columns and
-- **transforms** table rows according to the configured columns.
-
-Zeppelin provides 4 types of transformations.
-
-## 1. PassthroughTransformation
-
-`PassthroughTransformation` is the simple transformation which does not convert original tabledata at all.
-
-See [passthrough.js](https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/app/tabledata/passthrough.js)
-
-## 2. ColumnselectorTransformation
-
-`ColumnselectorTransformation` is uses when you need `N` axes but do not need aggregation.
-
-See [columnselector.js](https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/app/tabledata/columnselector.js)
-
-## 3. PivotTransformation
-
-`PivotTransformation` provides group by and aggregation. Every chart using `PivotTransformation` has 3 axes. `Keys`, `Groups` and `Values`.
-
-See [pivot.js](https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/app/tabledata/pivot.js)
-
-## 4. AdvancedTransformation
-
-`AdvancedTransformation` has more detailed options while providing existing features of `PivotTransformation` and `ColumnselectorTransformation`
-
-- multiple sub charts
-- configurable chart axes
-- parameter widgets: `input`, `checkbox`, `option`, `textarea`
-- parsing parameters automatically based on their types
-- expand / fold axis and parameter panels
-- multiple transformation methods while supporting lazy converting
-- re-initialize the whole configuration based on spec hash.
-
-### Spec
-
-`AdvancedTransformation` requires `spec` which includes axis and parameter details for charts.
-
-Let's create 2 sub-charts called `line` and `no-group`. Each sub chart can have different axis and parameter depending on their requirements.
-
-
-
-```js
-class AwesomeVisualization extends Visualization {
- constructor(targetEl, config) {
- super(targetEl, config)
-
- const spec = {
- charts: {
- 'line': {
- transform: { method: 'object', },
- sharedAxis: false, /** set if you want to share axes between sub charts, default is `false` */
- axis: {
- 'xAxis': { dimension: 'multiple', axisType: 'key', description: 'serial', },
- 'yAxis': { dimension: 'multiple', axisType: 'aggregator', description: 'serial', },
- 'category': { dimension: 'multiple', axisType: 'group', description: 'categorical', },
- },
- parameter: {
- 'xAxisUnit': { valueType: 'string', defaultValue: '', description: 'unit of xAxis', },
- 'yAxisUnit': { valueType: 'string', defaultValue: '', description: 'unit of yAxis', },
- 'lineWidth': { valueType: 'int', defaultValue: 0, description: 'width of line', },
- },
- },
-
- 'no-group': {
- transform: { method: 'object', },
- sharedAxis: false,
- axis: {
- 'xAxis': { dimension: 'single', axisType: 'key', },
- 'yAxis': { dimension: 'multiple', axisType: 'value', },
- },
- parameter: {
- 'xAxisUnit': { valueType: 'string', defaultValue: '', description: 'unit of xAxis', },
- 'yAxisUnit': { valueType: 'string', defaultValue: '', description: 'unit of yAxis', },
- },
- },
- }
-
- this.transformation = new AdvancedTransformation(config, spec)
- }
-
- ...
-
- // `render` will be called whenever `axis` or `parameter` is changed
- render(data) {
- const { chart, parameter, column, transformer, } = data
-
- if (chart === 'line') {
- const transformed = transformer()
- // draw line chart
- } else if (chart === 'no-group') {
- const transformed = transformer()
- // draw no-group chart
- }
- }
-}
-```
-
-
-
-### Spec: `axis`
-
-| Field Name | Available Values (type) | Description |
-| --- | --- | --- |
-|`dimension` | `single` | Axis can contains only 1 column |
-|`dimension` | `multiple` | Axis can contains multiple columns |
-|`axisType` | `key` | Column(s) in this axis will be used as `key` like in `PivotTransformation`. These columns will be served in `column.key` |
-|`axisType` | `aggregator` | Column(s) in this axis will be used as `value` like in `PivotTransformation`. These columns will be served in `column.aggregator` |
-|`axisType` | `group` | Column(s) in this axis will be used as `group` like in `PivotTransformation`. These columns will be served in `column.group` |
-|`axisType` | (string) | Any string value can be used here. These columns will be served in `column.custom` |
-|`maxAxisCount` (optional) | (int) | The max number of columns that this axis can contain. (unlimited if `undefined`) |
-|`minAxisCount` (optional) | (int) | The min number of columns that this axis should contain to draw chart. (`1` in case of single dimension) |
-|`description` (optional) | (string) | Description for the axis. |
-
-
-
-Here is an example.
-
-```js
-axis: {
- 'xAxis': { dimension: 'multiple', axisType: 'key', },
- 'yAxis': { dimension: 'multiple', axisType: 'aggregator'},
- 'category': { dimension: 'multiple', axisType: 'group', maxAxisCount: 2, valueType: 'string', },
-},
-```
-
-
-
-### Spec: `sharedAxis`
-
-If you set `sharedAxis: false` for sub charts, then their axes are persisted in global space (shared). It's useful for when you creating multiple sub charts sharing their axes but have different parameters. For example,
-
-- `basic-column`, `stacked-column`, `percent-column`
-- `pie` and `donut`
-
-
-
-Here is an example.
-
-```js
- const spec = {
- charts: {
- 'column': {
- transform: { method: 'array', },
- sharedAxis: true,
- axis: { ... },
- parameter: { ... },
- },
-
- 'stacked': {
- transform: { method: 'array', },
- sharedAxis: true,
- axis: { ... }
- parameter: { ... },
- },
-```
-
-
-
-### Spec: `parameter`
-
-| Field Name | Available Values (type) | Description |
-| --- | --- | --- |
-|`valueType` | `string` | Parameter which has string value |
-|`valueType` | `int` | Parameter which has int value |
-|`valueType` | `float` | Parameter which has float value |
-|`valueType` | `boolean` | Parameter which has boolean value used with `checkbox` widget usually |
-|`valueType` | `JSON` | Parameter which has JSON value used with `textarea` widget usually. `defaultValue` should be `""` (empty string). This ||`defaultValue` | (any) | Default value of this parameter. `JSON` type should have `""` (empty string) |
-|`description` | (string) | Description of this parameter. This value will be parsed as HTML for pretty output |
-|`widget` | `input` | Use [input](https://developer.mozilla.org/en/docs/Web/HTML/Element/input) widget. This is the default widget (if `widget` is undefined)|
-|`widget` | `checkbox` | Use [checkbox](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox) widget. |
-|`widget` | `textarea` | Use [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) widget. |
-|`widget` | `option` | Use [select + option](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select) widget. This parameter should have `optionValues` field as well. |
-|`optionValues` | `(Array)` | Available option values used with the `option` widget |
-
-
-
-Here is an example.
-
-```js
-parameter: {
- // string type, input widget
- 'xAxisUnit': { valueType: 'string', defaultValue: '', description: 'unit of xAxis', },
-
- // boolean type, checkbox widget
- 'inverted': { widget: 'checkbox', valueType: 'boolean', defaultValue: false, description: 'invert x and y axes', },
-
- // string type, option widget with `optionValues`
- 'graphType': { widget: 'option', valueType: 'string', defaultValue: 'line', description: 'graph type', optionValues: [ 'line', 'smoothedLine', 'step', ], },
-
- // HTML in `description`
- 'dateFormat': { valueType: 'string', defaultValue: '', description: 'format of date (doc) (e.g YYYY-MM-DD)', },
-
- // JSON type, textarea widget
- 'yAxisGuides': { widget: 'textarea', valueType: 'JSON', defaultValue: '', description: 'guides of yAxis ', },
-```
-
-
-
-### Spec: `transform`
-
-| Field Name | Available Values (type) | Description |
-| --- | --- | --- |
-|`method` | `object` | designed for rows requiring object manipulation |
-|`method` | `array` | designed for rows requiring array manipulation |
-|`method` | `array:2-key` | designed for xyz charts (e.g bubble chart) |
-|`method` | `drill-down` | designed for drill-down charts |
-|`method` | `raw` | will return the original `tableData.rows` |
-
-
-
-Whatever you specified as `transform.method`, the `transformer` value will be always function for lazy computation.
-
-```js
-// advanced-transformation.util#getTransformer
-
-if (transformSpec.method === 'raw') {
- transformer = () => { return rows; }
-} else if (transformSpec.method === 'array') {
- transformer = () => {
- ...
- return { ... }
- }
-}
-```
-
-Here is actual usage.
-
-```js
-class AwesomeVisualization extends Visualization {
- constructor(...) { /** setup your spec */ }
-
- ...
-
- // `render` will be called whenever `axis` or `parameter` are changed
- render(data) {
- const { chart, parameter, column, transformer, } = data
-
- if (chart === 'line') {
- const transformed = transformer()
- // draw line chart
- } else if (chart === 'no-group') {
- const transformed = transformer()
- // draw no-group chart
- }
- }
-
- ...
-}
-```
diff --git a/docs/index.md b/docs/index.md
index b38f77bfada..e9d7540aa7a 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -83,7 +83,6 @@ limitations under the License.
* [Notebook Repository API](./usage/rest_api/notebook_repository.html)
* [Configuration API](./usage/rest_api/configuration.html)
* [Credential API](./usage/rest_api/credential.html)
- * [Helium API](./usage/rest_api/helium.html)
* Zeppelin SDK: Java API of Zeppelin Client
* [Client API](./usage/zeppelin_sdk/client_api.html)
* [Session API](./usage/zeppelin_sdk/session_api.html)
@@ -115,18 +114,12 @@ limitations under the License.
* Operation
* [Configuration](./setup/operation/configuration.html): lists for Apache Zeppelin
* [Monitoring](./setup/operation/monitoring.html): monitoring instructions for Apache Zeppelin
- * [Proxy Setting](./setup/operation/proxy_setting.html)
* [Upgrading](./setup/operation/upgrading.html): a manual procedure of upgrading Apache Zeppelin version
* [Trouble Shooting](./setup/operation/trouble_shooting.html)
#### Developer Guide
* Extending Zeppelin
* [Writing Zeppelin Interpreter](./development/writing_zeppelin_interpreter.html)
- * [Helium: Overview](./development/helium/overview.html)
- * [Helium: Writing Application](./development/helium/writing_application.html)
- * [Helium: Writing Spell](./development/helium/writing_spell.html)
- * [Helium: Writing Visualization: Basic](./development/helium/writing_visualization_basic.html)
- * [Helium: Writing Visualization: Transformation](./development/helium/writing_visualization_transformation.html)
* Contributing to Zeppelin
* [How to Build Zeppelin](./setup/basics/how_to_build.html)
* [Useful Developer Tools](./development/contribution/useful_developer_tools.html)
diff --git a/docs/setup/basics/how_to_build.md b/docs/setup/basics/how_to_build.md
index ea40a599874..30f6c61d3cf 100644
--- a/docs/setup/basics/how_to_build.md
+++ b/docs/setup/basics/how_to_build.md
@@ -126,11 +126,6 @@ Hadoop version can be adjusted by `-Dhadoop.version=x.x.x`
enable 3rd party vendor repository (Cloudera, Hortonworks)
-#### -Pexamples (optional)
-
-Build examples under zeppelin-examples directory
-
-
### Build command examples
Here are some examples with several options:
diff --git a/docs/setup/operation/configuration.md b/docs/setup/operation/configuration.md
index a6debaaa12c..9c018389238 100644
--- a/docs/setup/operation/configuration.md
+++ b/docs/setup/operation/configuration.md
@@ -380,25 +380,7 @@ Sources descending by priority:
ZEPPELIN_DEP_LOCALREPO
zeppelin.dep.localrepo
local-repo
-
Local repository for dependency loader. ex)visualiztion modules of npm.
-
-
-
ZEPPELIN_HELIUM_NODE_INSTALLER_URL
-
zeppelin.helium.node.installer.url
-
https://nodejs.org/dist/
-
Remote Node installer url for Helium dependency loader
-
-
-
ZEPPELIN_HELIUM_NPM_INSTALLER_URL
-
zeppelin.helium.npm.installer.url
-
http://registry.npmjs.org/
-
Remote Npm installer url for Helium dependency loader
Remote Yarn package installer url for Helium dependency loader
+
Local repository for interpreter dependencies.
ZEPPELIN_WEBSOCKET_MAX_TEXT_MESSAGE_SIZE
diff --git a/docs/setup/operation/proxy_setting.md b/docs/setup/operation/proxy_setting.md
deleted file mode 100644
index 0767cd3af31..00000000000
--- a/docs/setup/operation/proxy_setting.md
+++ /dev/null
@@ -1,32 +0,0 @@
----
-layout: page
-title: "Proxy Setting in Apache Zeppelin"
-description: "Apache Zeppelin supports Helium plugins which fetch required installer packages from remote registry/repositories"
-group: security
----
-
-{% include JB/setup %}
-
-# Proxy Setting
-
-
-
-## How to Configure Proxies?
-
-Set `http_proxy` and `https_proxy` env variables. (See [more](https://wiki.archlinux.org/index.php/proxy_settings))
-
-Currently, Proxy is supported only for these features.
-
-- Helium: downloading `helium.json`, installing `npm`, `node`, `yarn`
\ No newline at end of file
diff --git a/docs/setup/operation/upgrading.md b/docs/setup/operation/upgrading.md
index b34521ad122..ad13059f34e 100644
--- a/docs/setup/operation/upgrading.md
+++ b/docs/setup/operation/upgrading.md
@@ -35,6 +35,16 @@ So, copying `notebook` and `conf` directory should be enough.
## Migration Guide
+### Upgrading to Zeppelin 0.13
+
+Helium Applications, Spells, external visualization packages, and the Helium management API
+have been removed. Built-in tables and charts and their saved settings remain available.
+A saved external visualization falls back to a table; its original settings and legacy
+Application metadata remain in the notebook file, but Applications and Spells no longer run.
+Remove obsolete `zeppelin.helium.*` settings and `ZEPPELIN_HELIUM_*` environment variables.
+Upgrade and restart the server and all interpreter processes together, since the Helium
+RPC methods and events have also been removed.
+
### Upgrading from Zeppelin 0.9, 0.10 to 0.11
- From 0.11, The type of `Pegdown` for parsing markdown was deprecated ([ZEPPELIN-5529](https://issues.apache.org/jira/browse/ZEPPELIN-2619)). It will use `Flexmark` instead.
diff --git a/docs/usage/interpreter/dynamic_loading.md b/docs/usage/interpreter/dynamic_loading.md
index 107d85b2734..811653546b2 100644
--- a/docs/usage/interpreter/dynamic_loading.md
+++ b/docs/usage/interpreter/dynamic_loading.md
@@ -23,7 +23,7 @@ limitations under the License.
-Apache Zeppelin provides pluggable interpreter architecture which results in a wide and variety of the supported backend system. In this section, we will introduce **Dynamic interpreter loading** using **REST API**. This concept actually comes from [Zeppelin Helium Proposal](https://cwiki.apache.org/confluence/display/ZEPPELIN/Helium+proposal).
+Apache Zeppelin provides pluggable interpreter architecture which results in a wide and variety of the supported backend system. In this section, we will introduce **Dynamic interpreter loading** using **REST API**.
Before we start, if you are not familiar with the concept of **Zeppelin interpreter**, you can check out [Overview: Zeppelin Interpreter](./overview.html) first.
## Overview
diff --git a/docs/usage/rest_api/helium.md b/docs/usage/rest_api/helium.md
deleted file mode 100644
index 21d5d48262a..00000000000
--- a/docs/usage/rest_api/helium.md
+++ /dev/null
@@ -1,565 +0,0 @@
----
-layout: page
-title: "Apache Zeppelin Helium REST API"
-description: "This page contains Apache Zeppelin Helium REST API information."
-group: usage/rest_api
----
-
-{% include JB/setup %}
-
-# Apache Zeppelin Helium REST API
-
-
-
-## Overview
-Apache Zeppelin provides several REST APIs for interaction and remote activation of zeppelin functionality.
-All REST APIs are available starting with the following endpoint `http://[zeppelin-server]:[zeppelin-port]/api`.
-Note that Apache Zeppelin REST APIs receive or return JSON objects, it is recommended for you to install some JSON viewers such as [JSONView](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc).
-
-If you work with Apache Zeppelin and find a need for an additional REST API, please [file an issue or send us an email](http://zeppelin.apache.org/community.html).
-
-## Helium REST API List
-
-### Get all available helium packages
-
-
-
-
-
Description
-
This ```GET``` method returns all the available helium packages in configured registries.
-
-
diff --git a/helium-dev/pom.xml b/helium-dev/pom.xml
deleted file mode 100644
index 77bcef40b1a..00000000000
--- a/helium-dev/pom.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- zeppelin-interpreter-parent
- org.apache.zeppelin
- 0.13.0-SNAPSHOT
- ../zeppelin-interpreter-parent/pom.xml
-
-
- helium-dev
- Zeppelin: Helium development interpreter
-
-
- dev
-
-
-
-
- org.apache.zeppelin
- zeppelin-interpreter
- ${project.version}
- provided
-
-
-
-
-
-
- maven-enforcer-plugin
-
-
- maven-resources-plugin
-
-
-
-
diff --git a/helium-dev/src/main/java/org/apache/zeppelin/helium/DevInterpreter.java b/helium-dev/src/main/java/org/apache/zeppelin/helium/DevInterpreter.java
deleted file mode 100644
index 00846dee658..00000000000
--- a/helium-dev/src/main/java/org/apache/zeppelin/helium/DevInterpreter.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.zeppelin.helium;
-
-import org.apache.zeppelin.interpreter.Interpreter;
-import org.apache.zeppelin.interpreter.InterpreterContext;
-import org.apache.zeppelin.interpreter.InterpreterException;
-import org.apache.zeppelin.interpreter.InterpreterResult;
-import org.apache.zeppelin.interpreter.thrift.InterpreterCompletion;
-
-import java.io.IOException;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Properties;
-
-/**
- * Dummy interpreter to support development mode for Zeppelin app
- */
-public class DevInterpreter extends Interpreter {
-
- private InterpreterEvent interpreterEvent;
- private InterpreterContext context;
- private DevZeppelinContext z;
-
- public static boolean isInterpreterName(String replName) {
- return replName.equals("dev");
- }
-
- /**
- * event handler for org.apache.zeppelin.helium.ZeppelinApplicationDevServer
- */
- public static interface InterpreterEvent {
- public InterpreterResult interpret(String st, InterpreterContext context);
- }
-
- public DevInterpreter(Properties property) {
- super(property);
- }
-
- public DevInterpreter(Properties property, InterpreterEvent interpreterEvent) {
- super(property);
- this.interpreterEvent = interpreterEvent;
- }
-
- @Override
- public void open() {
- this.z = new DevZeppelinContext(null, 1000);
- }
-
- @Override
- public void close() {
- }
-
- public void rerun() {
- try {
- z.run(context.getParagraphId());
- } catch (IOException e) {
- throw new RuntimeException("Fail to rerun", e);
- }
- }
-
- @Override
- public InterpreterResult interpret(String st, InterpreterContext context)
- throws InterpreterException {
- this.context = context;
- this.z.setInterpreterContext(context);
- try {
- return interpreterEvent.interpret(st, context);
- } catch (Exception e) {
- throw new InterpreterException(e);
- }
- }
-
- @Override
- public void cancel(InterpreterContext context) {
- }
-
- @Override
- public FormType getFormType() {
- return FormType.NATIVE;
- }
-
- @Override
- public int getProgress(InterpreterContext context) {
- return 0;
- }
-
- @Override
- public List completion(String buf, int cursor,
- InterpreterContext interpreterContext) {
- return new LinkedList<>();
- }
-
- public InterpreterContext getLastInterpretContext() {
- return context;
- }
-
- public void setInterpreterEvent(InterpreterEvent event) {
- this.interpreterEvent = event;
- }
-
- public InterpreterEvent getInterpreterEvent() {
- return interpreterEvent;
- }
-}
diff --git a/helium-dev/src/main/java/org/apache/zeppelin/helium/DevZeppelinContext.java b/helium-dev/src/main/java/org/apache/zeppelin/helium/DevZeppelinContext.java
deleted file mode 100644
index 1ac4afe0ee0..00000000000
--- a/helium-dev/src/main/java/org/apache/zeppelin/helium/DevZeppelinContext.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-package org.apache.zeppelin.helium;
-
-import org.apache.zeppelin.interpreter.ZeppelinContext;
-import org.apache.zeppelin.interpreter.InterpreterHookRegistry;
-
-import java.util.List;
-import java.util.Map;
-
-/**
- * ZeppelinContext for DevInterpreter
- */
-public class DevZeppelinContext extends ZeppelinContext {
- public DevZeppelinContext(InterpreterHookRegistry hooks, int maxResult) {
- super(hooks, maxResult);
- }
-
- @Override
- public Map getInterpreterClassMap() {
- return null;
- }
-
- @Override
- public List getSupportedClasses() {
- return null;
- }
-
- @Override
- public String showData(Object obj, int maxResult) {
- return null;
- }
-}
diff --git a/helium-dev/src/main/java/org/apache/zeppelin/helium/ZeppelinApplicationDevServer.java b/helium-dev/src/main/java/org/apache/zeppelin/helium/ZeppelinApplicationDevServer.java
deleted file mode 100644
index 1c6ebcb16d2..00000000000
--- a/helium-dev/src/main/java/org/apache/zeppelin/helium/ZeppelinApplicationDevServer.java
+++ /dev/null
@@ -1,173 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.zeppelin.helium;
-
-import java.io.IOException;
-import java.lang.reflect.Constructor;
-
-import com.google.gson.Gson;
-import org.apache.log4j.ConsoleAppender;
-import org.apache.log4j.Level;
-import org.apache.log4j.PatternLayout;
-import org.apache.zeppelin.interpreter.*;
-import org.apache.zeppelin.interpreter.InterpreterResult.Code;
-import org.apache.zeppelin.interpreter.remote.RemoteInterpreterEventClient;
-import org.apache.zeppelin.resource.ResourceSet;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * Run this server for development mode.
- */
-public class ZeppelinApplicationDevServer extends ZeppelinDevServer {
- private static final Logger LOGGER = LoggerFactory.getLogger(ZeppelinApplicationDevServer.class);
-
- private final String className;
- private final ResourceSet resourceSet;
- private Application app;
- private InterpreterOutput out;
-
- public ZeppelinApplicationDevServer(final String className, ResourceSet resourceSet) throws
- Exception {
- this(Constants.ZEPPELIN_INTERPRETER_DEFAUlT_PORT, className, resourceSet);
- }
-
- public ZeppelinApplicationDevServer(int port, String className, ResourceSet resourceSet) throws
- Exception {
- super(port);
- this.className = className;
- this.resourceSet = resourceSet;
- setLogger();
- };
-
- void setLogger() {
- ConsoleAppender console = new ConsoleAppender(); //create appender
- //configure the appender
- String PATTERN = "%d [%p|%c|%C{1}] %m%n";
- console.setLayout(new PatternLayout(PATTERN));
- console.setThreshold(Level.DEBUG);
- console.activateOptions();
- //add appender to any Logger (here is root)
- org.apache.log4j.Logger.getRootLogger().addAppender(console);
- }
-
-
- @Override
- public InterpreterResult interpret(String st, InterpreterContext context) {
- if (app == null) {
- LOGGER.info("Create instance " + className);
- try {
- Class> appClass = ClassLoader.getSystemClassLoader().loadClass(className);
- Constructor> constructor = appClass.getConstructor(ApplicationContext.class);
-
- // classPath will be ..../target/classes in dev mode most cases
- String classPath = appClass.getProtectionDomain().getCodeSource().getLocation().getPath();
-
- context.out.addResourceSearchPath(classPath + "../../src/main/resources/");
- context.out.addResourceSearchPath(classPath + "../../src/test/resources/");
-
- ApplicationContext appContext = getApplicationContext(context);
- app = (Application) constructor.newInstance(appContext);
- } catch (Exception e) {
- LOGGER.error(e.getMessage(), e);
- return new InterpreterResult(Code.ERROR, e.getMessage());
- }
- }
-
- try {
- LOGGER.info("Run " + className);
- app.context().out.clear();
- app.context().out.setType(InterpreterResult.Type.ANGULAR);
- transferTableResultDataToFrontend();
- app.run(resourceSet);
- } catch (IOException | ApplicationException e) {
- LOGGER.error(e.getMessage(), e);
- return new InterpreterResult(Code.ERROR, e.getMessage());
- }
- return new InterpreterResult(Code.SUCCESS, "");
- }
-
- private void transferTableResultDataToFrontend() throws IOException {
- ResourceSet results = resourceSet.filterByClassname(InterpreterResult.class.getName());
- if (results.size() == 0) {
- return;
- }
-
- InterpreterResultMessage result = (InterpreterResultMessage) results.get(0).get();
- Gson gson = new Gson();
- String resultJson = gson.toJson(result);
- StringBuffer transferResult = new StringBuffer();
- transferResult.append("$z.result = " + resultJson + ";\n");
-
- if (result.getType() == InterpreterResult.Type.TABLE) {
- transferResult.append("$z.scope.loadTableData($z.result);\n");
- }
-
- transferResult.append("$z.scope._devmodeResult = $z.result;\n");
- app.printStringAsJavascript(transferResult.toString());
- }
-
- ApplicationContext getApplicationContext(InterpreterContext interpreterContext) {
- return new ApplicationContext(
- interpreterContext.getNoteId(),
- interpreterContext.getParagraphId(),
- "app_" + this.hashCode(),
- new HeliumAppAngularObjectRegistry(
- interpreterContext.getAngularObjectRegistry(),
- interpreterContext.getNoteId(),
- interpreterContext.getParagraphId()),
- interpreterContext.out);
- }
-
- @Override
- protected InterpreterOutput createInterpreterOutput(
- final String noteId, final String paragraphId, final String executionOwner) {
- if (out == null) {
- final RemoteInterpreterEventClient eventClient = getIntpEventClient();
- try {
- out = new InterpreterOutput(new InterpreterOutputListener() {
- @Override
- public void onUpdateAll(InterpreterOutput out) {
-
- }
-
- @Override
- public void onAppend(int index, InterpreterResultMessageOutput out, byte[] line) {
- eventClient.onInterpreterOutputAppend(
- noteId, paragraphId, index, executionOwner, new String(line));
- }
-
- @Override
- public void onUpdate(int index, InterpreterResultMessageOutput out) {
- try {
- eventClient.onInterpreterOutputUpdate(noteId, paragraphId,
- index, executionOwner, out.getType(), new String(out.toByteArray()));
- } catch (IOException e) {
- LOGGER.error(e.getMessage(), e);
- }
- }
-
- }, this);
- } catch (IOException e) {
- return null;
- }
- }
-
- return out;
- }
-}
diff --git a/helium-dev/src/main/java/org/apache/zeppelin/helium/ZeppelinDevServer.java b/helium-dev/src/main/java/org/apache/zeppelin/helium/ZeppelinDevServer.java
deleted file mode 100644
index 116f1adab14..00000000000
--- a/helium-dev/src/main/java/org/apache/zeppelin/helium/ZeppelinDevServer.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.zeppelin.helium;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.HashMap;
-
-import org.apache.thrift.TException;
-import org.apache.zeppelin.helium.DevInterpreter.InterpreterEvent;
-import org.apache.zeppelin.interpreter.*;
-import org.apache.zeppelin.interpreter.remote.RemoteInterpreterEventClient;
-import org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * Interpreter development server
- */
-public class ZeppelinDevServer extends
- RemoteInterpreterServer implements InterpreterEvent, InterpreterOutputChangeListener {
- private static final Logger LOGGER = LoggerFactory.getLogger(ZeppelinDevServer.class);
-
- private DevInterpreter interpreter = null;
- private InterpreterOutput out;
- public ZeppelinDevServer(int port) throws Exception {
- super(null, port, null, ":");
- }
-
- @Override
- protected Interpreter getInterpreter(String sessionId, String className) throws TException {
- synchronized (this) {
- InterpreterGroup interpreterGroup = getInterpreterGroup();
- if (interpreterGroup == null || interpreterGroup.isEmpty()) {
- createInterpreter(
- "dev",
- sessionId,
- DevInterpreter.class.getName(),
- new HashMap(),
- "anonymous");
- notify();
- }
- }
-
- Interpreter intp = super.getInterpreter(sessionId, className);
- interpreter = (DevInterpreter) (
- ((LazyOpenInterpreter) intp).getInnerInterpreter());
- interpreter.setInterpreterEvent(this);
- return super.getInterpreter(sessionId, className);
- }
-
- @Override
- protected InterpreterOutput createInterpreterOutput(
- final String noteId, final String paragraphId, final String executionOwner) {
- if (out == null) {
- final RemoteInterpreterEventClient eventClient = getIntpEventClient();
- try {
- out = new InterpreterOutput(new InterpreterOutputListener() {
- @Override
- public void onUpdateAll(InterpreterOutput out) {
-
- }
-
- @Override
- public void onAppend(int index, InterpreterResultMessageOutput out, byte[] line) {
- eventClient.onInterpreterOutputAppend(
- noteId, paragraphId, index, executionOwner, new String(line));
- }
-
- @Override
- public void onUpdate(int index, InterpreterResultMessageOutput out) {
- try {
- eventClient.onInterpreterOutputUpdate(noteId, paragraphId,
- index, executionOwner, out.getType(), new String(out.toByteArray()));
- } catch (IOException e) {
- LOGGER.error(e.getMessage(), e);
- }
- }
- }, this);
- } catch (IOException e) {
- return null;
- }
- }
-
- out.clear();
- return out;
- }
-
- @Override
- public void fileChanged(File file) {
- refresh();
- }
-
- @Override
- public InterpreterResult interpret(String st, InterpreterContext context) {
- waitForConnected();
- return new InterpreterResult(InterpreterResult.Code.SUCCESS, "");
- }
-
- public void refresh() {
- interpreter.rerun();
- }
-
- /**
- * Wait until %dev paragraph is executed and connected to this process
- */
- public void waitForConnected() {
- synchronized (this) {
- while (!isConnected()) {
- try {
- this.wait(10 * 1000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
- }
- }
-
- public boolean isConnected() {
- return !(interpreter == null || interpreter.getLastInterpretContext() == null);
- }
-}
diff --git a/helium-dev/src/main/resources/interpreter-setting.json b/helium-dev/src/main/resources/interpreter-setting.json
deleted file mode 100644
index 5146178d591..00000000000
--- a/helium-dev/src/main/resources/interpreter-setting.json
+++ /dev/null
@@ -1,20 +0,0 @@
-[
- {
- "group": "dev",
- "name": "dev",
- "className": "org.apache.zeppelin.helium.DevInterpreter",
- "properties": {
- "port": {
- "envName": "PORT",
- "propertyName": "port",
- "defaultValue": "jdbc:postgresql://localhost:5432/",
- "description": "The URL for JDBC.",
- "type": "string"
- }
- },
- "editor": {
- "language": "helium",
- "editOnDblClick": false
- }
- }
-]
diff --git a/pom.xml b/pom.xml
index 0bfbc92018c..c755ad945d4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -835,20 +835,6 @@
-
- examples
-
- zeppelin-examples
-
-
-
-
- helium-dev
-
- helium-dev
-
-
-
include-hadoop
@@ -1011,7 +997,6 @@
conf/notebook-authorization.jsonconf/credentials.jsonconf/zeppelin-env.sh
- conf/helium.jsonspark-*-bin*/**.spark-dist/****/interpreter-setting.json
diff --git a/zeppelin-common/src/main/java/org/apache/zeppelin/common/Message.java b/zeppelin-common/src/main/java/org/apache/zeppelin/common/Message.java
index 04a3f79cc2b..b7d1ff1d4ab 100644
--- a/zeppelin-common/src/main/java/org/apache/zeppelin/common/Message.java
+++ b/zeppelin-common/src/main/java/org/apache/zeppelin/common/Message.java
@@ -168,10 +168,6 @@ public enum OP {
// @param noteId
// @param revisionId
// @param position
- APP_APPEND_OUTPUT, // [s-c] append output
- APP_UPDATE_OUTPUT, // [s-c] update (replace) output
- APP_LOAD, // [s-c] on app load
- APP_STATUS_CHANGE, // [s-c] on app status change
LIST_NOTE_JOBS, // [c-s] get note job management information
LIST_UPDATE_NOTE_JOBS, // [s-c] update job management information
@@ -193,8 +189,6 @@ public enum OP {
NOTE_UPDATED, // [s-c] paragraph updated(name, config)
RUN_ALL_PARAGRAPHS, // [c-s] run all paragraphs
CANCEL_ALL_PARAGRAPHS, // [c-s] cancel(abort) all paragraphs
- PARAGRAPH_EXECUTED_BY_SPELL, // [c-s] paragraph was executed by spell
- RUN_PARAGRAPH_USING_SPELL, // [s-c] run paragraph using spell
PARAS_INFO, // [s-c] paragraph runtime infos
SAVE_NOTE_FORMS, // save note forms
REMOVE_NOTE_FORMS, // remove note forms
@@ -213,7 +207,6 @@ public enum OP {
.unmodifiableSet(new HashSet<>(Arrays.asList(
OP.COMMIT_PARAGRAPH,
OP.RUN_PARAGRAPH,
- OP.RUN_PARAGRAPH_USING_SPELL,
OP.RUN_ALL_PARAGRAPHS,
OP.PARAGRAPH_CLEAR_OUTPUT,
OP.PARAGRAPH_CLEAR_ALL_OUTPUT,
diff --git a/zeppelin-distribution/src/assemble/distribution.xml b/zeppelin-distribution/src/assemble/distribution.xml
index 3529da3ddfa..feb7ae80744 100644
--- a/zeppelin-distribution/src/assemble/distribution.xml
+++ b/zeppelin-distribution/src/assemble/distribution.xml
@@ -92,17 +92,5 @@
../scripts
-
- /lib/node_modules/zeppelin-vis
- ../zeppelin-web/src/app/visualization
-
-
- /lib/node_modules/zeppelin-tabledata
- ../zeppelin-web/src/app/tabledata
-
-
- /lib/node_modules/zeppelin-spell
- ../zeppelin-web/src/app/spell
-
diff --git a/zeppelin-examples/pom.xml b/zeppelin-examples/pom.xml
deleted file mode 100644
index fd2fdffb94d..00000000000
--- a/zeppelin-examples/pom.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- zeppelin
- org.apache.zeppelin
- 0.13.0-SNAPSHOT
- ..
-
-
- zeppelin-examples
- pom
- Zeppelin: Examples
- Zeppelin examples
-
-
- zeppelin-example-clock
- zeppelin-example-horizontalbar
- zeppelin-example-spell-flowchart
- zeppelin-example-spell-translator
- zeppelin-example-spell-markdown
- zeppelin-example-spell-echo
-
-
-
-
-
- org.apache.maven.plugins
- maven-deploy-plugin
-
- true
-
-
-
-
- maven-enforcer-plugin
-
-
- enforce-dependency-convergence
- none
-
-
-
-
-
-
diff --git a/zeppelin-examples/zeppelin-example-clock/pom.xml b/zeppelin-examples/zeppelin-example-clock/pom.xml
deleted file mode 100644
index f8bf362d5ec..00000000000
--- a/zeppelin-examples/zeppelin-example-clock/pom.xml
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- zeppelin-examples
- org.apache.zeppelin
- 0.13.0-SNAPSHOT
- ..
-
-
- zeppelin-example-clock
- jar
- 0.13.0-SNAPSHOT
- Zeppelin: Example application - Clock
-
-
-
- org.apache.zeppelin
- zeppelin-interpreter
- ${project.version}
-
-
-
- org.apache.zeppelin
- helium-dev
- ${project.version}
-
-
-
- org.slf4j
- slf4j-api
-
-
-
- org.slf4j
- slf4j-reload4j
-
-
-
- ch.qos.reload4j
- reload4j
-
-
-
- org.junit.jupiter
- junit-jupiter-engine
- test
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-deploy-plugin
-
- true
-
-
-
-
- maven-clean-plugin
-
-
-
- ${project.basedir}/../../helium
-
- ${project.artifactId}.json
-
-
-
-
-
-
-
- maven-resources-plugin
-
-
- generate-resources
-
- copy-resources
-
-
-
- ${project.basedir}/../../helium/
-
-
- ${project.basedir}
-
- ${project.artifactId}.json
-
-
-
-
-
-
-
-
-
-
diff --git a/zeppelin-examples/zeppelin-example-clock/src/main/java/org/apache/zeppelin/example/app/clock/Clock.java b/zeppelin-examples/zeppelin-example-clock/src/main/java/org/apache/zeppelin/example/app/clock/Clock.java
deleted file mode 100644
index 63eaf164ecf..00000000000
--- a/zeppelin-examples/zeppelin-example-clock/src/main/java/org/apache/zeppelin/example/app/clock/Clock.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.zeppelin.example.app.clock;
-
-import org.apache.zeppelin.helium.Application;
-import org.apache.zeppelin.helium.ApplicationContext;
-import org.apache.zeppelin.helium.ApplicationException;
-import org.apache.zeppelin.helium.ZeppelinApplicationDevServer;
-import org.apache.zeppelin.resource.*;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.io.IOException;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-/**
- * Basic example application.
- * Get java.util.Date from resource pool and display it
- */
-public class Clock extends Application {
- private static final Logger LOGGER = LoggerFactory.getLogger(Clock.class);
-
- Date date;
- boolean shutdown = false;
- private Thread updateThread;
-
- public Clock(ApplicationContext context) {
- super(context);
- }
-
- @Override
- public void run(ResourceSet resources) throws ApplicationException {
- // Get data from resource args
- date = (Date) resources.get(0).get();
-
- // print view template
- try {
- context().out.writeResource("example/app/clock/clock.html");
- } catch (IOException e) {
- throw new ApplicationException(e);
- }
-
- if (updateThread == null) {
- start();
- }
- }
-
-
- public void start() {
- updateThread = new Thread() {
- public void run() {
- while (!shutdown) {
- // format date
- SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-
- // put formatted string to angular object.
- context().getAngularObjectRegistry().add("date", df.format(date));
-
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- // nothing todo
- }
- date = new Date(date.getTime() + 1000);
- }
- }
- };
-
- updateThread.start();
- }
-
-
- @Override
- public void unload() throws ApplicationException {
- shutdown = true;
- try {
- updateThread.join();
- } catch (InterruptedException e) {
- // nothing to do
- }
- context().getAngularObjectRegistry().remove("date");
- }
-
- /**
- * Development mode
- */
- public static void main(String[] args) throws Exception {
- LocalResourcePool pool = new LocalResourcePool("dev");
- pool.put("date", new Date());
-
- ZeppelinApplicationDevServer devServer = new ZeppelinApplicationDevServer(
- Clock.class.getName(),
- pool.getAll());
-
- devServer.start();
- devServer.join();
- }
-}
diff --git a/zeppelin-examples/zeppelin-example-clock/src/main/resources/example/app/clock/clock.html b/zeppelin-examples/zeppelin-example-clock/src/main/resources/example/app/clock/clock.html
deleted file mode 100644
index ff492f03e5c..00000000000
--- a/zeppelin-examples/zeppelin-example-clock/src/main/resources/example/app/clock/clock.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
{{date}}
\ No newline at end of file
diff --git a/zeppelin-examples/zeppelin-example-clock/zeppelin-example-clock.json b/zeppelin-examples/zeppelin-example-clock/zeppelin-example-clock.json
deleted file mode 100644
index 34701ac0ec7..00000000000
--- a/zeppelin-examples/zeppelin-example-clock/zeppelin-example-clock.json
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-{
- "type" : "APPLICATION",
- "name" : "zeppelin.clock",
- "description" : "Clock (example)",
- "artifact" : "zeppelin-examples/zeppelin-example-clock/target/zeppelin-example-clock-0.9.0-SNAPSHOT.jar",
- "className" : "org.apache.zeppelin.example.app.clock.Clock",
- "resources" : [[":java.util.Date"]],
- "license" : "Apache-2.0",
- "icon" : ''
-}
diff --git a/zeppelin-examples/zeppelin-example-horizontalbar/horizontalbar.js b/zeppelin-examples/zeppelin-example-horizontalbar/horizontalbar.js
deleted file mode 100644
index d574a894b77..00000000000
--- a/zeppelin-examples/zeppelin-example-horizontalbar/horizontalbar.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import Nvd3ChartVisualization from 'zeppelin-vis/builtins/visualization-nvd3chart';
-import PivotTransformation from 'zeppelin-tabledata/pivot';
-
-/**
- * Base class for visualization
- */
-export default class horizontalbar extends Nvd3ChartVisualization {
- constructor(targetEl, config) {
- super(targetEl, config)
- this.pivot = new PivotTransformation(config);
- }
-
- type() {
- return 'multiBarHorizontalChart';
- };
-
- render(pivot) {
- var d3Data = this.d3DataFromPivot(
- pivot.schema,
- pivot.rows,
- pivot.keys,
- pivot.groups,
- pivot.values,
- true,
- false,
- true);
-
- super.render(d3Data);
- }
-
- getTransformation() {
- return this.pivot;
- }
-
- /**
- * Set new config
- */
- setConfig(config) {
- super.setConfig(config);
- this.pivot.setConfig(config);
- };
-
- configureChart(chart) {
- var self = this;
- chart.yAxis.axisLabelDistance(50);
- chart.yAxis.tickFormat(function(d) {return self.yAxisTickFormat(d);});
-
- this.chart.stacked(this.config.stacked);
-
- var self = this;
- this.chart.dispatch.on('stateChange', function(s) {
- self.config.stacked = s.stacked;
-
- // give some time to animation finish
- setTimeout(function() {
- self.emitConfig(self.config);
- }, 500);
- });
- };
-}
-
diff --git a/zeppelin-examples/zeppelin-example-horizontalbar/package.json b/zeppelin-examples/zeppelin-example-horizontalbar/package.json
deleted file mode 100644
index 60121d6e8cb..00000000000
--- a/zeppelin-examples/zeppelin-example-horizontalbar/package.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "name": "zeppelin_horizontalbar",
- "description" : "Horizontal Bar chart (example)",
- "version": "1.0.0",
- "main": "horizontalbar",
- "author": "",
- "license": "Apache-2.0",
- "dependencies": {
- "zeppelin-tabledata": "*",
- "zeppelin-vis": "*"
- }
-}
diff --git a/zeppelin-examples/zeppelin-example-horizontalbar/pom.xml b/zeppelin-examples/zeppelin-example-horizontalbar/pom.xml
deleted file mode 100644
index be1972c65b0..00000000000
--- a/zeppelin-examples/zeppelin-example-horizontalbar/pom.xml
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- zeppelin-examples
- org.apache.zeppelin
- 0.13.0-SNAPSHOT
- ..
-
-
- zeppelin-example-horizontalbar
- jar
- 0.13.0-SNAPSHOT
- Zeppelin: Example application - Horizontal Bar chart
-
-
-
- ${project.groupId}
- zeppelin-interpreter
- ${project.version}
-
-
-
- ${project.groupId}
- helium-dev
- ${project.version}
-
-
-
- org.slf4j
- slf4j-api
-
-
-
- org.slf4j
- slf4j-reload4j
-
-
-
- ch.qos.reload4j
- reload4j
-
-
-
- org.junit.jupiter
- junit-jupiter-engine
- test
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-deploy-plugin
-
- true
-
-
-
-
- maven-clean-plugin
-
-
-
- ${project.basedir}/../../helium
-
- ${project.artifactId}.json
-
-
-
-
-
-
-
- maven-resources-plugin
-
-
- generate-resources
-
- copy-resources
-
-
-
- ${project.basedir}/../../helium/
-
-
- ${project.basedir}
-
- ${project.artifactId}.json
-
-
-
-
-
-
-
-
-
-
diff --git a/zeppelin-examples/zeppelin-example-horizontalbar/zeppelin-example-horizontalbar.json b/zeppelin-examples/zeppelin-example-horizontalbar/zeppelin-example-horizontalbar.json
deleted file mode 100644
index c8ac28cb501..00000000000
--- a/zeppelin-examples/zeppelin-example-horizontalbar/zeppelin-example-horizontalbar.json
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-{
- "type" : "VISUALIZATION",
- "name" : "zeppelin_horizontalbar",
- "description" : "Horizontal Bar chart (example)",
- "artifact" : "./zeppelin-examples/zeppelin-example-horizontalbar",
- "license" : "Apache-2.0",
- "icon" : ""
-}
diff --git a/zeppelin-examples/zeppelin-example-spell-echo/index.js b/zeppelin-examples/zeppelin-example-spell-echo/index.js
deleted file mode 100644
index 5b379e17137..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-echo/index.js
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import {
- SpellBase,
- SpellResult,
- DefaultDisplayType,
-} from 'zeppelin-spell';
-
-export default class EchoSpell extends SpellBase {
- constructor() {
- super("%echo");
- }
-
- /**
- * Consumes text and return `SpellResult`.
- *
- * @param paragraphText {string} which doesn't include magic
- * @param config {Object}
- * @return {SpellResult}
- */
- interpret(paragraphText, config) {
- let repeat = 1;
-
- try {
- repeat = parseFloat(config.repeat);
- } catch (error) {
- /** ignore, use default value */
- }
-
- let repeated = "";
-
- for (let i = 0; i < repeat; i++) {
- repeated += `${paragraphText}\n`;
- }
-
- return new SpellResult(repeated);
- }
-}
diff --git a/zeppelin-examples/zeppelin-example-spell-echo/package.json b/zeppelin-examples/zeppelin-example-spell-echo/package.json
deleted file mode 100644
index 2d9710eb0d7..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-echo/package.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "echo-spell",
- "description" : "Return just what receive (example)",
- "version": "1.0.0",
- "main": "index",
- "author": "",
- "license": "Apache-2.0",
- "dependencies": {
- "zeppelin-spell": "*"
- },
- "spell": {
- "magic": "%echo",
- "usage": "%echo "
- }
-}
diff --git a/zeppelin-examples/zeppelin-example-spell-echo/pom.xml b/zeppelin-examples/zeppelin-example-spell-echo/pom.xml
deleted file mode 100644
index 010197129fa..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-echo/pom.xml
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- zeppelin-examples
- org.apache.zeppelin
- 0.13.0-SNAPSHOT
- ..
-
-
- zeppelin-example-spell-echo
- jar
- 0.13.0-SNAPSHOT
- Zeppelin: Example Spell - Echo
-
-
-
- ${project.groupId}
- zeppelin-interpreter
- ${project.version}
-
-
-
- ${project.groupId}
- helium-dev
- ${project.version}
-
-
-
- org.slf4j
- slf4j-api
-
-
-
- org.slf4j
- slf4j-reload4j
-
-
-
- ch.qos.reload4j
- reload4j
-
-
-
- org.junit.jupiter
- junit-jupiter-engine
- test
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-deploy-plugin
-
- true
-
-
-
-
- maven-clean-plugin
-
-
-
- ${project.basedir}/../../helium
-
- ${project.artifactId}.json
-
-
-
-
-
-
-
- maven-resources-plugin
-
-
- generate-resources
-
- copy-resources
-
-
-
- ${project.basedir}/../../helium/
-
-
- ${project.basedir}
-
- ${project.artifactId}.json
-
-
-
-
-
-
-
-
-
-
diff --git a/zeppelin-examples/zeppelin-example-spell-echo/zeppelin-example-spell-echo.json b/zeppelin-examples/zeppelin-example-spell-echo/zeppelin-example-spell-echo.json
deleted file mode 100644
index fe1d06e27e1..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-echo/zeppelin-example-spell-echo.json
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-{
- "type" : "SPELL",
- "name" : "echo-spell",
- "description" : "Return just what receive (example)",
- "artifact" : "./zeppelin-examples/zeppelin-example-spell-echo",
- "license" : "Apache-2.0",
- "icon" : "",
- "config": {
- "repeat": {
- "type": "number",
- "description": "How many times to repeat",
- "defaultValue": 1
- }
- },
- "spell": {
- "magic": "%echo",
- "usage": "%echo "
- }
-}
diff --git a/zeppelin-examples/zeppelin-example-spell-flowchart/index.js b/zeppelin-examples/zeppelin-example-spell-flowchart/index.js
deleted file mode 100644
index 655814a45c3..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-flowchart/index.js
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import {
- SpellBase,
- SpellResult,
- DefaultDisplayType,
-} from 'zeppelin-spell';
-
-import flowchart from 'flowchart.js';
-
-export default class FlowchartSpell extends SpellBase {
- constructor() {
- super("%flowchart");
- }
-
- interpret(paragraphText) {
- /**
- * `flowchart` library requires an existing DOM to render.
- * but the DOM is not created yet when `interpret` is called.
- * so Zeppelin allows to return callback function which accept a DOM element id.
- * the callback function will executed when the DOM is ready.
- */
- const callback = (targetElemId) => {
- let diagram = flowchart.parse(paragraphText);
- diagram.drawSVG(targetElemId, this.getOption());
- };
-
- /**
- * `interpret` method can return multiple results using `add()`
- * but now, we return just 1 result
- */
- return new SpellResult(
- callback
- );
- }
-
- getOption() {
- return {
- 'x': 0,
- 'y': 0,
- 'line-width': 3,
- 'line-length': 50,
- 'text-margin': 10,
- 'font-size': 14,
- 'font-color': 'black',
- 'line-color': 'black',
- 'element-color': 'black',
- 'fill': 'white',
- 'yes-text': 'yes',
- 'no-text': 'no',
- 'arrow-end': 'block',
- 'scale': 1,
- // style symbol types
- 'symbols': {
- 'start': {
- 'font-color': 'red',
- 'element-color': 'green',
- 'fill': 'yellow'
- },
- 'end':{
- 'class': 'end-element'
- }
- },
- // even flowstate support ;-)
- 'flowstate' : {
- 'past' : { 'fill' : '#CCCCCC', 'font-size' : 12},
- 'current' : {'fill' : 'yellow', 'font-color' : 'red', 'font-weight' : 'bold'},
- 'future' : { 'fill' : '#FFFF99'},
- 'request' : { 'fill' : 'blue'},
- 'invalid': {'fill' : '#444444'},
- 'approved' : { 'fill' : '#58C4A3', 'font-size' : 12, 'yes-text' : 'APPROVED', 'no-text' : 'n/a' },
- 'rejected' : { 'fill' : '#C45879', 'font-size' : 12, 'yes-text' : 'n/a', 'no-text' : 'REJECTED' }
- }
- }
- }
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/zeppelin-examples/zeppelin-example-spell-flowchart/package.json b/zeppelin-examples/zeppelin-example-spell-flowchart/package.json
deleted file mode 100644
index 24be73bc75b..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-flowchart/package.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "name": "flowchart-spell",
- "description" : "Draw flowchart using http://flowchart.js.org (example)",
- "version": "1.0.0",
- "main": "index",
- "author": "",
- "license": "Apache-2.0",
- "dependencies": {
- "raphael": "2.2.0",
- "flowchart.js": "^1.6.5",
- "zeppelin-spell": "*"
- },
- "spell": {
- "magic": "%flowchart",
- "usage": "%flowchart "
- }
-}
diff --git a/zeppelin-examples/zeppelin-example-spell-flowchart/pom.xml b/zeppelin-examples/zeppelin-example-spell-flowchart/pom.xml
deleted file mode 100644
index dd65f595014..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-flowchart/pom.xml
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- zeppelin-examples
- org.apache.zeppelin
- 0.13.0-SNAPSHOT
- ..
-
-
- zeppelin-example-spell-flowchart
- jar
- 0.13.0-SNAPSHOT
- Zeppelin: Example Spell - Flowchart
-
-
-
- ${project.groupId}
- zeppelin-interpreter
- ${project.version}
-
-
-
- ${project.groupId}
- helium-dev
- ${project.version}
-
-
-
- org.slf4j
- slf4j-api
-
-
-
- org.slf4j
- slf4j-reload4j
-
-
-
- ch.qos.reload4j
- reload4j
-
-
-
- org.junit.jupiter
- junit-jupiter-engine
- test
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-deploy-plugin
-
- true
-
-
-
-
- maven-clean-plugin
-
-
-
- ${project.basedir}/../../helium
-
- ${project.artifactId}.json
-
-
-
-
-
-
-
- maven-resources-plugin
-
-
- generate-resources
-
- copy-resources
-
-
-
- ${project.basedir}/../../helium/
-
-
- ${project.basedir}
-
- ${project.artifactId}.json
-
-
-
-
-
-
-
-
-
-
diff --git a/zeppelin-examples/zeppelin-example-spell-flowchart/zeppelin-example-spell-flowchart.json b/zeppelin-examples/zeppelin-example-spell-flowchart/zeppelin-example-spell-flowchart.json
deleted file mode 100644
index 0ea6e41e3c5..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-flowchart/zeppelin-example-spell-flowchart.json
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-{
- "type" : "SPELL",
- "name" : "flowchart-spell",
- "description" : "Draw flowchart using http://flowchart.js.org (example)",
- "artifact" : "./zeppelin-examples/zeppelin-example-spell-flowchart",
- "license" : "Apache-2.0",
- "icon" : "",
- "spell": {
- "magic": "%flowchart",
- "usage": "%flowchart "
- }
-}
diff --git a/zeppelin-examples/zeppelin-example-spell-markdown/index.js b/zeppelin-examples/zeppelin-example-spell-markdown/index.js
deleted file mode 100644
index db7959f9a0c..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-markdown/index.js
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import {
- SpellBase,
- SpellResult,
- DefaultDisplayType,
-} from 'zeppelin-spell';
-
-import md from 'markdown';
-
-const markdown = md.markdown;
-
-export default class MarkdownSpell extends SpellBase {
- constructor() {
- super("%markdown");
- }
-
- interpret(paragraphText) {
- const parsed = markdown.toHTML(paragraphText);
-
- /**
- * specify `DefaultDisplayType.HTML` since `parsed` will contain DOM
- * otherwise it will be rendered as `DefaultDisplayType.TEXT` (default)
- */
- return new SpellResult(parsed, DefaultDisplayType.HTML);
- }
-}
diff --git a/zeppelin-examples/zeppelin-example-spell-markdown/package.json b/zeppelin-examples/zeppelin-example-spell-markdown/package.json
deleted file mode 100644
index 997a2a26591..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-markdown/package.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "markdown-spell",
- "description" : "Parse markdown using https://github.com/evilstreak/markdown-js (example)",
- "version": "1.0.0",
- "main": "index",
- "author": "",
- "license": "Apache-2.0",
- "dependencies": {
- "markdown": "0.5.0",
- "zeppelin-spell": "*"
- },
- "spell": {
- "magic": "%markdown",
- "usage": "%markdown "
- }
-}
diff --git a/zeppelin-examples/zeppelin-example-spell-markdown/pom.xml b/zeppelin-examples/zeppelin-example-spell-markdown/pom.xml
deleted file mode 100644
index 1e522cf201c..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-markdown/pom.xml
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- zeppelin-examples
- org.apache.zeppelin
- 0.13.0-SNAPSHOT
- ..
-
-
- zeppelin-example-spell-markdown
- jar
- 0.13.0-SNAPSHOT
- Zeppelin: Example Spell - Markdown
-
-
-
- ${project.groupId}
- zeppelin-interpreter
- ${project.version}
-
-
-
- ${project.groupId}
- helium-dev
- ${project.version}
-
-
-
- org.slf4j
- slf4j-api
-
-
-
- org.slf4j
- slf4j-reload4j
-
-
-
- ch.qos.reload4j
- reload4j
-
-
-
- org.junit.jupiter
- junit-jupiter-engine
- test
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-deploy-plugin
-
- true
-
-
-
-
- maven-clean-plugin
-
-
-
- ${project.basedir}/../../helium
-
- ${project.artifactId}.json
-
-
-
-
-
-
-
- maven-resources-plugin
-
-
- generate-resources
-
- copy-resources
-
-
-
- ${project.basedir}/../../helium/
-
-
- ${project.basedir}
-
- ${project.artifactId}.json
-
-
-
-
-
-
-
-
-
-
diff --git a/zeppelin-examples/zeppelin-example-spell-markdown/zeppelin-example-spell-markdown.json b/zeppelin-examples/zeppelin-example-spell-markdown/zeppelin-example-spell-markdown.json
deleted file mode 100644
index 48ad2463de9..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-markdown/zeppelin-example-spell-markdown.json
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-{
- "type" : "SPELL",
- "name" : "markdown-spell",
- "description" : "Parse markdown using https://github.com/evilstreak/markdown-js (example)",
- "artifact" : "./zeppelin-examples/zeppelin-example-spell-markdown",
- "license" : "Apache-2.0",
- "icon" : "",
- "spell": {
- "magic": "%markdown",
- "usage": "%markdown "
- }
-}
diff --git a/zeppelin-examples/zeppelin-example-spell-translator/index.js b/zeppelin-examples/zeppelin-example-spell-translator/index.js
deleted file mode 100644
index 284ce3ba29e..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-translator/index.js
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import {
- SpellBase,
- SpellResult,
- DefaultDisplayType,
-} from 'zeppelin-spell';
-
-import 'whatwg-fetch';
-
-export default class TranslatorSpell extends SpellBase {
- constructor() {
- super("%translator");
- }
-
- /**
- * Consumes text and return `SpellResult`.
- *
- * @param paragraphText {string} which doesn't include magic
- * @param config {Object}
- * @return {SpellResult}
- */
- interpret(paragraphText, config) {
- const parsed = this.parseConfig(paragraphText);
- const auth = config['access-token'];
- const source = parsed.source;
- const target = parsed.target;
- const text = parsed.text;
-
- /**
- * SpellResult.add()
- * - accepts not only `string` but also `promise` as a parameter
- * - allows to add multiple output using the `add()` function
- */
- const result = new SpellResult()
- .add('
Translation Result
', DefaultDisplayType.HTML)
- // or use display system implicitly like
- // .add('%html
Translation From English To Korean
')
- .add(this.translate(source, target, auth, text));
- return result;
- }
-
- parseConfig(text) {
- const pattern = /^\s*(\S+)-(\S+)\s*([\S\s]*)/g;
- const match = pattern.exec(text);
-
- if (!match) {
- throw new Error(`Failed to parse configuration. See README`);
- }
-
- return {
- source: match[1],
- target: match[2],
- text: match[3],
- }
- }
-
- translate(source, target, auth, text) {
- return fetch('https://translation.googleapis.com/language/translate/v2', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json',
- 'Authorization': `Bearer ${auth}`,
- },
- body: JSON.stringify({
- 'q': text,
- 'source': source,
- 'target': target,
- 'format': 'text'
- })
- }).then(response => {
- if (response.status === 200) {
- return response.json()
- }
- throw new Error(`https://translation.googleapis.com/language/translate/v2 ${response.status} (${response.statusText})`);
- }).then((json) => {
- const extracted = json.data.translations.map(t => {
- return t.translatedText;
- });
- return extracted.join('\n');
- });
- }
-}
-
diff --git a/zeppelin-examples/zeppelin-example-spell-translator/package.json b/zeppelin-examples/zeppelin-example-spell-translator/package.json
deleted file mode 100644
index 90624f8bf40..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-translator/package.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "translator-spell",
- "description" : "Translate langauges using Google API (examaple)",
- "version": "1.0.0",
- "main": "index",
- "author": "",
- "license": "Apache-2.0",
- "dependencies": {
- "whatwg-fetch": "^2.0.1",
- "zeppelin-spell": "*"
- },
- "spell": {
- "magic": "%translator",
- "usage": "%translator -"
- }
-}
diff --git a/zeppelin-examples/zeppelin-example-spell-translator/pom.xml b/zeppelin-examples/zeppelin-example-spell-translator/pom.xml
deleted file mode 100644
index b0a60516c10..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-translator/pom.xml
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
- 4.0.0
-
-
- zeppelin-examples
- org.apache.zeppelin
- 0.13.0-SNAPSHOT
- ..
-
-
- zeppelin-example-spell-translator
- jar
- 0.13.0-SNAPSHOT
- Zeppelin: Example Spell - Translator
-
-
-
- ${project.groupId}
- zeppelin-interpreter
- ${project.version}
-
-
-
- ${project.groupId}
- helium-dev
- ${project.version}
-
-
-
- org.slf4j
- slf4j-api
-
-
-
- org.slf4j
- slf4j-reload4j
-
-
-
- ch.qos.reload4j
- reload4j
-
-
-
- org.junit.jupiter
- junit-jupiter-engine
- test
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-deploy-plugin
-
- true
-
-
-
-
- maven-clean-plugin
-
-
-
- ${project.basedir}/../../helium
-
- ${project.artifactId}.json
-
-
-
-
-
-
-
- maven-resources-plugin
-
-
- generate-resources
-
- copy-resources
-
-
-
- ${project.basedir}/../../helium/
-
-
- ${project.basedir}
-
- ${project.artifactId}.json
-
-
-
-
-
-
-
-
-
-
diff --git a/zeppelin-examples/zeppelin-example-spell-translator/zeppelin-example-spell-translator.json b/zeppelin-examples/zeppelin-example-spell-translator/zeppelin-example-spell-translator.json
deleted file mode 100644
index 965e90c34ec..00000000000
--- a/zeppelin-examples/zeppelin-example-spell-translator/zeppelin-example-spell-translator.json
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-{
- "type" : "SPELL",
- "name" : "translator-spell",
- "description" : "Translate langauges using Google API (examaple)",
- "artifact" : "./zeppelin-examples/zeppelin-example-spell-translator",
- "license" : "Apache-2.0",
- "icon" : "",
- "config": {
- "access-token": {
- "type": "string",
- "description": "access token for Google Translation API",
- "defaultValue": "EXAMPLE-TOKEN"
- }
- },
- "spell": {
- "magic": "%translator",
- "usage": "%translator -"
- }
-}
diff --git a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ShellIntegrationTest.java b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ShellIntegrationTest.java
index 875835b599a..fb91a259f97 100644
--- a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ShellIntegrationTest.java
+++ b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ShellIntegrationTest.java
@@ -18,7 +18,6 @@
package org.apache.zeppelin.integration;
import org.apache.zeppelin.MiniZeppelinServer;
-import org.apache.zeppelin.conf.ZeppelinConfiguration;
import org.apache.zeppelin.notebook.Notebook;
import org.apache.zeppelin.notebook.Paragraph;
import org.apache.zeppelin.rest.AbstractTestRestApi;
@@ -42,8 +41,7 @@ static void init() throws Exception {
zepServer = new MiniZeppelinServer(ShellIntegrationTest.class.getSimpleName());
zepServer.addInterpreter("sh");
zepServer.copyBinDir();
- zepServer.getZeppelinConfiguration().setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_HELIUM_REGISTRY.getVarName(),
- "helium");
+
zepServer.start();
}
diff --git a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/SparkIntegrationTest.java b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/SparkIntegrationTest.java
index a3b1b4c2a7c..5b48a2bb147 100644
--- a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/SparkIntegrationTest.java
+++ b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/SparkIntegrationTest.java
@@ -28,7 +28,6 @@
import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
import org.apache.zeppelin.test.DownloadUtils;
import org.apache.zeppelin.MiniZeppelinServer;
-import org.apache.zeppelin.conf.ZeppelinConfiguration;
import org.apache.zeppelin.interpreter.ExecutionContext;
import org.apache.zeppelin.interpreter.Interpreter;
import org.apache.zeppelin.interpreter.InterpreterContext;
@@ -90,8 +89,7 @@ static void init() throws Exception {
zepServer.addInterpreter("spark-submit");
zepServer.copyBinDir();
zepServer.copyLogProperties();
- zepServer.getZeppelinConfiguration().setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_HELIUM_REGISTRY.getVarName(),
- "helium");
+
zepServer.start();
interpreterSettingManager = zepServer.getService(InterpreterSettingManager.class);
interpreterFactory = zepServer.getService(InterpreterFactory.class);
diff --git a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/SparkSubmitIntegrationTest.java b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/SparkSubmitIntegrationTest.java
index 97af763d31f..8e1d92737cc 100644
--- a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/SparkSubmitIntegrationTest.java
+++ b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/SparkSubmitIntegrationTest.java
@@ -27,7 +27,6 @@
import org.apache.hadoop.yarn.exceptions.YarnException;
import org.apache.zeppelin.test.DownloadUtils;
import org.apache.zeppelin.MiniZeppelinServer;
-import org.apache.zeppelin.conf.ZeppelinConfiguration;
import org.apache.zeppelin.interpreter.ExecutionContext;
import org.apache.zeppelin.interpreter.Interpreter;
import org.apache.zeppelin.interpreter.InterpreterContext;
@@ -73,8 +72,7 @@ static void init() throws Exception {
zepServer.addInterpreter("sh");
zepServer.addInterpreter("spark-submit");
zepServer.copyBinDir();
- zepServer.getZeppelinConfiguration().setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_HELIUM_REGISTRY.getVarName(),
- "helium");
+
zepServer.start();
interpreterSettingManager = zepServer.getService(InterpreterSettingManager.class);
interpreterFactory = zepServer.getService(InterpreterFactory.class);
diff --git a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/YarnInterpreterLauncherIntegrationTest.java b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/YarnInterpreterLauncherIntegrationTest.java
index 46f8bc1267b..aff1be0c5ed 100644
--- a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/YarnInterpreterLauncherIntegrationTest.java
+++ b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/YarnInterpreterLauncherIntegrationTest.java
@@ -69,8 +69,7 @@ static void init() throws Exception {
zepServer.addLauncher("YarnInterpreterLauncher");
zepServer.copyLogProperties();
zepServer.copyBinDir();
- zepServer.getZeppelinConfiguration().setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_HELIUM_REGISTRY.getVarName(),
- "helium");
+
zepServer.getZeppelinConfiguration().setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_ALLOWED_ORIGINS.getVarName(), "*");
zepServer.getZeppelinConfiguration().setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETER_CONNECT_TIMEOUT.getVarName(), "120000");
diff --git a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZSessionIntegrationTest.java b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZSessionIntegrationTest.java
index 5d491c49f82..d8b1b3815a2 100644
--- a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZSessionIntegrationTest.java
+++ b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZSessionIntegrationTest.java
@@ -67,12 +67,10 @@ static void init() throws Exception {
zepServer.copyBinDir();
zepServer.addLauncher("FlinkInterpreterLauncher");
ZeppelinConfiguration zConf = zepServer.getZeppelinConfiguration();
- zConf.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_HELIUM_REGISTRY.getVarName(),
- "helium");
+
zConf.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_ALLOWED_ORIGINS.getVarName(), "*");
zConf.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_SESSION_CHECK_INTERVAL.getVarName(), "5000");
- zConf.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_HELIUM_REGISTRY.getVarName(),
- "helium");
+
zConf.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETER_LIFECYCLE_MANAGER_CLASS.getVarName(), TimeoutLifecycleManager.class.getName());
zConf.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETER_LIFECYCLE_MANAGER_TIMEOUT_CHECK_INTERVAL.getVarName(), "5000");
zConf.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_INTERPRETER_LIFECYCLE_MANAGER_TIMEOUT_THRESHOLD.getVarName(), "10000");
diff --git a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinClientIntegrationTest.java b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinClientIntegrationTest.java
index e1e3bbf3319..c0c9d128150 100644
--- a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinClientIntegrationTest.java
+++ b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinClientIntegrationTest.java
@@ -64,8 +64,7 @@ static void init() throws Exception {
zepServer.copyBinDir();
zepServer.copyLogProperties();
ZeppelinConfiguration zConf = zepServer.getZeppelinConfiguration();
- zConf.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_HELIUM_REGISTRY.getVarName(),
- "helium");
+
zConf.setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_ALLOWED_ORIGINS.getVarName(), "*");
zepServer.start();
clientConfig = new ClientConfig("http://localhost:" + zepServer.getZeppelinConfiguration().getServerPort());
diff --git a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinClientWithAuthIntegrationTest.java b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinClientWithAuthIntegrationTest.java
index bfe170916fe..3afa21c994f 100644
--- a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinClientWithAuthIntegrationTest.java
+++ b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinClientWithAuthIntegrationTest.java
@@ -48,8 +48,7 @@ static void init() throws Exception {
zepServer.addInterpreter("md");
zepServer.addConfigFile("shiro.ini", AbstractTestRestApi.ZEPPELIN_SHIRO);
zepServer.copyBinDir();
- zepServer.getZeppelinConfiguration().setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_HELIUM_REGISTRY.getVarName(),
- "helium");
+
zepServer.getZeppelinConfiguration().setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_ALLOWED_ORIGINS.getVarName(), "*");
zepServer.start();
clientConfig = new ClientConfig("http://localhost:" + zepServer.getZeppelinConfiguration().getServerPort());
diff --git a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinFlinkClusterTest.java b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinFlinkClusterTest.java
index 8f61fbfb82e..8d1554be8e9 100644
--- a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinFlinkClusterTest.java
+++ b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinFlinkClusterTest.java
@@ -20,7 +20,6 @@
import org.apache.commons.io.IOUtils;
import org.apache.zeppelin.test.DownloadUtils;
import org.apache.zeppelin.MiniZeppelinServer;
-import org.apache.zeppelin.conf.ZeppelinConfiguration;
import org.apache.zeppelin.notebook.Notebook;
import org.apache.zeppelin.notebook.Paragraph;
import org.apache.zeppelin.rest.AbstractTestRestApi;
@@ -64,8 +63,7 @@ static void init() throws Exception {
zepServer.addInterpreter("flink-cmd");
zepServer.copyBinDir();
zepServer.addLauncher("FlinkInterpreterLauncher");
- zepServer.getZeppelinConfiguration().setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_HELIUM_REGISTRY.getVarName(),
- "helium");
+
zepServer.start();
}
diff --git a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinSparkClusterTest.java b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinSparkClusterTest.java
index 06580746c33..f13598ddd8f 100644
--- a/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinSparkClusterTest.java
+++ b/zeppelin-interpreter-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinSparkClusterTest.java
@@ -19,7 +19,6 @@
import org.apache.commons.io.IOUtils;
import org.apache.zeppelin.test.DownloadUtils;
import org.apache.zeppelin.MiniZeppelinServer;
-import org.apache.zeppelin.conf.ZeppelinConfiguration;
import org.apache.zeppelin.display.AngularObject;
import org.apache.zeppelin.display.Input;
import org.apache.zeppelin.display.ui.CheckBox;
@@ -140,8 +139,7 @@ static void init() throws Exception {
zepServer.addInterpreter("python");
zepServer.copyBinDir();
zepServer.copyLogProperties();
- zepServer.getZeppelinConfiguration().setProperty(ZeppelinConfiguration.ConfVars.ZEPPELIN_HELIUM_REGISTRY.getVarName(),
- "helium");
+
zepServer.start();
}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/Application.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/Application.java
deleted file mode 100644
index a2e87670c58..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/Application.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.zeppelin.helium;
-
-import org.apache.zeppelin.annotation.Experimental;
-import org.apache.zeppelin.resource.ResourceSet;
-
-import java.io.IOException;
-
-/**
- * Base class for pluggable application (e.g. visualization)
- * Application can access resources from ResourcePool and interact with front-end using
- * AngularDisplay system
- */
-@Experimental
-public abstract class Application {
-
- private final ApplicationContext context;
-
- protected Application(ApplicationContext context) {
- this.context = context;
- }
-
- public ApplicationContext context() {
- return context;
- }
-
- /**
- * This method can be invoked multiple times before unload(),
- * Either just after application selected or when paragraph re-run after application load
- */
- @Experimental
- public abstract void run(ResourceSet args)
- throws ApplicationException, IOException;
-
-
- /**
- * this method is invoked just before application is removed
- */
- @Experimental
- public abstract void unload() throws ApplicationException;
-
- /**
- * Print string on the notebook
- * @param string
- * @throws IOException
- */
- @Experimental
- public void print(String string) throws IOException {
- context.out.write(string);
- }
-
- /**
- * Print string on the notebook with newline
- * @param string
- * @throws IOException
- */
- @Experimental
- public void println(String string) throws IOException {
- print(string + "\n");
- }
-
- /**
- * Print resource on the notebook
- * @param resourceName
- * @throws IOException
- */
- @Experimental
- public void printResource(String resourceName) throws IOException {
- context.out.writeResource(resourceName);
- }
-
- /**
- * Print resource as a javascript
- *
- * Using this method does not require print javascript inside of tag.
- * Javascript printed using this method will be run in the un-named function.
- * i.e. each method call will creates different variable scope for the javascript code.
- *
- * This method inject '$z' into the variable scope for convenience.
- *
- * $z.scope : angularjs scope object for this application
- * $z.id : unique id for this application instance
- *
- * @param resourceName
- * @throws IOException
- */
- @Experimental
- public void printResourceAsJavascript(String resourceName) throws IOException {
- beginJavascript();
- context.out.writeResource(resourceName);
- endJavascript();
- }
-
- /**
- * Print string as a javascript
- *
- * Using this method does not require print javascript inside of tag.
- * Javascript printed using this method will be run in the un-named function.
- * i.e. each method call will creates different variable scope for the javascript code.
- *
- * This method inject '$z' into the variable scope for convenience.
- *
- * $z.scope : angularjs scope object for this application
- * $z.id : unique id for this application instance
- *
- * @param js
- * @throws IOException
- */
- @Experimental
- public void printStringAsJavascript(String js) throws IOException {
- beginJavascript();
- context.out.write(js);
- endJavascript();
- }
-
- private void beginJavascript() throws IOException {
- StringBuilder js = new StringBuilder();
- js.append("\n\n");
- context.out.write(js.toString());
- }
-}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ApplicationContext.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ApplicationContext.java
deleted file mode 100644
index 8d3f67e9912..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ApplicationContext.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.zeppelin.helium;
-
-import org.apache.zeppelin.interpreter.InterpreterOutput;
-
-/**
- * ApplicationContext
- */
-public class ApplicationContext {
- private final String noteId;
- private final String paragraphId;
- private final String applicationInstanceId;
- private final HeliumAppAngularObjectRegistry angularObjectRegistry;
- public final InterpreterOutput out;
-
-
- public ApplicationContext(String noteId,
- String paragraphId,
- String applicationInstanceId,
- HeliumAppAngularObjectRegistry angularObjectRegistry,
- InterpreterOutput out) {
- this.noteId = noteId;
- this.paragraphId = paragraphId;
- this.applicationInstanceId = applicationInstanceId;
- this.angularObjectRegistry = angularObjectRegistry;
- this.out = out;
- }
-
- public String getNoteId() {
- return noteId;
- }
-
- public String getParagraphId() {
- return paragraphId;
- }
-
- public String getApplicationInstanceId() {
- return applicationInstanceId;
- }
-
- public HeliumAppAngularObjectRegistry getAngularObjectRegistry() {
- return angularObjectRegistry;
- }
-}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ApplicationEventListener.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ApplicationEventListener.java
deleted file mode 100644
index ca971f5c32f..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ApplicationEventListener.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.zeppelin.helium;
-
-import org.apache.zeppelin.interpreter.InterpreterResult;
-
-/**
- * Event from HeliumApplication running on remote interpreter process
- */
-public interface ApplicationEventListener {
- void onOutputAppend(
- String noteId, String paragraphId, int index, String appId, String output);
- void onOutputUpdated(
- String noteId, String paragraphId, int index, String appId,
- InterpreterResult.Type type, String output);
- void onLoad(String noteId, String paragraphId, String appId, HeliumPackage pkg);
- void onStatusChange(String noteId, String paragraphId, String appId, String status);
-}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ApplicationException.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ApplicationException.java
deleted file mode 100644
index d3c648886e8..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ApplicationException.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.zeppelin.helium;
-
-/**
- * Application exception
- */
-public class ApplicationException extends Exception {
- public ApplicationException(String s) {
- super(s);
- }
-
- public ApplicationException(Exception e) {
- super(e);
- }
-
- public ApplicationException() {
-
- }
-
- public ApplicationException(String message, Throwable cause) {
- super(message, cause);
- }
-}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ApplicationLoader.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ApplicationLoader.java
deleted file mode 100644
index 7ba68c60d21..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ApplicationLoader.java
+++ /dev/null
@@ -1,230 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.zeppelin.helium;
-
-import org.apache.zeppelin.dep.DependencyResolver;
-import org.apache.zeppelin.resource.DistributedResourcePool;
-import org.apache.zeppelin.resource.Resource;
-import org.apache.zeppelin.resource.ResourcePool;
-import org.apache.zeppelin.resource.ResourceSet;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.io.File;
-import java.lang.reflect.Constructor;
-import java.net.URL;
-import java.net.URLClassLoader;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-
-/**
- * Load application
- */
-public class ApplicationLoader {
- private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationLoader.class);
-
- private final DependencyResolver depResolver;
- private final ResourcePool resourcePool;
- private final Map> cached;
-
- public ApplicationLoader(ResourcePool resourcePool, DependencyResolver depResolver) {
- this.depResolver = depResolver;
- this.resourcePool = resourcePool;
- cached = Collections.synchronizedMap(
- new HashMap>());
- }
-
- /**
- * Information of loaded application
- */
- private static class RunningApplication {
- HeliumPackage packageInfo;
- String noteId;
- String paragraphId;
-
- RunningApplication(HeliumPackage packageInfo, String noteId, String paragraphId) {
- this.packageInfo = packageInfo;
- this.noteId = noteId;
- this.paragraphId = paragraphId;
- }
-
- public HeliumPackage getPackageInfo() {
- return packageInfo;
- }
-
- public String getNoteId() {
- return noteId;
- }
-
- public String getParagraphId() {
- return paragraphId;
- }
-
- @Override
- public int hashCode() {
- return (paragraphId + noteId + packageInfo.getArtifact() + packageInfo.getClassName())
- .hashCode();
- }
-
- @Override
- public boolean equals(Object o) {
- if (!(o instanceof RunningApplication)) {
- return false;
- }
-
- RunningApplication r = (RunningApplication) o;
- return packageInfo.equals(r.getPackageInfo()) && paragraphId.equals(r.getParagraphId()) &&
- noteId.equals(r.getNoteId());
- }
- }
-
- /**
- *
- * Instantiate application
- *
- * @param packageInfo
- * @param context
- * @return
- * @throws Exception
- */
- public Application load(HeliumPackage packageInfo, ApplicationContext context)
- throws Exception {
- if (packageInfo.getType() != HeliumType.APPLICATION) {
- throw new ApplicationException(
- "Can't instantiate " + packageInfo.getType() + " package using ApplicationLoader");
- }
-
- // check if already loaded
- RunningApplication key =
- new RunningApplication(packageInfo, context.getNoteId(), context.getParagraphId());
-
- // get resource required by this package
- ResourceSet resources = findRequiredResourceSet(packageInfo.getResources(),
- context.getNoteId(), context.getParagraphId());
-
- // load class
- Class appClass = loadClass(packageInfo);
-
- // instantiate
- ClassLoader oldcl = Thread.currentThread().getContextClassLoader();
- ClassLoader cl = appClass.getClassLoader();
- Thread.currentThread().setContextClassLoader(cl);
- try {
- Constructor constructor = appClass.getConstructor(ApplicationContext.class);
-
- Application app = new ClassLoaderApplication(constructor.newInstance(context), cl);
- return app;
- } catch (Exception e) {
- throw new ApplicationException(e);
- } finally {
- Thread.currentThread().setContextClassLoader(oldcl);
- }
- }
-
- public ResourceSet findRequiredResourceSet(
- String [][] requiredResources, String noteId, String paragraphId) {
- if (requiredResources == null || requiredResources.length == 0) {
- return new ResourceSet();
- }
-
- ResourceSet allResources;
- if (resourcePool instanceof DistributedResourcePool) {
- allResources = ((DistributedResourcePool) resourcePool).getAll(false);
- } else {
- allResources = resourcePool.getAll();
- }
-
- return findRequiredResourceSet(requiredResources, noteId, paragraphId, allResources);
- }
-
- static ResourceSet findRequiredResourceSet(String [][] requiredResources,
- String noteId,
- String paragraphId,
- ResourceSet resources) {
- ResourceSet args = new ResourceSet();
- if (requiredResources == null || requiredResources.length == 0) {
- return args;
- }
-
- resources = resources.filterByNoteId(noteId).filterByParagraphId(paragraphId);
-
- for (String [] requires : requiredResources) {
- args.clear();
-
- for (String require : requires) {
- boolean found = false;
-
- for (Resource r : resources) {
- if (require.startsWith(":") && r.getClassName().equals(require.substring(1))) {
- found = true;
- } else if (r.getResourceId().getName().equals(require)) {
- found = true;
- }
-
- if (found) {
- args.add(r);
- break;
- }
- }
-
- if (found == false) {
- break;
- }
- }
-
- if (args.size() == requires.length) {
- return args;
- }
- }
-
- return null;
- }
-
-
- private Class loadClass(HeliumPackage packageInfo) throws Exception {
- if (cached.containsKey(packageInfo)) {
- return cached.get(packageInfo);
- }
-
- // Create Application classloader
- List urlList = new LinkedList<>();
-
- // load artifact
- if (packageInfo.getArtifact() != null) {
- List paths = depResolver.load(packageInfo.getArtifact());
-
- if (paths != null) {
-
- for (File path : paths) {
- urlList.add(path.toURI().toURL());
- }
- }
- }
- URLClassLoader applicationClassLoader =
- new URLClassLoader(
- urlList.toArray(new URL[]{}),
- Thread.currentThread().getContextClassLoader());
-
- Class cls =
- (Class) applicationClassLoader.loadClass(packageInfo.getClassName());
- cached.put(packageInfo, cls);
- return cls;
- }
-}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ClassLoaderApplication.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ClassLoaderApplication.java
deleted file mode 100644
index 272a152448e..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/ClassLoaderApplication.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.zeppelin.helium;
-
-import org.apache.zeppelin.resource.ResourceSet;
-
-/**
- * Application wrapper
- */
-public class ClassLoaderApplication extends Application {
- Application app;
- ClassLoader cl;
- public ClassLoaderApplication(Application app, ClassLoader cl) throws ApplicationException {
- super(app.context());
- this.app = app;
- this.cl = cl;
- }
-
- @Override
- public void run(ResourceSet args) throws ApplicationException {
- // instantiate
- ClassLoader oldcl = Thread.currentThread().getContextClassLoader();
- Thread.currentThread().setContextClassLoader(cl);
- try {
- app.run(args);
- } catch (ApplicationException e) {
- throw e;
- } catch (Exception e) {
- throw new ApplicationException(e);
- } finally {
- Thread.currentThread().setContextClassLoader(oldcl);
- }
- }
-
- @Override
- public void unload() throws ApplicationException {
- // instantiate
- ClassLoader oldcl = Thread.currentThread().getContextClassLoader();
- Thread.currentThread().setContextClassLoader(cl);
- try {
- app.unload();
- } catch (ApplicationException e) {
- throw e;
- } catch (Exception e) {
- throw new ApplicationException(e);
- } finally {
- Thread.currentThread().setContextClassLoader(oldcl);
- }
- }
-
- public ClassLoader getClassLoader() {
- return cl;
- }
-
- public Application getInnerApplication() {
- return app;
- }
-}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/HeliumAppAngularObjectRegistry.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/HeliumAppAngularObjectRegistry.java
deleted file mode 100644
index dedb603add8..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/HeliumAppAngularObjectRegistry.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.zeppelin.helium;
-
-import org.apache.zeppelin.display.AngularObject;
-import org.apache.zeppelin.display.AngularObjectRegistry;
-
-import java.util.List;
-
-/**
- * Angular Registry for helium app
- */
-public class HeliumAppAngularObjectRegistry {
- private final String noteId;
- private final String appId;
- private final AngularObjectRegistry angularObjectRegistry;
-
- public HeliumAppAngularObjectRegistry(AngularObjectRegistry angularObjectRegistry,
- String noteId,
- String appId) {
- this.angularObjectRegistry = angularObjectRegistry;
- this.noteId = noteId;
- this.appId = appId;
- }
-
- public AngularObject add(String name, Object o) {
- return angularObjectRegistry.add(name, o, noteId, appId);
- }
-
- public AngularObject remove(String name) {
- return angularObjectRegistry.remove(name, noteId, appId);
- }
-
- public AngularObject get(String name) {
- return angularObjectRegistry.get(name, noteId, appId);
- }
-
- public List getAll() {
- return angularObjectRegistry.getAll(noteId, appId);
- }
-}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/HeliumPackage.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/HeliumPackage.java
deleted file mode 100644
index 51b0fcbe513..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/HeliumPackage.java
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.zeppelin.helium;
-
-import com.google.gson.Gson;
-import org.apache.commons.text.StringEscapeUtils;
-import org.apache.zeppelin.annotation.Experimental;
-import org.apache.zeppelin.common.JsonSerializable;
-
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Optional;
-
-import static org.apache.commons.text.StringEscapeUtils.escapeHtml4;
-
-/**
- * Helium package definition
- */
-@Experimental
-public class HeliumPackage implements JsonSerializable {
- private static final Gson gson = new Gson();
-
- private HeliumType type;
- private String name; // user friendly name of this application
- private String description; // description
- private String artifact; // artifact name e.g) groupId:artifactId:versionId
- private String className; // entry point
- // resource classnames that requires [[ .. and .. and .. ] or [ .. and .. and ..] ..]
- private String [][] resources;
-
- private String license;
- private String icon;
- private String published;
-
- private String groupId; // get groupId of INTERPRETER type package
- private String artifactId; // get artifactId of INTERPRETER type package
-
- private SpellPackageInfo spell;
- private Map config;
-
- private HeliumPackage(HeliumType type,
- String name,
- String description,
- String artifact,
- String className,
- String[][] resources,
- String license,
- String icon) {
- this.type = type;
- this.name = name;
- this.description = description;
- this.artifact = artifact;
- this.className = className;
- this.resources = resources;
- this.license = license;
- this.icon = icon;
- }
-
- @Override
- public int hashCode() {
- return (type.toString() + artifact + className).hashCode();
- }
-
- @Override
- public boolean equals(Object o) {
- if (!(o instanceof HeliumPackage)) {
- return false;
- }
-
- HeliumPackage info = (HeliumPackage) o;
- return type == info.type && artifact.equals(info.artifact) && className.equals(info.className);
- }
-
- public HeliumType getType() {
- return type;
- }
-
- public static boolean isBundleType(HeliumType type) {
- return (type == HeliumType.VISUALIZATION ||
- type == HeliumType.SPELL);
- }
-
- public String getName() {
- return name;
- }
-
- public String getDescription() {
- return description;
- }
-
- public String getArtifact() {
- return artifact;
- }
-
- public String getClassName() {
- return className;
- }
-
- public String[][] getResources() {
- return resources;
- }
-
- public String getLicense() {
- return license;
- }
-
- public String getIcon() {
- return icon;
- }
-
- public String getPublishedDate() {
- return published;
- }
-
- public String getGroupId() {
- return groupId;
- }
-
- public String getArtifactId() {
- return artifactId;
- }
-
- public SpellPackageInfo getSpellInfo() {
- return spell;
- }
-
- public Map getConfig() { return config; }
-
- public String toJson() {
- return gson.toJson(this);
- }
-
- public static HeliumPackage fromJson(String json) {
- return preventXss(gson.fromJson(json, HeliumPackage.class));
- }
-
- // This is only for test
- public static HeliumPackage newHeliumPackage(HeliumType type,
- String name,
- String description,
- String artifact,
- String className,
- String[][] resources,
- String license,
- String icon) {
- return preventXss(new HeliumPackage(
- type, name, description, artifact, className, resources, license, icon));
- }
-
- private static HeliumPackage preventXss(HeliumPackage heliumPackage) {
- heliumPackage.name = escapeHtml4(heliumPackage.name);
- heliumPackage.description = escapeHtml4(heliumPackage.description);
- heliumPackage.artifact = escapeHtml4(heliumPackage.artifact);
- heliumPackage.className = escapeHtml4(heliumPackage.className);
- heliumPackage.resources =
- Optional.ofNullable(heliumPackage.getResources()).map(r -> Arrays.stream(r)
- .map(resource -> Arrays.stream(resource).map(StringEscapeUtils::escapeHtml4)
- .toArray(String[]::new))
- .toArray(String[][]::new)).orElse(null);
- heliumPackage.license = escapeHtml4(heliumPackage.license);
- heliumPackage.published = escapeHtml4(heliumPackage.published);
- heliumPackage.groupId = escapeHtml4(heliumPackage.groupId);
- heliumPackage.artifactId = escapeHtml4(heliumPackage.artifactId);
- heliumPackage.spell = Optional.ofNullable(heliumPackage.getSpellInfo())
- .map(spellPackageInfo -> new SpellPackageInfo(
- escapeHtml4(spellPackageInfo.getMagic()),
- escapeHtml4(spellPackageInfo.getUsage())))
- .orElse(null);
- return heliumPackage;
- }
-}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/HeliumType.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/HeliumType.java
deleted file mode 100644
index 53360a08b1c..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/HeliumType.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.zeppelin.helium;
-
-/**
- * Type of Helium Package
- */
-public enum HeliumType {
- INTERPRETER,
- NOTEBOOK_REPO,
- APPLICATION,
- VISUALIZATION,
- SPELL
-}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/SpellPackageInfo.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/SpellPackageInfo.java
deleted file mode 100644
index 52e17dbd3fd..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/helium/SpellPackageInfo.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.zeppelin.helium;
-
-/**
- * Info for Helium Spell Package.
- */
-public class SpellPackageInfo {
- private String magic;
- private String usage;
-
- public SpellPackageInfo(String magic, String usage) {
- this.magic = magic;
- this.usage = usage;
- }
-
- public String getMagic() {
- return magic;
- }
-
- public String getUsage() {
- return usage;
- }
-}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterEventClient.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterEventClient.java
index df281c84d44..31328c79386 100644
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterEventClient.java
+++ b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterEventClient.java
@@ -25,9 +25,6 @@
import org.apache.zeppelin.display.AngularObjectRegistryListener;
import org.apache.zeppelin.interpreter.InterpreterResult;
import org.apache.zeppelin.interpreter.InterpreterResultMessage;
-import org.apache.zeppelin.interpreter.thrift.AppOutputAppendEvent;
-import org.apache.zeppelin.interpreter.thrift.AppOutputUpdateEvent;
-import org.apache.zeppelin.interpreter.thrift.AppStatusUpdateEvent;
import org.apache.zeppelin.interpreter.thrift.LibraryMetadata;
import org.apache.zeppelin.interpreter.thrift.OutputAppendEvent;
import org.apache.zeppelin.interpreter.thrift.OutputUpdateAllEvent;
@@ -226,7 +223,7 @@ public void onInterpreterOutputAppend(
try {
callRemoteFunction(client -> {
client.appendOutput(new OutputAppendEvent(
- noteId, paragraphId, outputIndex, output, null, executionOwner));
+ noteId, paragraphId, outputIndex, output, executionOwner));
return null;
});
} catch (Exception e) {
@@ -240,7 +237,7 @@ public void onInterpreterOutputUpdate(
try {
callRemoteFunction(client -> {
client.updateOutput(new OutputUpdateEvent(
- noteId, paragraphId, outputIndex, type.name(), output, null, executionOwner));
+ noteId, paragraphId, outputIndex, type.name(), output, executionOwner));
return null;
});
@@ -304,49 +301,6 @@ public void checkpointOutput(String noteId, String paragraphId) {
}
}
- public void onAppOutputAppend(
- String noteId, String paragraphId, int index, String appId, String output) {
- AppOutputAppendEvent event =
- new AppOutputAppendEvent(noteId, paragraphId, appId, index, output);
- try {
- callRemoteFunction(client -> {
- client.appendAppOutput(event);
- return null;
- });
- } catch (Exception e) {
- LOGGER.warn("Fail to appendAppOutput: {}", event, e);
- }
- }
-
-
- public void onAppOutputUpdate(
- String noteId, String paragraphId, int index, String appId,
- InterpreterResult.Type type, String output) {
- AppOutputUpdateEvent event =
- new AppOutputUpdateEvent(noteId, paragraphId, appId, index, type.name(), output);
- try {
- callRemoteFunction(client -> {
- client.updateAppOutput(event);
- return null;
- });
- } catch (Exception e) {
- LOGGER.warn("Fail to updateAppOutput: {}", event, e);
- }
- }
-
- public void onAppStatusUpdate(String noteId, String paragraphId, String appId,
- String status) {
- AppStatusUpdateEvent event = new AppStatusUpdateEvent(noteId, paragraphId, appId, status);
- try {
- callRemoteFunction(client -> {
- client.updateAppStatus(event);
- return null;
- });
- } catch (Exception e) {
- LOGGER.warn("Fail to updateAppStatus: {}", event, e);
- }
- }
-
public void onParaInfosReceived(Map infos) {
try {
callRemoteFunction(client -> {
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.java
index 346a8641ea1..5ba372d8894 100644
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.java
+++ b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.java
@@ -25,16 +25,9 @@
import org.apache.thrift.server.TThreadPoolServer;
import org.apache.thrift.transport.TServerSocket;
import org.apache.thrift.transport.TTransportException;
-import org.apache.zeppelin.dep.DependencyResolver;
import org.apache.zeppelin.display.AngularObject;
import org.apache.zeppelin.display.AngularObjectRegistry;
import org.apache.zeppelin.display.GUI;
-import org.apache.zeppelin.helium.Application;
-import org.apache.zeppelin.helium.ApplicationContext;
-import org.apache.zeppelin.helium.ApplicationException;
-import org.apache.zeppelin.helium.ApplicationLoader;
-import org.apache.zeppelin.helium.HeliumAppAngularObjectRegistry;
-import org.apache.zeppelin.helium.HeliumPackage;
import org.apache.zeppelin.interpreter.Constants;
import org.apache.zeppelin.interpreter.Interpreter;
import org.apache.zeppelin.interpreter.InterpreterContext;
@@ -54,7 +47,6 @@
import org.apache.zeppelin.interpreter.thrift.InterpreterCompletion;
import org.apache.zeppelin.interpreter.thrift.InterpreterRPCException;
import org.apache.zeppelin.interpreter.thrift.RegisterInfo;
-import org.apache.zeppelin.interpreter.thrift.RemoteApplicationResult;
import org.apache.zeppelin.interpreter.thrift.RemoteInterpreterContext;
import org.apache.zeppelin.interpreter.thrift.RemoteInterpreterResult;
import org.apache.zeppelin.interpreter.thrift.RemoteInterpreterResultMessage;
@@ -79,7 +71,6 @@
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
-import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
@@ -109,7 +100,6 @@ public class RemoteInterpreterServer extends Thread
private AngularObjectRegistry angularObjectRegistry;
private InterpreterHookRegistry hookRegistry;
private DistributedResourcePool resourcePool;
- private ApplicationLoader appLoader;
private Gson gson = new Gson();
private String launcherEnv = System.getenv("ZEPPELIN_INTERPRETER_LAUNCHER");
@@ -119,12 +109,8 @@ public class RemoteInterpreterServer extends Thread
private int port;
private TThreadPoolServer server;
RemoteInterpreterEventClient intpEventClient;
- private DependencyResolver depLoader;
private LifecycleManager lifecycleManager;
- private final Map runningApplications =
- Collections.synchronizedMap(new HashMap());
-
// Hold information for manual progress update
private ConcurrentMap progressMap = new ConcurrentHashMap<>();
@@ -328,19 +314,11 @@ public void createInterpreter(String interpreterGroupId, String sessionId, Strin
interpreterGroup.setResourcePool(resourcePool);
intpEventClient.setIntpGroupId(interpreterGroupId);
- String localRepoPath = properties.get("zeppelin.interpreter.localRepo");
if (properties.containsKey("zeppelin.interpreter.output.limit")) {
InterpreterOutput.LIMIT = Integer.parseInt(
properties.get("zeppelin.interpreter.output.limit"));
}
- depLoader = new DependencyResolver(localRepoPath,
- zProperties.getProperty("zeppelin.proxy.url"),
- zProperties.getProperty("zeppelin.proxy.user"),
- zProperties.getProperty("zeppelin.proxy.password"),
- zProperties.getProperty("zeppelin.interpreter.dep.mvnRepo"));
- appLoader = new ApplicationLoader(resourcePool, depLoader);
-
resultCacheInSeconds =
Integer.parseInt(properties.getOrDefault("zeppelin.interpreter.result.cache", "0"));
}
@@ -430,23 +408,6 @@ public void open(String sessionId, String className) throws InterpreterRPCExcept
@Override
public void close(String sessionId, String className) throws InterpreterRPCException, TException {
- // unload all applications
- for (String appId : runningApplications.keySet()) {
- RunningApplication appInfo = runningApplications.get(appId);
-
- // see NoteInterpreterLoader.SHARED_SESSION
- if (appInfo.noteId.equals(sessionId) || sessionId.equals("shared_session")) {
- try {
- LOGGER.info("Unload App {} ", appInfo.pkg.getName());
- appInfo.app.unload();
- // see ApplicationState.Status.UNLOADED
- intpEventClient.onAppStatusUpdate(appInfo.noteId, appInfo.paragraphId, appId, "UNLOADED");
- } catch (ApplicationException e) {
- LOGGER.error(e.getMessage(), e);
- }
- }
- }
-
// close interpreters
if (interpreterGroup != null) {
synchronized (interpreterGroup) {
@@ -1272,144 +1233,4 @@ public void angularRegistryPush(String registryAsString) throws InterpreterRPCEx
}
}
- protected InterpreterOutput createAppOutput(final String noteId,
- final String paragraphId,
- final String appId) {
- return new InterpreterOutput(new InterpreterOutputListener() {
- @Override
- public void onUpdateAll(InterpreterOutput out) {
-
- }
-
- @Override
- public void onAppend(int index, InterpreterResultMessageOutput out, byte[] line) {
- intpEventClient.onAppOutputAppend(noteId, paragraphId, index, appId, new String(line));
- }
-
- @Override
- public void onUpdate(int index, InterpreterResultMessageOutput out) {
- try {
- intpEventClient.onAppOutputUpdate(noteId, paragraphId, index, appId,
- out.getType(), new String(out.toByteArray()));
- } catch (IOException e) {
- LOGGER.error(e.getMessage(), e);
- }
- }
- });
-
- }
-
- private ApplicationContext getApplicationContext(
- HeliumPackage packageInfo, String noteId, String paragraphId, String applicationInstanceId) {
- InterpreterOutput out = createAppOutput(noteId, paragraphId, applicationInstanceId);
- return new ApplicationContext(
- noteId,
- paragraphId,
- applicationInstanceId,
- new HeliumAppAngularObjectRegistry(angularObjectRegistry, noteId, applicationInstanceId),
- out);
- }
-
- @Override
- public RemoteApplicationResult loadApplication(
- String applicationInstanceId, String packageInfo, String noteId, String paragraphId)
- throws InterpreterRPCException, TException{
- if (runningApplications.containsKey(applicationInstanceId)) {
- LOGGER.warn("Application instance {} is already running", applicationInstanceId);
- return new RemoteApplicationResult(true, "");
- }
- HeliumPackage pkgInfo = HeliumPackage.fromJson(packageInfo);
- ApplicationContext context = getApplicationContext(
- pkgInfo, noteId, paragraphId, applicationInstanceId);
- try {
- Application app = null;
- LOGGER.info(
- "Loading application {}({}), artifact={}, className={} into note={}, paragraph={}",
- pkgInfo.getName(),
- applicationInstanceId,
- pkgInfo.getArtifact(),
- pkgInfo.getClassName(),
- noteId,
- paragraphId);
- app = appLoader.load(pkgInfo, context);
- runningApplications.put(
- applicationInstanceId,
- new RunningApplication(pkgInfo, app, noteId, paragraphId));
- return new RemoteApplicationResult(true, "");
- } catch (Exception e) {
- LOGGER.error(e.getMessage(), e);
- return new RemoteApplicationResult(false, e.getMessage());
- }
- }
-
- @Override
- public RemoteApplicationResult unloadApplication(String applicationInstanceId)
- throws InterpreterRPCException, TException{
- RunningApplication runningApplication = runningApplications.remove(applicationInstanceId);
- if (runningApplication != null) {
- try {
- LOGGER.info("Unloading application {}", applicationInstanceId);
- runningApplication.app.unload();
- } catch (ApplicationException e) {
- LOGGER.error(e.getMessage(), e);
- return new RemoteApplicationResult(false, e.getMessage());
- }
- }
- return new RemoteApplicationResult(true, "");
- }
-
- @Override
- public RemoteApplicationResult runApplication(String applicationInstanceId)
- throws InterpreterRPCException, TException{
- LOGGER.info("run application {}", applicationInstanceId);
-
- RunningApplication runningApp = runningApplications.get(applicationInstanceId);
- if (runningApp == null) {
- LOGGER.error("Application instance {} not exists", applicationInstanceId);
- return new RemoteApplicationResult(false, "Application instance does not exists");
- } else {
- ApplicationContext context = runningApp.app.context();
- try {
- context.out.clear();
- context.out.setType(InterpreterResult.Type.ANGULAR);
- ResourceSet resource = appLoader.findRequiredResourceSet(
- runningApp.pkg.getResources(),
- context.getNoteId(),
- context.getParagraphId());
- for (Resource res : resource) {
- System.err.println("Resource " + res.get());
- }
- runningApp.app.run(resource);
- context.out.flush();
- InterpreterResultMessageOutput out = context.out.getOutputAt(0);
- intpEventClient.onAppOutputUpdate(
- context.getNoteId(),
- context.getParagraphId(),
- 0,
- applicationInstanceId,
- out.getType(),
- new String(out.toByteArray()));
- return new RemoteApplicationResult(true, "");
- } catch (ApplicationException | IOException e) {
- return new RemoteApplicationResult(false, e.getMessage());
- }
- }
- }
-
- private static class RunningApplication {
- public final Application app;
- public final HeliumPackage pkg;
- public final String noteId;
- public final String paragraphId;
-
- RunningApplication(HeliumPackage pkg,
- Application app,
- String noteId,
- String paragraphId) {
- this.app = app;
- this.pkg = pkg;
- this.noteId = noteId;
- this.paragraphId = paragraphId;
- }
- }
}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/AppOutputAppendEvent.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/AppOutputAppendEvent.java
deleted file mode 100644
index 5e19d8d3154..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/AppOutputAppendEvent.java
+++ /dev/null
@@ -1,809 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Autogenerated by Thrift Compiler (0.13.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-package org.apache.zeppelin.interpreter.thrift;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-09-13")
-public class AppOutputAppendEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AppOutputAppendEvent");
-
- private static final org.apache.thrift.protocol.TField NOTE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("noteId", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final org.apache.thrift.protocol.TField PARAGRAPH_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paragraphId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField APP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("appId", org.apache.thrift.protocol.TType.STRING, (short)3);
- private static final org.apache.thrift.protocol.TField INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("index", org.apache.thrift.protocol.TType.I32, (short)4);
- private static final org.apache.thrift.protocol.TField DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("data", org.apache.thrift.protocol.TType.STRING, (short)5);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new AppOutputAppendEventStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new AppOutputAppendEventTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable java.lang.String noteId; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String paragraphId; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String appId; // required
- public int index; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String data; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- NOTE_ID((short)1, "noteId"),
- PARAGRAPH_ID((short)2, "paragraphId"),
- APP_ID((short)3, "appId"),
- INDEX((short)4, "index"),
- DATA((short)5, "data");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // NOTE_ID
- return NOTE_ID;
- case 2: // PARAGRAPH_ID
- return PARAGRAPH_ID;
- case 3: // APP_ID
- return APP_ID;
- case 4: // INDEX
- return INDEX;
- case 5: // DATA
- return DATA;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- private static final int __INDEX_ISSET_ID = 0;
- private byte __isset_bitfield = 0;
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.NOTE_ID, new org.apache.thrift.meta_data.FieldMetaData("noteId", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.PARAGRAPH_ID, new org.apache.thrift.meta_data.FieldMetaData("paragraphId", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.APP_ID, new org.apache.thrift.meta_data.FieldMetaData("appId", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.INDEX, new org.apache.thrift.meta_data.FieldMetaData("index", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
- tmpMap.put(_Fields.DATA, new org.apache.thrift.meta_data.FieldMetaData("data", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AppOutputAppendEvent.class, metaDataMap);
- }
-
- public AppOutputAppendEvent() {
- }
-
- public AppOutputAppendEvent(
- java.lang.String noteId,
- java.lang.String paragraphId,
- java.lang.String appId,
- int index,
- java.lang.String data)
- {
- this();
- this.noteId = noteId;
- this.paragraphId = paragraphId;
- this.appId = appId;
- this.index = index;
- setIndexIsSet(true);
- this.data = data;
- }
-
- /**
- * Performs a deep copy on other.
- */
- public AppOutputAppendEvent(AppOutputAppendEvent other) {
- __isset_bitfield = other.__isset_bitfield;
- if (other.isSetNoteId()) {
- this.noteId = other.noteId;
- }
- if (other.isSetParagraphId()) {
- this.paragraphId = other.paragraphId;
- }
- if (other.isSetAppId()) {
- this.appId = other.appId;
- }
- this.index = other.index;
- if (other.isSetData()) {
- this.data = other.data;
- }
- }
-
- public AppOutputAppendEvent deepCopy() {
- return new AppOutputAppendEvent(this);
- }
-
- @Override
- public void clear() {
- this.noteId = null;
- this.paragraphId = null;
- this.appId = null;
- setIndexIsSet(false);
- this.index = 0;
- this.data = null;
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getNoteId() {
- return this.noteId;
- }
-
- public AppOutputAppendEvent setNoteId(@org.apache.thrift.annotation.Nullable java.lang.String noteId) {
- this.noteId = noteId;
- return this;
- }
-
- public void unsetNoteId() {
- this.noteId = null;
- }
-
- /** Returns true if field noteId is set (has been assigned a value) and false otherwise */
- public boolean isSetNoteId() {
- return this.noteId != null;
- }
-
- public void setNoteIdIsSet(boolean value) {
- if (!value) {
- this.noteId = null;
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getParagraphId() {
- return this.paragraphId;
- }
-
- public AppOutputAppendEvent setParagraphId(@org.apache.thrift.annotation.Nullable java.lang.String paragraphId) {
- this.paragraphId = paragraphId;
- return this;
- }
-
- public void unsetParagraphId() {
- this.paragraphId = null;
- }
-
- /** Returns true if field paragraphId is set (has been assigned a value) and false otherwise */
- public boolean isSetParagraphId() {
- return this.paragraphId != null;
- }
-
- public void setParagraphIdIsSet(boolean value) {
- if (!value) {
- this.paragraphId = null;
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getAppId() {
- return this.appId;
- }
-
- public AppOutputAppendEvent setAppId(@org.apache.thrift.annotation.Nullable java.lang.String appId) {
- this.appId = appId;
- return this;
- }
-
- public void unsetAppId() {
- this.appId = null;
- }
-
- /** Returns true if field appId is set (has been assigned a value) and false otherwise */
- public boolean isSetAppId() {
- return this.appId != null;
- }
-
- public void setAppIdIsSet(boolean value) {
- if (!value) {
- this.appId = null;
- }
- }
-
- public int getIndex() {
- return this.index;
- }
-
- public AppOutputAppendEvent setIndex(int index) {
- this.index = index;
- setIndexIsSet(true);
- return this;
- }
-
- public void unsetIndex() {
- __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __INDEX_ISSET_ID);
- }
-
- /** Returns true if field index is set (has been assigned a value) and false otherwise */
- public boolean isSetIndex() {
- return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __INDEX_ISSET_ID);
- }
-
- public void setIndexIsSet(boolean value) {
- __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __INDEX_ISSET_ID, value);
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getData() {
- return this.data;
- }
-
- public AppOutputAppendEvent setData(@org.apache.thrift.annotation.Nullable java.lang.String data) {
- this.data = data;
- return this;
- }
-
- public void unsetData() {
- this.data = null;
- }
-
- /** Returns true if field data is set (has been assigned a value) and false otherwise */
- public boolean isSetData() {
- return this.data != null;
- }
-
- public void setDataIsSet(boolean value) {
- if (!value) {
- this.data = null;
- }
- }
-
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case NOTE_ID:
- if (value == null) {
- unsetNoteId();
- } else {
- setNoteId((java.lang.String)value);
- }
- break;
-
- case PARAGRAPH_ID:
- if (value == null) {
- unsetParagraphId();
- } else {
- setParagraphId((java.lang.String)value);
- }
- break;
-
- case APP_ID:
- if (value == null) {
- unsetAppId();
- } else {
- setAppId((java.lang.String)value);
- }
- break;
-
- case INDEX:
- if (value == null) {
- unsetIndex();
- } else {
- setIndex((java.lang.Integer)value);
- }
- break;
-
- case DATA:
- if (value == null) {
- unsetData();
- } else {
- setData((java.lang.String)value);
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case NOTE_ID:
- return getNoteId();
-
- case PARAGRAPH_ID:
- return getParagraphId();
-
- case APP_ID:
- return getAppId();
-
- case INDEX:
- return getIndex();
-
- case DATA:
- return getData();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case NOTE_ID:
- return isSetNoteId();
- case PARAGRAPH_ID:
- return isSetParagraphId();
- case APP_ID:
- return isSetAppId();
- case INDEX:
- return isSetIndex();
- case DATA:
- return isSetData();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that == null)
- return false;
- if (that instanceof AppOutputAppendEvent)
- return this.equals((AppOutputAppendEvent)that);
- return false;
- }
-
- public boolean equals(AppOutputAppendEvent that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_noteId = true && this.isSetNoteId();
- boolean that_present_noteId = true && that.isSetNoteId();
- if (this_present_noteId || that_present_noteId) {
- if (!(this_present_noteId && that_present_noteId))
- return false;
- if (!this.noteId.equals(that.noteId))
- return false;
- }
-
- boolean this_present_paragraphId = true && this.isSetParagraphId();
- boolean that_present_paragraphId = true && that.isSetParagraphId();
- if (this_present_paragraphId || that_present_paragraphId) {
- if (!(this_present_paragraphId && that_present_paragraphId))
- return false;
- if (!this.paragraphId.equals(that.paragraphId))
- return false;
- }
-
- boolean this_present_appId = true && this.isSetAppId();
- boolean that_present_appId = true && that.isSetAppId();
- if (this_present_appId || that_present_appId) {
- if (!(this_present_appId && that_present_appId))
- return false;
- if (!this.appId.equals(that.appId))
- return false;
- }
-
- boolean this_present_index = true;
- boolean that_present_index = true;
- if (this_present_index || that_present_index) {
- if (!(this_present_index && that_present_index))
- return false;
- if (this.index != that.index)
- return false;
- }
-
- boolean this_present_data = true && this.isSetData();
- boolean that_present_data = true && that.isSetData();
- if (this_present_data || that_present_data) {
- if (!(this_present_data && that_present_data))
- return false;
- if (!this.data.equals(that.data))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetNoteId()) ? 131071 : 524287);
- if (isSetNoteId())
- hashCode = hashCode * 8191 + noteId.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetParagraphId()) ? 131071 : 524287);
- if (isSetParagraphId())
- hashCode = hashCode * 8191 + paragraphId.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetAppId()) ? 131071 : 524287);
- if (isSetAppId())
- hashCode = hashCode * 8191 + appId.hashCode();
-
- hashCode = hashCode * 8191 + index;
-
- hashCode = hashCode * 8191 + ((isSetData()) ? 131071 : 524287);
- if (isSetData())
- hashCode = hashCode * 8191 + data.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(AppOutputAppendEvent other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.valueOf(isSetNoteId()).compareTo(other.isSetNoteId());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetNoteId()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.noteId, other.noteId);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetParagraphId()).compareTo(other.isSetParagraphId());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetParagraphId()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paragraphId, other.paragraphId);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetAppId()).compareTo(other.isSetAppId());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetAppId()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appId, other.appId);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetIndex()).compareTo(other.isSetIndex());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetIndex()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index, other.index);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetData()).compareTo(other.isSetData());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetData()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, other.data);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("AppOutputAppendEvent(");
- boolean first = true;
-
- sb.append("noteId:");
- if (this.noteId == null) {
- sb.append("null");
- } else {
- sb.append(this.noteId);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("paragraphId:");
- if (this.paragraphId == null) {
- sb.append("null");
- } else {
- sb.append(this.paragraphId);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("appId:");
- if (this.appId == null) {
- sb.append("null");
- } else {
- sb.append(this.appId);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("index:");
- sb.append(this.index);
- first = false;
- if (!first) sb.append(", ");
- sb.append("data:");
- if (this.data == null) {
- sb.append("null");
- } else {
- sb.append(this.data);
- }
- first = false;
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
- try {
- // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bitfield = 0;
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class AppOutputAppendEventStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public AppOutputAppendEventStandardScheme getScheme() {
- return new AppOutputAppendEventStandardScheme();
- }
- }
-
- private static class AppOutputAppendEventStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, AppOutputAppendEvent struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // NOTE_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.noteId = iprot.readString();
- struct.setNoteIdIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // PARAGRAPH_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.paragraphId = iprot.readString();
- struct.setParagraphIdIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 3: // APP_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.appId = iprot.readString();
- struct.setAppIdIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 4: // INDEX
- if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.index = iprot.readI32();
- struct.setIndexIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 5: // DATA
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.data = iprot.readString();
- struct.setDataIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, AppOutputAppendEvent struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.noteId != null) {
- oprot.writeFieldBegin(NOTE_ID_FIELD_DESC);
- oprot.writeString(struct.noteId);
- oprot.writeFieldEnd();
- }
- if (struct.paragraphId != null) {
- oprot.writeFieldBegin(PARAGRAPH_ID_FIELD_DESC);
- oprot.writeString(struct.paragraphId);
- oprot.writeFieldEnd();
- }
- if (struct.appId != null) {
- oprot.writeFieldBegin(APP_ID_FIELD_DESC);
- oprot.writeString(struct.appId);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldBegin(INDEX_FIELD_DESC);
- oprot.writeI32(struct.index);
- oprot.writeFieldEnd();
- if (struct.data != null) {
- oprot.writeFieldBegin(DATA_FIELD_DESC);
- oprot.writeString(struct.data);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class AppOutputAppendEventTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public AppOutputAppendEventTupleScheme getScheme() {
- return new AppOutputAppendEventTupleScheme();
- }
- }
-
- private static class AppOutputAppendEventTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, AppOutputAppendEvent struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetNoteId()) {
- optionals.set(0);
- }
- if (struct.isSetParagraphId()) {
- optionals.set(1);
- }
- if (struct.isSetAppId()) {
- optionals.set(2);
- }
- if (struct.isSetIndex()) {
- optionals.set(3);
- }
- if (struct.isSetData()) {
- optionals.set(4);
- }
- oprot.writeBitSet(optionals, 5);
- if (struct.isSetNoteId()) {
- oprot.writeString(struct.noteId);
- }
- if (struct.isSetParagraphId()) {
- oprot.writeString(struct.paragraphId);
- }
- if (struct.isSetAppId()) {
- oprot.writeString(struct.appId);
- }
- if (struct.isSetIndex()) {
- oprot.writeI32(struct.index);
- }
- if (struct.isSetData()) {
- oprot.writeString(struct.data);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, AppOutputAppendEvent struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(5);
- if (incoming.get(0)) {
- struct.noteId = iprot.readString();
- struct.setNoteIdIsSet(true);
- }
- if (incoming.get(1)) {
- struct.paragraphId = iprot.readString();
- struct.setParagraphIdIsSet(true);
- }
- if (incoming.get(2)) {
- struct.appId = iprot.readString();
- struct.setAppIdIsSet(true);
- }
- if (incoming.get(3)) {
- struct.index = iprot.readI32();
- struct.setIndexIsSet(true);
- }
- if (incoming.get(4)) {
- struct.data = iprot.readString();
- struct.setDataIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
-}
-
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/AppOutputUpdateEvent.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/AppOutputUpdateEvent.java
deleted file mode 100644
index 6890bffa66f..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/AppOutputUpdateEvent.java
+++ /dev/null
@@ -1,914 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Autogenerated by Thrift Compiler (0.13.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-package org.apache.zeppelin.interpreter.thrift;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-09-13")
-public class AppOutputUpdateEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AppOutputUpdateEvent");
-
- private static final org.apache.thrift.protocol.TField NOTE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("noteId", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final org.apache.thrift.protocol.TField PARAGRAPH_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paragraphId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField APP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("appId", org.apache.thrift.protocol.TType.STRING, (short)3);
- private static final org.apache.thrift.protocol.TField INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("index", org.apache.thrift.protocol.TType.I32, (short)4);
- private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)5);
- private static final org.apache.thrift.protocol.TField DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("data", org.apache.thrift.protocol.TType.STRING, (short)6);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new AppOutputUpdateEventStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new AppOutputUpdateEventTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable java.lang.String noteId; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String paragraphId; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String appId; // required
- public int index; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String type; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String data; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- NOTE_ID((short)1, "noteId"),
- PARAGRAPH_ID((short)2, "paragraphId"),
- APP_ID((short)3, "appId"),
- INDEX((short)4, "index"),
- TYPE((short)5, "type"),
- DATA((short)6, "data");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // NOTE_ID
- return NOTE_ID;
- case 2: // PARAGRAPH_ID
- return PARAGRAPH_ID;
- case 3: // APP_ID
- return APP_ID;
- case 4: // INDEX
- return INDEX;
- case 5: // TYPE
- return TYPE;
- case 6: // DATA
- return DATA;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- private static final int __INDEX_ISSET_ID = 0;
- private byte __isset_bitfield = 0;
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.NOTE_ID, new org.apache.thrift.meta_data.FieldMetaData("noteId", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.PARAGRAPH_ID, new org.apache.thrift.meta_data.FieldMetaData("paragraphId", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.APP_ID, new org.apache.thrift.meta_data.FieldMetaData("appId", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.INDEX, new org.apache.thrift.meta_data.FieldMetaData("index", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
- tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.DATA, new org.apache.thrift.meta_data.FieldMetaData("data", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AppOutputUpdateEvent.class, metaDataMap);
- }
-
- public AppOutputUpdateEvent() {
- }
-
- public AppOutputUpdateEvent(
- java.lang.String noteId,
- java.lang.String paragraphId,
- java.lang.String appId,
- int index,
- java.lang.String type,
- java.lang.String data)
- {
- this();
- this.noteId = noteId;
- this.paragraphId = paragraphId;
- this.appId = appId;
- this.index = index;
- setIndexIsSet(true);
- this.type = type;
- this.data = data;
- }
-
- /**
- * Performs a deep copy on other.
- */
- public AppOutputUpdateEvent(AppOutputUpdateEvent other) {
- __isset_bitfield = other.__isset_bitfield;
- if (other.isSetNoteId()) {
- this.noteId = other.noteId;
- }
- if (other.isSetParagraphId()) {
- this.paragraphId = other.paragraphId;
- }
- if (other.isSetAppId()) {
- this.appId = other.appId;
- }
- this.index = other.index;
- if (other.isSetType()) {
- this.type = other.type;
- }
- if (other.isSetData()) {
- this.data = other.data;
- }
- }
-
- public AppOutputUpdateEvent deepCopy() {
- return new AppOutputUpdateEvent(this);
- }
-
- @Override
- public void clear() {
- this.noteId = null;
- this.paragraphId = null;
- this.appId = null;
- setIndexIsSet(false);
- this.index = 0;
- this.type = null;
- this.data = null;
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getNoteId() {
- return this.noteId;
- }
-
- public AppOutputUpdateEvent setNoteId(@org.apache.thrift.annotation.Nullable java.lang.String noteId) {
- this.noteId = noteId;
- return this;
- }
-
- public void unsetNoteId() {
- this.noteId = null;
- }
-
- /** Returns true if field noteId is set (has been assigned a value) and false otherwise */
- public boolean isSetNoteId() {
- return this.noteId != null;
- }
-
- public void setNoteIdIsSet(boolean value) {
- if (!value) {
- this.noteId = null;
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getParagraphId() {
- return this.paragraphId;
- }
-
- public AppOutputUpdateEvent setParagraphId(@org.apache.thrift.annotation.Nullable java.lang.String paragraphId) {
- this.paragraphId = paragraphId;
- return this;
- }
-
- public void unsetParagraphId() {
- this.paragraphId = null;
- }
-
- /** Returns true if field paragraphId is set (has been assigned a value) and false otherwise */
- public boolean isSetParagraphId() {
- return this.paragraphId != null;
- }
-
- public void setParagraphIdIsSet(boolean value) {
- if (!value) {
- this.paragraphId = null;
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getAppId() {
- return this.appId;
- }
-
- public AppOutputUpdateEvent setAppId(@org.apache.thrift.annotation.Nullable java.lang.String appId) {
- this.appId = appId;
- return this;
- }
-
- public void unsetAppId() {
- this.appId = null;
- }
-
- /** Returns true if field appId is set (has been assigned a value) and false otherwise */
- public boolean isSetAppId() {
- return this.appId != null;
- }
-
- public void setAppIdIsSet(boolean value) {
- if (!value) {
- this.appId = null;
- }
- }
-
- public int getIndex() {
- return this.index;
- }
-
- public AppOutputUpdateEvent setIndex(int index) {
- this.index = index;
- setIndexIsSet(true);
- return this;
- }
-
- public void unsetIndex() {
- __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __INDEX_ISSET_ID);
- }
-
- /** Returns true if field index is set (has been assigned a value) and false otherwise */
- public boolean isSetIndex() {
- return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __INDEX_ISSET_ID);
- }
-
- public void setIndexIsSet(boolean value) {
- __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __INDEX_ISSET_ID, value);
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getType() {
- return this.type;
- }
-
- public AppOutputUpdateEvent setType(@org.apache.thrift.annotation.Nullable java.lang.String type) {
- this.type = type;
- return this;
- }
-
- public void unsetType() {
- this.type = null;
- }
-
- /** Returns true if field type is set (has been assigned a value) and false otherwise */
- public boolean isSetType() {
- return this.type != null;
- }
-
- public void setTypeIsSet(boolean value) {
- if (!value) {
- this.type = null;
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getData() {
- return this.data;
- }
-
- public AppOutputUpdateEvent setData(@org.apache.thrift.annotation.Nullable java.lang.String data) {
- this.data = data;
- return this;
- }
-
- public void unsetData() {
- this.data = null;
- }
-
- /** Returns true if field data is set (has been assigned a value) and false otherwise */
- public boolean isSetData() {
- return this.data != null;
- }
-
- public void setDataIsSet(boolean value) {
- if (!value) {
- this.data = null;
- }
- }
-
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case NOTE_ID:
- if (value == null) {
- unsetNoteId();
- } else {
- setNoteId((java.lang.String)value);
- }
- break;
-
- case PARAGRAPH_ID:
- if (value == null) {
- unsetParagraphId();
- } else {
- setParagraphId((java.lang.String)value);
- }
- break;
-
- case APP_ID:
- if (value == null) {
- unsetAppId();
- } else {
- setAppId((java.lang.String)value);
- }
- break;
-
- case INDEX:
- if (value == null) {
- unsetIndex();
- } else {
- setIndex((java.lang.Integer)value);
- }
- break;
-
- case TYPE:
- if (value == null) {
- unsetType();
- } else {
- setType((java.lang.String)value);
- }
- break;
-
- case DATA:
- if (value == null) {
- unsetData();
- } else {
- setData((java.lang.String)value);
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case NOTE_ID:
- return getNoteId();
-
- case PARAGRAPH_ID:
- return getParagraphId();
-
- case APP_ID:
- return getAppId();
-
- case INDEX:
- return getIndex();
-
- case TYPE:
- return getType();
-
- case DATA:
- return getData();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case NOTE_ID:
- return isSetNoteId();
- case PARAGRAPH_ID:
- return isSetParagraphId();
- case APP_ID:
- return isSetAppId();
- case INDEX:
- return isSetIndex();
- case TYPE:
- return isSetType();
- case DATA:
- return isSetData();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that == null)
- return false;
- if (that instanceof AppOutputUpdateEvent)
- return this.equals((AppOutputUpdateEvent)that);
- return false;
- }
-
- public boolean equals(AppOutputUpdateEvent that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_noteId = true && this.isSetNoteId();
- boolean that_present_noteId = true && that.isSetNoteId();
- if (this_present_noteId || that_present_noteId) {
- if (!(this_present_noteId && that_present_noteId))
- return false;
- if (!this.noteId.equals(that.noteId))
- return false;
- }
-
- boolean this_present_paragraphId = true && this.isSetParagraphId();
- boolean that_present_paragraphId = true && that.isSetParagraphId();
- if (this_present_paragraphId || that_present_paragraphId) {
- if (!(this_present_paragraphId && that_present_paragraphId))
- return false;
- if (!this.paragraphId.equals(that.paragraphId))
- return false;
- }
-
- boolean this_present_appId = true && this.isSetAppId();
- boolean that_present_appId = true && that.isSetAppId();
- if (this_present_appId || that_present_appId) {
- if (!(this_present_appId && that_present_appId))
- return false;
- if (!this.appId.equals(that.appId))
- return false;
- }
-
- boolean this_present_index = true;
- boolean that_present_index = true;
- if (this_present_index || that_present_index) {
- if (!(this_present_index && that_present_index))
- return false;
- if (this.index != that.index)
- return false;
- }
-
- boolean this_present_type = true && this.isSetType();
- boolean that_present_type = true && that.isSetType();
- if (this_present_type || that_present_type) {
- if (!(this_present_type && that_present_type))
- return false;
- if (!this.type.equals(that.type))
- return false;
- }
-
- boolean this_present_data = true && this.isSetData();
- boolean that_present_data = true && that.isSetData();
- if (this_present_data || that_present_data) {
- if (!(this_present_data && that_present_data))
- return false;
- if (!this.data.equals(that.data))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetNoteId()) ? 131071 : 524287);
- if (isSetNoteId())
- hashCode = hashCode * 8191 + noteId.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetParagraphId()) ? 131071 : 524287);
- if (isSetParagraphId())
- hashCode = hashCode * 8191 + paragraphId.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetAppId()) ? 131071 : 524287);
- if (isSetAppId())
- hashCode = hashCode * 8191 + appId.hashCode();
-
- hashCode = hashCode * 8191 + index;
-
- hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287);
- if (isSetType())
- hashCode = hashCode * 8191 + type.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetData()) ? 131071 : 524287);
- if (isSetData())
- hashCode = hashCode * 8191 + data.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(AppOutputUpdateEvent other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.valueOf(isSetNoteId()).compareTo(other.isSetNoteId());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetNoteId()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.noteId, other.noteId);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetParagraphId()).compareTo(other.isSetParagraphId());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetParagraphId()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paragraphId, other.paragraphId);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetAppId()).compareTo(other.isSetAppId());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetAppId()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appId, other.appId);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetIndex()).compareTo(other.isSetIndex());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetIndex()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index, other.index);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetType()).compareTo(other.isSetType());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetType()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetData()).compareTo(other.isSetData());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetData()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, other.data);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("AppOutputUpdateEvent(");
- boolean first = true;
-
- sb.append("noteId:");
- if (this.noteId == null) {
- sb.append("null");
- } else {
- sb.append(this.noteId);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("paragraphId:");
- if (this.paragraphId == null) {
- sb.append("null");
- } else {
- sb.append(this.paragraphId);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("appId:");
- if (this.appId == null) {
- sb.append("null");
- } else {
- sb.append(this.appId);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("index:");
- sb.append(this.index);
- first = false;
- if (!first) sb.append(", ");
- sb.append("type:");
- if (this.type == null) {
- sb.append("null");
- } else {
- sb.append(this.type);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("data:");
- if (this.data == null) {
- sb.append("null");
- } else {
- sb.append(this.data);
- }
- first = false;
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
- try {
- // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bitfield = 0;
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class AppOutputUpdateEventStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public AppOutputUpdateEventStandardScheme getScheme() {
- return new AppOutputUpdateEventStandardScheme();
- }
- }
-
- private static class AppOutputUpdateEventStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, AppOutputUpdateEvent struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // NOTE_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.noteId = iprot.readString();
- struct.setNoteIdIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // PARAGRAPH_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.paragraphId = iprot.readString();
- struct.setParagraphIdIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 3: // APP_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.appId = iprot.readString();
- struct.setAppIdIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 4: // INDEX
- if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.index = iprot.readI32();
- struct.setIndexIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 5: // TYPE
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.type = iprot.readString();
- struct.setTypeIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 6: // DATA
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.data = iprot.readString();
- struct.setDataIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, AppOutputUpdateEvent struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.noteId != null) {
- oprot.writeFieldBegin(NOTE_ID_FIELD_DESC);
- oprot.writeString(struct.noteId);
- oprot.writeFieldEnd();
- }
- if (struct.paragraphId != null) {
- oprot.writeFieldBegin(PARAGRAPH_ID_FIELD_DESC);
- oprot.writeString(struct.paragraphId);
- oprot.writeFieldEnd();
- }
- if (struct.appId != null) {
- oprot.writeFieldBegin(APP_ID_FIELD_DESC);
- oprot.writeString(struct.appId);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldBegin(INDEX_FIELD_DESC);
- oprot.writeI32(struct.index);
- oprot.writeFieldEnd();
- if (struct.type != null) {
- oprot.writeFieldBegin(TYPE_FIELD_DESC);
- oprot.writeString(struct.type);
- oprot.writeFieldEnd();
- }
- if (struct.data != null) {
- oprot.writeFieldBegin(DATA_FIELD_DESC);
- oprot.writeString(struct.data);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class AppOutputUpdateEventTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public AppOutputUpdateEventTupleScheme getScheme() {
- return new AppOutputUpdateEventTupleScheme();
- }
- }
-
- private static class AppOutputUpdateEventTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, AppOutputUpdateEvent struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetNoteId()) {
- optionals.set(0);
- }
- if (struct.isSetParagraphId()) {
- optionals.set(1);
- }
- if (struct.isSetAppId()) {
- optionals.set(2);
- }
- if (struct.isSetIndex()) {
- optionals.set(3);
- }
- if (struct.isSetType()) {
- optionals.set(4);
- }
- if (struct.isSetData()) {
- optionals.set(5);
- }
- oprot.writeBitSet(optionals, 6);
- if (struct.isSetNoteId()) {
- oprot.writeString(struct.noteId);
- }
- if (struct.isSetParagraphId()) {
- oprot.writeString(struct.paragraphId);
- }
- if (struct.isSetAppId()) {
- oprot.writeString(struct.appId);
- }
- if (struct.isSetIndex()) {
- oprot.writeI32(struct.index);
- }
- if (struct.isSetType()) {
- oprot.writeString(struct.type);
- }
- if (struct.isSetData()) {
- oprot.writeString(struct.data);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, AppOutputUpdateEvent struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(6);
- if (incoming.get(0)) {
- struct.noteId = iprot.readString();
- struct.setNoteIdIsSet(true);
- }
- if (incoming.get(1)) {
- struct.paragraphId = iprot.readString();
- struct.setParagraphIdIsSet(true);
- }
- if (incoming.get(2)) {
- struct.appId = iprot.readString();
- struct.setAppIdIsSet(true);
- }
- if (incoming.get(3)) {
- struct.index = iprot.readI32();
- struct.setIndexIsSet(true);
- }
- if (incoming.get(4)) {
- struct.type = iprot.readString();
- struct.setTypeIsSet(true);
- }
- if (incoming.get(5)) {
- struct.data = iprot.readString();
- struct.setDataIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
-}
-
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/AppStatusUpdateEvent.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/AppStatusUpdateEvent.java
deleted file mode 100644
index af9c8292725..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/AppStatusUpdateEvent.java
+++ /dev/null
@@ -1,709 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Autogenerated by Thrift Compiler (0.13.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-package org.apache.zeppelin.interpreter.thrift;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-09-13")
-public class AppStatusUpdateEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AppStatusUpdateEvent");
-
- private static final org.apache.thrift.protocol.TField NOTE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("noteId", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final org.apache.thrift.protocol.TField PARAGRAPH_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paragraphId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField APP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("appId", org.apache.thrift.protocol.TType.STRING, (short)3);
- private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRING, (short)4);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new AppStatusUpdateEventStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new AppStatusUpdateEventTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable java.lang.String noteId; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String paragraphId; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String appId; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String status; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- NOTE_ID((short)1, "noteId"),
- PARAGRAPH_ID((short)2, "paragraphId"),
- APP_ID((short)3, "appId"),
- STATUS((short)4, "status");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // NOTE_ID
- return NOTE_ID;
- case 2: // PARAGRAPH_ID
- return PARAGRAPH_ID;
- case 3: // APP_ID
- return APP_ID;
- case 4: // STATUS
- return STATUS;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.NOTE_ID, new org.apache.thrift.meta_data.FieldMetaData("noteId", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.PARAGRAPH_ID, new org.apache.thrift.meta_data.FieldMetaData("paragraphId", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.APP_ID, new org.apache.thrift.meta_data.FieldMetaData("appId", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AppStatusUpdateEvent.class, metaDataMap);
- }
-
- public AppStatusUpdateEvent() {
- }
-
- public AppStatusUpdateEvent(
- java.lang.String noteId,
- java.lang.String paragraphId,
- java.lang.String appId,
- java.lang.String status)
- {
- this();
- this.noteId = noteId;
- this.paragraphId = paragraphId;
- this.appId = appId;
- this.status = status;
- }
-
- /**
- * Performs a deep copy on other.
- */
- public AppStatusUpdateEvent(AppStatusUpdateEvent other) {
- if (other.isSetNoteId()) {
- this.noteId = other.noteId;
- }
- if (other.isSetParagraphId()) {
- this.paragraphId = other.paragraphId;
- }
- if (other.isSetAppId()) {
- this.appId = other.appId;
- }
- if (other.isSetStatus()) {
- this.status = other.status;
- }
- }
-
- public AppStatusUpdateEvent deepCopy() {
- return new AppStatusUpdateEvent(this);
- }
-
- @Override
- public void clear() {
- this.noteId = null;
- this.paragraphId = null;
- this.appId = null;
- this.status = null;
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getNoteId() {
- return this.noteId;
- }
-
- public AppStatusUpdateEvent setNoteId(@org.apache.thrift.annotation.Nullable java.lang.String noteId) {
- this.noteId = noteId;
- return this;
- }
-
- public void unsetNoteId() {
- this.noteId = null;
- }
-
- /** Returns true if field noteId is set (has been assigned a value) and false otherwise */
- public boolean isSetNoteId() {
- return this.noteId != null;
- }
-
- public void setNoteIdIsSet(boolean value) {
- if (!value) {
- this.noteId = null;
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getParagraphId() {
- return this.paragraphId;
- }
-
- public AppStatusUpdateEvent setParagraphId(@org.apache.thrift.annotation.Nullable java.lang.String paragraphId) {
- this.paragraphId = paragraphId;
- return this;
- }
-
- public void unsetParagraphId() {
- this.paragraphId = null;
- }
-
- /** Returns true if field paragraphId is set (has been assigned a value) and false otherwise */
- public boolean isSetParagraphId() {
- return this.paragraphId != null;
- }
-
- public void setParagraphIdIsSet(boolean value) {
- if (!value) {
- this.paragraphId = null;
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getAppId() {
- return this.appId;
- }
-
- public AppStatusUpdateEvent setAppId(@org.apache.thrift.annotation.Nullable java.lang.String appId) {
- this.appId = appId;
- return this;
- }
-
- public void unsetAppId() {
- this.appId = null;
- }
-
- /** Returns true if field appId is set (has been assigned a value) and false otherwise */
- public boolean isSetAppId() {
- return this.appId != null;
- }
-
- public void setAppIdIsSet(boolean value) {
- if (!value) {
- this.appId = null;
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getStatus() {
- return this.status;
- }
-
- public AppStatusUpdateEvent setStatus(@org.apache.thrift.annotation.Nullable java.lang.String status) {
- this.status = status;
- return this;
- }
-
- public void unsetStatus() {
- this.status = null;
- }
-
- /** Returns true if field status is set (has been assigned a value) and false otherwise */
- public boolean isSetStatus() {
- return this.status != null;
- }
-
- public void setStatusIsSet(boolean value) {
- if (!value) {
- this.status = null;
- }
- }
-
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case NOTE_ID:
- if (value == null) {
- unsetNoteId();
- } else {
- setNoteId((java.lang.String)value);
- }
- break;
-
- case PARAGRAPH_ID:
- if (value == null) {
- unsetParagraphId();
- } else {
- setParagraphId((java.lang.String)value);
- }
- break;
-
- case APP_ID:
- if (value == null) {
- unsetAppId();
- } else {
- setAppId((java.lang.String)value);
- }
- break;
-
- case STATUS:
- if (value == null) {
- unsetStatus();
- } else {
- setStatus((java.lang.String)value);
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case NOTE_ID:
- return getNoteId();
-
- case PARAGRAPH_ID:
- return getParagraphId();
-
- case APP_ID:
- return getAppId();
-
- case STATUS:
- return getStatus();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case NOTE_ID:
- return isSetNoteId();
- case PARAGRAPH_ID:
- return isSetParagraphId();
- case APP_ID:
- return isSetAppId();
- case STATUS:
- return isSetStatus();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that == null)
- return false;
- if (that instanceof AppStatusUpdateEvent)
- return this.equals((AppStatusUpdateEvent)that);
- return false;
- }
-
- public boolean equals(AppStatusUpdateEvent that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_noteId = true && this.isSetNoteId();
- boolean that_present_noteId = true && that.isSetNoteId();
- if (this_present_noteId || that_present_noteId) {
- if (!(this_present_noteId && that_present_noteId))
- return false;
- if (!this.noteId.equals(that.noteId))
- return false;
- }
-
- boolean this_present_paragraphId = true && this.isSetParagraphId();
- boolean that_present_paragraphId = true && that.isSetParagraphId();
- if (this_present_paragraphId || that_present_paragraphId) {
- if (!(this_present_paragraphId && that_present_paragraphId))
- return false;
- if (!this.paragraphId.equals(that.paragraphId))
- return false;
- }
-
- boolean this_present_appId = true && this.isSetAppId();
- boolean that_present_appId = true && that.isSetAppId();
- if (this_present_appId || that_present_appId) {
- if (!(this_present_appId && that_present_appId))
- return false;
- if (!this.appId.equals(that.appId))
- return false;
- }
-
- boolean this_present_status = true && this.isSetStatus();
- boolean that_present_status = true && that.isSetStatus();
- if (this_present_status || that_present_status) {
- if (!(this_present_status && that_present_status))
- return false;
- if (!this.status.equals(that.status))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetNoteId()) ? 131071 : 524287);
- if (isSetNoteId())
- hashCode = hashCode * 8191 + noteId.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetParagraphId()) ? 131071 : 524287);
- if (isSetParagraphId())
- hashCode = hashCode * 8191 + paragraphId.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetAppId()) ? 131071 : 524287);
- if (isSetAppId())
- hashCode = hashCode * 8191 + appId.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetStatus()) ? 131071 : 524287);
- if (isSetStatus())
- hashCode = hashCode * 8191 + status.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(AppStatusUpdateEvent other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.valueOf(isSetNoteId()).compareTo(other.isSetNoteId());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetNoteId()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.noteId, other.noteId);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetParagraphId()).compareTo(other.isSetParagraphId());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetParagraphId()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paragraphId, other.paragraphId);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetAppId()).compareTo(other.isSetAppId());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetAppId()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appId, other.appId);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetStatus()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("AppStatusUpdateEvent(");
- boolean first = true;
-
- sb.append("noteId:");
- if (this.noteId == null) {
- sb.append("null");
- } else {
- sb.append(this.noteId);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("paragraphId:");
- if (this.paragraphId == null) {
- sb.append("null");
- } else {
- sb.append(this.paragraphId);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("appId:");
- if (this.appId == null) {
- sb.append("null");
- } else {
- sb.append(this.appId);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("status:");
- if (this.status == null) {
- sb.append("null");
- } else {
- sb.append(this.status);
- }
- first = false;
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
- try {
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class AppStatusUpdateEventStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public AppStatusUpdateEventStandardScheme getScheme() {
- return new AppStatusUpdateEventStandardScheme();
- }
- }
-
- private static class AppStatusUpdateEventStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, AppStatusUpdateEvent struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // NOTE_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.noteId = iprot.readString();
- struct.setNoteIdIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // PARAGRAPH_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.paragraphId = iprot.readString();
- struct.setParagraphIdIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 3: // APP_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.appId = iprot.readString();
- struct.setAppIdIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 4: // STATUS
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.status = iprot.readString();
- struct.setStatusIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, AppStatusUpdateEvent struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.noteId != null) {
- oprot.writeFieldBegin(NOTE_ID_FIELD_DESC);
- oprot.writeString(struct.noteId);
- oprot.writeFieldEnd();
- }
- if (struct.paragraphId != null) {
- oprot.writeFieldBegin(PARAGRAPH_ID_FIELD_DESC);
- oprot.writeString(struct.paragraphId);
- oprot.writeFieldEnd();
- }
- if (struct.appId != null) {
- oprot.writeFieldBegin(APP_ID_FIELD_DESC);
- oprot.writeString(struct.appId);
- oprot.writeFieldEnd();
- }
- if (struct.status != null) {
- oprot.writeFieldBegin(STATUS_FIELD_DESC);
- oprot.writeString(struct.status);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class AppStatusUpdateEventTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public AppStatusUpdateEventTupleScheme getScheme() {
- return new AppStatusUpdateEventTupleScheme();
- }
- }
-
- private static class AppStatusUpdateEventTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, AppStatusUpdateEvent struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetNoteId()) {
- optionals.set(0);
- }
- if (struct.isSetParagraphId()) {
- optionals.set(1);
- }
- if (struct.isSetAppId()) {
- optionals.set(2);
- }
- if (struct.isSetStatus()) {
- optionals.set(3);
- }
- oprot.writeBitSet(optionals, 4);
- if (struct.isSetNoteId()) {
- oprot.writeString(struct.noteId);
- }
- if (struct.isSetParagraphId()) {
- oprot.writeString(struct.paragraphId);
- }
- if (struct.isSetAppId()) {
- oprot.writeString(struct.appId);
- }
- if (struct.isSetStatus()) {
- oprot.writeString(struct.status);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, AppStatusUpdateEvent struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(4);
- if (incoming.get(0)) {
- struct.noteId = iprot.readString();
- struct.setNoteIdIsSet(true);
- }
- if (incoming.get(1)) {
- struct.paragraphId = iprot.readString();
- struct.setParagraphIdIsSet(true);
- }
- if (incoming.get(2)) {
- struct.appId = iprot.readString();
- struct.setAppIdIsSet(true);
- }
- if (incoming.get(3)) {
- struct.status = iprot.readString();
- struct.setStatusIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
-}
-
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/OutputAppendEvent.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/OutputAppendEvent.java
index fbcf43da983..4b46cfdf4e1 100644
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/OutputAppendEvent.java
+++ b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/OutputAppendEvent.java
@@ -24,7 +24,7 @@
package org.apache.zeppelin.interpreter.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-09-20")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-10-21")
public class OutputAppendEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OutputAppendEvent");
@@ -32,7 +32,6 @@ public class OutputAppendEvent implements org.apache.thrift.TBase byName = new java.util.HashMap();
@@ -76,8 +73,6 @@ public static _Fields findByThriftId(int fieldId) {
return INDEX;
case 4: // DATA
return DATA;
- case 5: // APP_ID
- return APP_ID;
case 6: // EXECUTION_OWNER
return EXECUTION_OWNER;
default:
@@ -134,8 +129,6 @@ public java.lang.String getFieldName() {
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.DATA, new org.apache.thrift.meta_data.FieldMetaData("data", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.APP_ID, new org.apache.thrift.meta_data.FieldMetaData("appId", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.EXECUTION_OWNER, new org.apache.thrift.meta_data.FieldMetaData("executionOwner", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
@@ -150,7 +143,6 @@ public OutputAppendEvent(
java.lang.String paragraphId,
int index,
java.lang.String data,
- java.lang.String appId,
java.lang.String executionOwner)
{
this();
@@ -159,7 +151,6 @@ public OutputAppendEvent(
this.index = index;
setIndexIsSet(true);
this.data = data;
- this.appId = appId;
this.executionOwner = executionOwner;
}
@@ -178,9 +169,6 @@ public OutputAppendEvent(OutputAppendEvent other) {
if (other.isSetData()) {
this.data = other.data;
}
- if (other.isSetAppId()) {
- this.appId = other.appId;
- }
if (other.isSetExecutionOwner()) {
this.executionOwner = other.executionOwner;
}
@@ -197,7 +185,6 @@ public void clear() {
setIndexIsSet(false);
this.index = 0;
this.data = null;
- this.appId = null;
this.executionOwner = null;
}
@@ -299,31 +286,6 @@ public void setDataIsSet(boolean value) {
}
}
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getAppId() {
- return this.appId;
- }
-
- public OutputAppendEvent setAppId(@org.apache.thrift.annotation.Nullable java.lang.String appId) {
- this.appId = appId;
- return this;
- }
-
- public void unsetAppId() {
- this.appId = null;
- }
-
- /** Returns true if field appId is set (has been assigned a value) and false otherwise */
- public boolean isSetAppId() {
- return this.appId != null;
- }
-
- public void setAppIdIsSet(boolean value) {
- if (!value) {
- this.appId = null;
- }
- }
-
@org.apache.thrift.annotation.Nullable
public java.lang.String getExecutionOwner() {
return this.executionOwner;
@@ -383,14 +345,6 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
break;
- case APP_ID:
- if (value == null) {
- unsetAppId();
- } else {
- setAppId((java.lang.String)value);
- }
- break;
-
case EXECUTION_OWNER:
if (value == null) {
unsetExecutionOwner();
@@ -417,9 +371,6 @@ public java.lang.Object getFieldValue(_Fields field) {
case DATA:
return getData();
- case APP_ID:
- return getAppId();
-
case EXECUTION_OWNER:
return getExecutionOwner();
@@ -442,8 +393,6 @@ public boolean isSet(_Fields field) {
return isSetIndex();
case DATA:
return isSetData();
- case APP_ID:
- return isSetAppId();
case EXECUTION_OWNER:
return isSetExecutionOwner();
}
@@ -501,15 +450,6 @@ public boolean equals(OutputAppendEvent that) {
return false;
}
- boolean this_present_appId = true && this.isSetAppId();
- boolean that_present_appId = true && that.isSetAppId();
- if (this_present_appId || that_present_appId) {
- if (!(this_present_appId && that_present_appId))
- return false;
- if (!this.appId.equals(that.appId))
- return false;
- }
-
boolean this_present_executionOwner = true && this.isSetExecutionOwner();
boolean that_present_executionOwner = true && that.isSetExecutionOwner();
if (this_present_executionOwner || that_present_executionOwner) {
@@ -540,10 +480,6 @@ public int hashCode() {
if (isSetData())
hashCode = hashCode * 8191 + data.hashCode();
- hashCode = hashCode * 8191 + ((isSetAppId()) ? 131071 : 524287);
- if (isSetAppId())
- hashCode = hashCode * 8191 + appId.hashCode();
-
hashCode = hashCode * 8191 + ((isSetExecutionOwner()) ? 131071 : 524287);
if (isSetExecutionOwner())
hashCode = hashCode * 8191 + executionOwner.hashCode();
@@ -599,16 +535,6 @@ public int compareTo(OutputAppendEvent other) {
return lastComparison;
}
}
- lastComparison = java.lang.Boolean.valueOf(isSetAppId()).compareTo(other.isSetAppId());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetAppId()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appId, other.appId);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
lastComparison = java.lang.Boolean.valueOf(isSetExecutionOwner()).compareTo(other.isSetExecutionOwner());
if (lastComparison != 0) {
return lastComparison;
@@ -668,14 +594,6 @@ public java.lang.String toString() {
}
first = false;
if (!first) sb.append(", ");
- sb.append("appId:");
- if (this.appId == null) {
- sb.append("null");
- } else {
- sb.append(this.appId);
- }
- first = false;
- if (!first) sb.append(", ");
sb.append("executionOwner:");
if (this.executionOwner == null) {
sb.append("null");
@@ -760,14 +678,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, OutputAppendEvent s
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case 5: // APP_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.appId = iprot.readString();
- struct.setAppIdIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
case 6: // EXECUTION_OWNER
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.executionOwner = iprot.readString();
@@ -809,11 +719,6 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, OutputAppendEvent
oprot.writeString(struct.data);
oprot.writeFieldEnd();
}
- if (struct.appId != null) {
- oprot.writeFieldBegin(APP_ID_FIELD_DESC);
- oprot.writeString(struct.appId);
- oprot.writeFieldEnd();
- }
if (struct.executionOwner != null) {
oprot.writeFieldBegin(EXECUTION_OWNER_FIELD_DESC);
oprot.writeString(struct.executionOwner);
@@ -849,13 +754,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OutputAppendEvent s
if (struct.isSetData()) {
optionals.set(3);
}
- if (struct.isSetAppId()) {
- optionals.set(4);
- }
if (struct.isSetExecutionOwner()) {
- optionals.set(5);
+ optionals.set(4);
}
- oprot.writeBitSet(optionals, 6);
+ oprot.writeBitSet(optionals, 5);
if (struct.isSetNoteId()) {
oprot.writeString(struct.noteId);
}
@@ -868,9 +770,6 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OutputAppendEvent s
if (struct.isSetData()) {
oprot.writeString(struct.data);
}
- if (struct.isSetAppId()) {
- oprot.writeString(struct.appId);
- }
if (struct.isSetExecutionOwner()) {
oprot.writeString(struct.executionOwner);
}
@@ -879,7 +778,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OutputAppendEvent s
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, OutputAppendEvent struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(6);
+ java.util.BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
struct.noteId = iprot.readString();
struct.setNoteIdIsSet(true);
@@ -897,10 +796,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, OutputAppendEvent st
struct.setDataIsSet(true);
}
if (incoming.get(4)) {
- struct.appId = iprot.readString();
- struct.setAppIdIsSet(true);
- }
- if (incoming.get(5)) {
struct.executionOwner = iprot.readString();
struct.setExecutionOwnerIsSet(true);
}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/OutputUpdateEvent.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/OutputUpdateEvent.java
index 41b5327e5f3..fb10be25b12 100644
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/OutputUpdateEvent.java
+++ b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/OutputUpdateEvent.java
@@ -24,7 +24,7 @@
package org.apache.zeppelin.interpreter.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-09-20")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-10-21")
public class OutputUpdateEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OutputUpdateEvent");
@@ -33,7 +33,6 @@ public class OutputUpdateEvent implements org.apache.thrift.TBase byName = new java.util.HashMap();
@@ -81,8 +78,6 @@ public static _Fields findByThriftId(int fieldId) {
return TYPE;
case 5: // DATA
return DATA;
- case 6: // APP_ID
- return APP_ID;
case 7: // EXECUTION_OWNER
return EXECUTION_OWNER;
default:
@@ -141,8 +136,6 @@ public java.lang.String getFieldName() {
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.DATA, new org.apache.thrift.meta_data.FieldMetaData("data", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.APP_ID, new org.apache.thrift.meta_data.FieldMetaData("appId", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.EXECUTION_OWNER, new org.apache.thrift.meta_data.FieldMetaData("executionOwner", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
@@ -158,7 +151,6 @@ public OutputUpdateEvent(
int index,
java.lang.String type,
java.lang.String data,
- java.lang.String appId,
java.lang.String executionOwner)
{
this();
@@ -168,7 +160,6 @@ public OutputUpdateEvent(
setIndexIsSet(true);
this.type = type;
this.data = data;
- this.appId = appId;
this.executionOwner = executionOwner;
}
@@ -190,9 +181,6 @@ public OutputUpdateEvent(OutputUpdateEvent other) {
if (other.isSetData()) {
this.data = other.data;
}
- if (other.isSetAppId()) {
- this.appId = other.appId;
- }
if (other.isSetExecutionOwner()) {
this.executionOwner = other.executionOwner;
}
@@ -210,7 +198,6 @@ public void clear() {
this.index = 0;
this.type = null;
this.data = null;
- this.appId = null;
this.executionOwner = null;
}
@@ -337,31 +324,6 @@ public void setDataIsSet(boolean value) {
}
}
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getAppId() {
- return this.appId;
- }
-
- public OutputUpdateEvent setAppId(@org.apache.thrift.annotation.Nullable java.lang.String appId) {
- this.appId = appId;
- return this;
- }
-
- public void unsetAppId() {
- this.appId = null;
- }
-
- /** Returns true if field appId is set (has been assigned a value) and false otherwise */
- public boolean isSetAppId() {
- return this.appId != null;
- }
-
- public void setAppIdIsSet(boolean value) {
- if (!value) {
- this.appId = null;
- }
- }
-
@org.apache.thrift.annotation.Nullable
public java.lang.String getExecutionOwner() {
return this.executionOwner;
@@ -429,14 +391,6 @@ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable
}
break;
- case APP_ID:
- if (value == null) {
- unsetAppId();
- } else {
- setAppId((java.lang.String)value);
- }
- break;
-
case EXECUTION_OWNER:
if (value == null) {
unsetExecutionOwner();
@@ -466,9 +420,6 @@ public java.lang.Object getFieldValue(_Fields field) {
case DATA:
return getData();
- case APP_ID:
- return getAppId();
-
case EXECUTION_OWNER:
return getExecutionOwner();
@@ -493,8 +444,6 @@ public boolean isSet(_Fields field) {
return isSetType();
case DATA:
return isSetData();
- case APP_ID:
- return isSetAppId();
case EXECUTION_OWNER:
return isSetExecutionOwner();
}
@@ -561,15 +510,6 @@ public boolean equals(OutputUpdateEvent that) {
return false;
}
- boolean this_present_appId = true && this.isSetAppId();
- boolean that_present_appId = true && that.isSetAppId();
- if (this_present_appId || that_present_appId) {
- if (!(this_present_appId && that_present_appId))
- return false;
- if (!this.appId.equals(that.appId))
- return false;
- }
-
boolean this_present_executionOwner = true && this.isSetExecutionOwner();
boolean that_present_executionOwner = true && that.isSetExecutionOwner();
if (this_present_executionOwner || that_present_executionOwner) {
@@ -604,10 +544,6 @@ public int hashCode() {
if (isSetData())
hashCode = hashCode * 8191 + data.hashCode();
- hashCode = hashCode * 8191 + ((isSetAppId()) ? 131071 : 524287);
- if (isSetAppId())
- hashCode = hashCode * 8191 + appId.hashCode();
-
hashCode = hashCode * 8191 + ((isSetExecutionOwner()) ? 131071 : 524287);
if (isSetExecutionOwner())
hashCode = hashCode * 8191 + executionOwner.hashCode();
@@ -673,16 +609,6 @@ public int compareTo(OutputUpdateEvent other) {
return lastComparison;
}
}
- lastComparison = java.lang.Boolean.valueOf(isSetAppId()).compareTo(other.isSetAppId());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetAppId()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.appId, other.appId);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
lastComparison = java.lang.Boolean.valueOf(isSetExecutionOwner()).compareTo(other.isSetExecutionOwner());
if (lastComparison != 0) {
return lastComparison;
@@ -750,14 +676,6 @@ public java.lang.String toString() {
}
first = false;
if (!first) sb.append(", ");
- sb.append("appId:");
- if (this.appId == null) {
- sb.append("null");
- } else {
- sb.append(this.appId);
- }
- first = false;
- if (!first) sb.append(", ");
sb.append("executionOwner:");
if (this.executionOwner == null) {
sb.append("null");
@@ -850,14 +768,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, OutputUpdateEvent s
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
- case 6: // APP_ID
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.appId = iprot.readString();
- struct.setAppIdIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
case 7: // EXECUTION_OWNER
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.executionOwner = iprot.readString();
@@ -904,11 +814,6 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, OutputUpdateEvent
oprot.writeString(struct.data);
oprot.writeFieldEnd();
}
- if (struct.appId != null) {
- oprot.writeFieldBegin(APP_ID_FIELD_DESC);
- oprot.writeString(struct.appId);
- oprot.writeFieldEnd();
- }
if (struct.executionOwner != null) {
oprot.writeFieldBegin(EXECUTION_OWNER_FIELD_DESC);
oprot.writeString(struct.executionOwner);
@@ -947,13 +852,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OutputUpdateEvent s
if (struct.isSetData()) {
optionals.set(4);
}
- if (struct.isSetAppId()) {
- optionals.set(5);
- }
if (struct.isSetExecutionOwner()) {
- optionals.set(6);
+ optionals.set(5);
}
- oprot.writeBitSet(optionals, 7);
+ oprot.writeBitSet(optionals, 6);
if (struct.isSetNoteId()) {
oprot.writeString(struct.noteId);
}
@@ -969,9 +871,6 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OutputUpdateEvent s
if (struct.isSetData()) {
oprot.writeString(struct.data);
}
- if (struct.isSetAppId()) {
- oprot.writeString(struct.appId);
- }
if (struct.isSetExecutionOwner()) {
oprot.writeString(struct.executionOwner);
}
@@ -980,7 +879,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OutputUpdateEvent s
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, OutputUpdateEvent struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(7);
+ java.util.BitSet incoming = iprot.readBitSet(6);
if (incoming.get(0)) {
struct.noteId = iprot.readString();
struct.setNoteIdIsSet(true);
@@ -1002,10 +901,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, OutputUpdateEvent st
struct.setDataIsSet(true);
}
if (incoming.get(5)) {
- struct.appId = iprot.readString();
- struct.setAppIdIsSet(true);
- }
- if (incoming.get(6)) {
struct.executionOwner = iprot.readString();
struct.setExecutionOwnerIsSet(true);
}
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteApplicationResult.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteApplicationResult.java
deleted file mode 100644
index d3d4114eeed..00000000000
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteApplicationResult.java
+++ /dev/null
@@ -1,494 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Autogenerated by Thrift Compiler (0.13.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-package org.apache.zeppelin.interpreter.thrift;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-09-13")
-public class RemoteApplicationResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RemoteApplicationResult");
-
- private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)1);
- private static final org.apache.thrift.protocol.TField MSG_FIELD_DESC = new org.apache.thrift.protocol.TField("msg", org.apache.thrift.protocol.TType.STRING, (short)2);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new RemoteApplicationResultStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new RemoteApplicationResultTupleSchemeFactory();
-
- public boolean success; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String msg; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- SUCCESS((short)1, "success"),
- MSG((short)2, "msg");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // SUCCESS
- return SUCCESS;
- case 2: // MSG
- return MSG;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- private static final int __SUCCESS_ISSET_ID = 0;
- private byte __isset_bitfield = 0;
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
- tmpMap.put(_Fields.MSG, new org.apache.thrift.meta_data.FieldMetaData("msg", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RemoteApplicationResult.class, metaDataMap);
- }
-
- public RemoteApplicationResult() {
- }
-
- public RemoteApplicationResult(
- boolean success,
- java.lang.String msg)
- {
- this();
- this.success = success;
- setSuccessIsSet(true);
- this.msg = msg;
- }
-
- /**
- * Performs a deep copy on other.
- */
- public RemoteApplicationResult(RemoteApplicationResult other) {
- __isset_bitfield = other.__isset_bitfield;
- this.success = other.success;
- if (other.isSetMsg()) {
- this.msg = other.msg;
- }
- }
-
- public RemoteApplicationResult deepCopy() {
- return new RemoteApplicationResult(this);
- }
-
- @Override
- public void clear() {
- setSuccessIsSet(false);
- this.success = false;
- this.msg = null;
- }
-
- public boolean isSuccess() {
- return this.success;
- }
-
- public RemoteApplicationResult setSuccess(boolean success) {
- this.success = success;
- setSuccessIsSet(true);
- return this;
- }
-
- public void unsetSuccess() {
- __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
- }
-
- /** Returns true if field success is set (has been assigned a value) and false otherwise */
- public boolean isSetSuccess() {
- return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
- }
-
- public void setSuccessIsSet(boolean value) {
- __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getMsg() {
- return this.msg;
- }
-
- public RemoteApplicationResult setMsg(@org.apache.thrift.annotation.Nullable java.lang.String msg) {
- this.msg = msg;
- return this;
- }
-
- public void unsetMsg() {
- this.msg = null;
- }
-
- /** Returns true if field msg is set (has been assigned a value) and false otherwise */
- public boolean isSetMsg() {
- return this.msg != null;
- }
-
- public void setMsgIsSet(boolean value) {
- if (!value) {
- this.msg = null;
- }
- }
-
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case SUCCESS:
- if (value == null) {
- unsetSuccess();
- } else {
- setSuccess((java.lang.Boolean)value);
- }
- break;
-
- case MSG:
- if (value == null) {
- unsetMsg();
- } else {
- setMsg((java.lang.String)value);
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case SUCCESS:
- return isSuccess();
-
- case MSG:
- return getMsg();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case SUCCESS:
- return isSetSuccess();
- case MSG:
- return isSetMsg();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that == null)
- return false;
- if (that instanceof RemoteApplicationResult)
- return this.equals((RemoteApplicationResult)that);
- return false;
- }
-
- public boolean equals(RemoteApplicationResult that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_success = true;
- boolean that_present_success = true;
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (this.success != that.success)
- return false;
- }
-
- boolean this_present_msg = true && this.isSetMsg();
- boolean that_present_msg = true && that.isSetMsg();
- if (this_present_msg || that_present_msg) {
- if (!(this_present_msg && that_present_msg))
- return false;
- if (!this.msg.equals(that.msg))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((success) ? 131071 : 524287);
-
- hashCode = hashCode * 8191 + ((isSetMsg()) ? 131071 : 524287);
- if (isSetMsg())
- hashCode = hashCode * 8191 + msg.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(RemoteApplicationResult other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetSuccess()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetMsg()).compareTo(other.isSetMsg());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetMsg()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.msg, other.msg);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("RemoteApplicationResult(");
- boolean first = true;
-
- sb.append("success:");
- sb.append(this.success);
- first = false;
- if (!first) sb.append(", ");
- sb.append("msg:");
- if (this.msg == null) {
- sb.append("null");
- } else {
- sb.append(this.msg);
- }
- first = false;
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
- try {
- // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bitfield = 0;
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class RemoteApplicationResultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public RemoteApplicationResultStandardScheme getScheme() {
- return new RemoteApplicationResultStandardScheme();
- }
- }
-
- private static class RemoteApplicationResultStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, RemoteApplicationResult struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // SUCCESS
- if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
- struct.success = iprot.readBool();
- struct.setSuccessIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // MSG
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.msg = iprot.readString();
- struct.setMsgIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, RemoteApplicationResult struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
- oprot.writeBool(struct.success);
- oprot.writeFieldEnd();
- if (struct.msg != null) {
- oprot.writeFieldBegin(MSG_FIELD_DESC);
- oprot.writeString(struct.msg);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class RemoteApplicationResultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public RemoteApplicationResultTupleScheme getScheme() {
- return new RemoteApplicationResultTupleScheme();
- }
- }
-
- private static class RemoteApplicationResultTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, RemoteApplicationResult struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetSuccess()) {
- optionals.set(0);
- }
- if (struct.isSetMsg()) {
- optionals.set(1);
- }
- oprot.writeBitSet(optionals, 2);
- if (struct.isSetSuccess()) {
- oprot.writeBool(struct.success);
- }
- if (struct.isSetMsg()) {
- oprot.writeString(struct.msg);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, RemoteApplicationResult struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(2);
- if (incoming.get(0)) {
- struct.success = iprot.readBool();
- struct.setSuccessIsSet(true);
- }
- if (incoming.get(1)) {
- struct.msg = iprot.readString();
- struct.setMsgIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
-}
-
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterEventService.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterEventService.java
index 0ccd4f54227..0f307e539a2 100644
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterEventService.java
+++ b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterEventService.java
@@ -24,7 +24,7 @@
package org.apache.zeppelin.interpreter.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-09-13")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-10-21")
public class RemoteInterpreterEventService {
public interface Iface {
@@ -39,12 +39,6 @@ public interface Iface {
public void updateAllOutput(OutputUpdateAllEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
- public void appendAppOutput(AppOutputAppendEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
-
- public void updateAppOutput(AppOutputUpdateEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
-
- public void updateAppStatus(AppStatusUpdateEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
-
public void checkpointOutput(java.lang.String noteId, java.lang.String paragraphId) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
public void runParagraphs(RunParagraphsEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException;
@@ -87,12 +81,6 @@ public interface AsyncIface {
public void updateAllOutput(OutputUpdateAllEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
- public void appendAppOutput(AppOutputAppendEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void updateAppOutput(AppOutputUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void updateAppStatus(AppStatusUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
public void checkpointOutput(java.lang.String noteId, java.lang.String paragraphId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
public void runParagraphs(RunParagraphsEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
@@ -258,75 +246,6 @@ public void recv_updateAllOutput() throws org.apache.zeppelin.interpreter.thrift
return;
}
- public void appendAppOutput(AppOutputAppendEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
- {
- send_appendAppOutput(event);
- recv_appendAppOutput();
- }
-
- public void send_appendAppOutput(AppOutputAppendEvent event) throws org.apache.thrift.TException
- {
- appendAppOutput_args args = new appendAppOutput_args();
- args.setEvent(event);
- sendBase("appendAppOutput", args);
- }
-
- public void recv_appendAppOutput() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
- {
- appendAppOutput_result result = new appendAppOutput_result();
- receiveBase(result, "appendAppOutput");
- if (result.ex != null) {
- throw result.ex;
- }
- return;
- }
-
- public void updateAppOutput(AppOutputUpdateEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
- {
- send_updateAppOutput(event);
- recv_updateAppOutput();
- }
-
- public void send_updateAppOutput(AppOutputUpdateEvent event) throws org.apache.thrift.TException
- {
- updateAppOutput_args args = new updateAppOutput_args();
- args.setEvent(event);
- sendBase("updateAppOutput", args);
- }
-
- public void recv_updateAppOutput() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
- {
- updateAppOutput_result result = new updateAppOutput_result();
- receiveBase(result, "updateAppOutput");
- if (result.ex != null) {
- throw result.ex;
- }
- return;
- }
-
- public void updateAppStatus(AppStatusUpdateEvent event) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
- {
- send_updateAppStatus(event);
- recv_updateAppStatus();
- }
-
- public void send_updateAppStatus(AppStatusUpdateEvent event) throws org.apache.thrift.TException
- {
- updateAppStatus_args args = new updateAppStatus_args();
- args.setEvent(event);
- sendBase("updateAppStatus", args);
- }
-
- public void recv_updateAppStatus() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
- {
- updateAppStatus_result result = new updateAppStatus_result();
- receiveBase(result, "updateAppStatus");
- if (result.ex != null) {
- throw result.ex;
- }
- return;
- }
-
public void checkpointOutput(java.lang.String noteId, java.lang.String paragraphId) throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException
{
send_checkpointOutput(noteId, paragraphId);
@@ -851,102 +770,6 @@ public Void getResult() throws org.apache.zeppelin.interpreter.thrift.Interprete
}
}
- public void appendAppOutput(AppOutputAppendEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- appendAppOutput_call method_call = new appendAppOutput_call(event, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class appendAppOutput_call extends org.apache.thrift.async.TAsyncMethodCall {
- private AppOutputAppendEvent event;
- public appendAppOutput_call(AppOutputAppendEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.event = event;
- }
-
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("appendAppOutput", org.apache.thrift.protocol.TMessageType.CALL, 0));
- appendAppOutput_args args = new appendAppOutput_args();
- args.setEvent(event);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return null;
- }
- }
-
- public void updateAppOutput(AppOutputUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- updateAppOutput_call method_call = new updateAppOutput_call(event, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class updateAppOutput_call extends org.apache.thrift.async.TAsyncMethodCall {
- private AppOutputUpdateEvent event;
- public updateAppOutput_call(AppOutputUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.event = event;
- }
-
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAppOutput", org.apache.thrift.protocol.TMessageType.CALL, 0));
- updateAppOutput_args args = new updateAppOutput_args();
- args.setEvent(event);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return null;
- }
- }
-
- public void updateAppStatus(AppStatusUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- updateAppStatus_call method_call = new updateAppStatus_call(event, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class updateAppStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
- private AppStatusUpdateEvent event;
- public updateAppStatus_call(AppStatusUpdateEvent event, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.event = event;
- }
-
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAppStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
- updateAppStatus_args args = new updateAppStatus_args();
- args.setEvent(event);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- public Void getResult() throws org.apache.zeppelin.interpreter.thrift.InterpreterRPCException, org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return null;
- }
- }
-
public void checkpointOutput(java.lang.String noteId, java.lang.String paragraphId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
checkReady();
checkpointOutput_call method_call = new checkpointOutput_call(noteId, paragraphId, resultHandler, this, ___protocolFactory, ___transport);
@@ -1449,9 +1272,6 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction {
- public appendAppOutput() {
- super("appendAppOutput");
- }
-
- public appendAppOutput_args getEmptyArgsInstance() {
- return new appendAppOutput_args();
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- @Override
- protected boolean rethrowUnhandledExceptions() {
- return false;
- }
-
- public appendAppOutput_result getResult(I iface, appendAppOutput_args args) throws org.apache.thrift.TException {
- appendAppOutput_result result = new appendAppOutput_result();
- try {
- iface.appendAppOutput(args.event);
- } catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
- result.ex = ex;
- }
- return result;
- }
- }
-
- public static class updateAppOutput extends org.apache.thrift.ProcessFunction {
- public updateAppOutput() {
- super("updateAppOutput");
- }
-
- public updateAppOutput_args getEmptyArgsInstance() {
- return new updateAppOutput_args();
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- @Override
- protected boolean rethrowUnhandledExceptions() {
- return false;
- }
-
- public updateAppOutput_result getResult(I iface, updateAppOutput_args args) throws org.apache.thrift.TException {
- updateAppOutput_result result = new updateAppOutput_result();
- try {
- iface.updateAppOutput(args.event);
- } catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
- result.ex = ex;
- }
- return result;
- }
- }
-
- public static class updateAppStatus extends org.apache.thrift.ProcessFunction {
- public updateAppStatus() {
- super("updateAppStatus");
- }
-
- public updateAppStatus_args getEmptyArgsInstance() {
- return new updateAppStatus_args();
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- @Override
- protected boolean rethrowUnhandledExceptions() {
- return false;
- }
-
- public updateAppStatus_result getResult(I iface, updateAppStatus_args args) throws org.apache.thrift.TException {
- updateAppStatus_result result = new updateAppStatus_result();
- try {
- iface.updateAppStatus(args.event);
- } catch (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
- result.ex = ex;
- }
- return result;
- }
- }
-
public static class checkpointOutput extends org.apache.thrift.ProcessFunction {
public checkpointOutput() {
super("checkpointOutput");
@@ -2117,9 +1850,6 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction {
- public appendAppOutput() {
- super("appendAppOutput");
+ public static class checkpointOutput extends org.apache.thrift.AsyncProcessFunction {
+ public checkpointOutput() {
+ super("checkpointOutput");
}
- public appendAppOutput_args getEmptyArgsInstance() {
- return new appendAppOutput_args();
+ public checkpointOutput_args getEmptyArgsInstance() {
+ return new checkpointOutput_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
- appendAppOutput_result result = new appendAppOutput_result();
+ checkpointOutput_result result = new checkpointOutput_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
@@ -2484,7 +2214,7 @@ public void onComplete(Void o) {
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
- appendAppOutput_result result = new appendAppOutput_result();
+ checkpointOutput_result result = new checkpointOutput_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
@@ -2516,25 +2246,25 @@ protected boolean isOneway() {
return false;
}
- public void start(I iface, appendAppOutput_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- iface.appendAppOutput(args.event,resultHandler);
+ public void start(I iface, checkpointOutput_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ iface.checkpointOutput(args.noteId, args.paragraphId,resultHandler);
}
}
- public static class updateAppOutput extends org.apache.thrift.AsyncProcessFunction {
- public updateAppOutput() {
- super("updateAppOutput");
+ public static class runParagraphs extends org.apache.thrift.AsyncProcessFunction {
+ public runParagraphs() {
+ super("runParagraphs");
}
- public updateAppOutput_args getEmptyArgsInstance() {
- return new updateAppOutput_args();
+ public runParagraphs_args getEmptyArgsInstance() {
+ return new runParagraphs_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
- updateAppOutput_result result = new updateAppOutput_result();
+ runParagraphs_result result = new runParagraphs_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
@@ -2548,7 +2278,7 @@ public void onComplete(Void o) {
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
- updateAppOutput_result result = new updateAppOutput_result();
+ runParagraphs_result result = new runParagraphs_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
@@ -2580,25 +2310,25 @@ protected boolean isOneway() {
return false;
}
- public void start(I iface, updateAppOutput_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- iface.updateAppOutput(args.event,resultHandler);
+ public void start(I iface, runParagraphs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ iface.runParagraphs(args.event,resultHandler);
}
}
- public static class updateAppStatus extends org.apache.thrift.AsyncProcessFunction {
- public updateAppStatus() {
- super("updateAppStatus");
+ public static class addAngularObject extends org.apache.thrift.AsyncProcessFunction {
+ public addAngularObject() {
+ super("addAngularObject");
}
- public updateAppStatus_args getEmptyArgsInstance() {
- return new updateAppStatus_args();
+ public addAngularObject_args getEmptyArgsInstance() {
+ return new addAngularObject_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
- updateAppStatus_result result = new updateAppStatus_result();
+ addAngularObject_result result = new addAngularObject_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
@@ -2612,7 +2342,7 @@ public void onComplete(Void o) {
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
- updateAppStatus_result result = new updateAppStatus_result();
+ addAngularObject_result result = new addAngularObject_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
@@ -2644,25 +2374,25 @@ protected boolean isOneway() {
return false;
}
- public void start(I iface, updateAppStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- iface.updateAppStatus(args.event,resultHandler);
+ public void start(I iface, addAngularObject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ iface.addAngularObject(args.intpGroupId, args.json,resultHandler);
}
}
- public static class checkpointOutput extends org.apache.thrift.AsyncProcessFunction {
- public checkpointOutput() {
- super("checkpointOutput");
+ public static class updateAngularObject extends org.apache.thrift.AsyncProcessFunction {
+ public updateAngularObject() {
+ super("updateAngularObject");
}
- public checkpointOutput_args getEmptyArgsInstance() {
- return new checkpointOutput_args();
+ public updateAngularObject_args getEmptyArgsInstance() {
+ return new updateAngularObject_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
- checkpointOutput_result result = new checkpointOutput_result();
+ updateAngularObject_result result = new updateAngularObject_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
@@ -2676,7 +2406,7 @@ public void onComplete(Void o) {
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
- checkpointOutput_result result = new checkpointOutput_result();
+ updateAngularObject_result result = new updateAngularObject_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
@@ -2708,25 +2438,25 @@ protected boolean isOneway() {
return false;
}
- public void start(I iface, checkpointOutput_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- iface.checkpointOutput(args.noteId, args.paragraphId,resultHandler);
+ public void start(I iface, updateAngularObject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ iface.updateAngularObject(args.intpGroupId, args.json,resultHandler);
}
}
- public static class runParagraphs extends org.apache.thrift.AsyncProcessFunction {
- public runParagraphs() {
- super("runParagraphs");
+ public static class removeAngularObject extends org.apache.thrift.AsyncProcessFunction {
+ public removeAngularObject() {
+ super("removeAngularObject");
}
- public runParagraphs_args getEmptyArgsInstance() {
- return new runParagraphs_args();
+ public removeAngularObject_args getEmptyArgsInstance() {
+ return new removeAngularObject_args();
}
public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new org.apache.thrift.async.AsyncMethodCallback() {
public void onComplete(Void o) {
- runParagraphs_result result = new runParagraphs_result();
+ removeAngularObject_result result = new removeAngularObject_result();
try {
fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
} catch (org.apache.thrift.transport.TTransportException e) {
@@ -2740,7 +2470,7 @@ public void onComplete(Void o) {
public void onError(java.lang.Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TSerializable msg;
- runParagraphs_result result = new runParagraphs_result();
+ removeAngularObject_result result = new removeAngularObject_result();
if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
result.setExIsSet(true);
@@ -2772,206 +2502,14 @@ protected boolean isOneway() {
return false;
}
- public void start(I iface, runParagraphs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- iface.runParagraphs(args.event,resultHandler);
+ public void start(I iface, removeAngularObject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ iface.removeAngularObject(args.intpGroupId, args.noteId, args.paragraphId, args.name,resultHandler);
}
}
- public static class addAngularObject extends org.apache.thrift.AsyncProcessFunction {
- public addAngularObject() {
- super("addAngularObject");
- }
-
- public addAngularObject_args getEmptyArgsInstance() {
- return new addAngularObject_args();
- }
-
- public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
- final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new org.apache.thrift.async.AsyncMethodCallback() {
- public void onComplete(Void o) {
- addAngularObject_result result = new addAngularObject_result();
- try {
- fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- } catch (org.apache.thrift.transport.TTransportException e) {
- _LOGGER.error("TTransportException writing to internal frame buffer", e);
- fb.close();
- } catch (java.lang.Exception e) {
- _LOGGER.error("Exception writing to internal frame buffer", e);
- onError(e);
- }
- }
- public void onError(java.lang.Exception e) {
- byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TSerializable msg;
- addAngularObject_result result = new addAngularObject_result();
- if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
- result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
- result.setExIsSet(true);
- msg = result;
- } else if (e instanceof org.apache.thrift.transport.TTransportException) {
- _LOGGER.error("TTransportException inside handler", e);
- fb.close();
- return;
- } else if (e instanceof org.apache.thrift.TApplicationException) {
- _LOGGER.error("TApplicationException inside handler", e);
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TApplicationException)e;
- } else {
- _LOGGER.error("Exception inside handler", e);
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
- }
- try {
- fcall.sendResponse(fb,msg,msgType,seqid);
- } catch (java.lang.Exception ex) {
- _LOGGER.error("Exception writing to internal frame buffer", ex);
- fb.close();
- }
- }
- };
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- public void start(I iface, addAngularObject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- iface.addAngularObject(args.intpGroupId, args.json,resultHandler);
- }
- }
-
- public static class updateAngularObject extends org.apache.thrift.AsyncProcessFunction {
- public updateAngularObject() {
- super("updateAngularObject");
- }
-
- public updateAngularObject_args getEmptyArgsInstance() {
- return new updateAngularObject_args();
- }
-
- public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
- final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new org.apache.thrift.async.AsyncMethodCallback() {
- public void onComplete(Void o) {
- updateAngularObject_result result = new updateAngularObject_result();
- try {
- fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- } catch (org.apache.thrift.transport.TTransportException e) {
- _LOGGER.error("TTransportException writing to internal frame buffer", e);
- fb.close();
- } catch (java.lang.Exception e) {
- _LOGGER.error("Exception writing to internal frame buffer", e);
- onError(e);
- }
- }
- public void onError(java.lang.Exception e) {
- byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TSerializable msg;
- updateAngularObject_result result = new updateAngularObject_result();
- if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
- result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
- result.setExIsSet(true);
- msg = result;
- } else if (e instanceof org.apache.thrift.transport.TTransportException) {
- _LOGGER.error("TTransportException inside handler", e);
- fb.close();
- return;
- } else if (e instanceof org.apache.thrift.TApplicationException) {
- _LOGGER.error("TApplicationException inside handler", e);
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TApplicationException)e;
- } else {
- _LOGGER.error("Exception inside handler", e);
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
- }
- try {
- fcall.sendResponse(fb,msg,msgType,seqid);
- } catch (java.lang.Exception ex) {
- _LOGGER.error("Exception writing to internal frame buffer", ex);
- fb.close();
- }
- }
- };
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- public void start(I iface, updateAngularObject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- iface.updateAngularObject(args.intpGroupId, args.json,resultHandler);
- }
- }
-
- public static class removeAngularObject extends org.apache.thrift.AsyncProcessFunction {
- public removeAngularObject() {
- super("removeAngularObject");
- }
-
- public removeAngularObject_args getEmptyArgsInstance() {
- return new removeAngularObject_args();
- }
-
- public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
- final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new org.apache.thrift.async.AsyncMethodCallback() {
- public void onComplete(Void o) {
- removeAngularObject_result result = new removeAngularObject_result();
- try {
- fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- } catch (org.apache.thrift.transport.TTransportException e) {
- _LOGGER.error("TTransportException writing to internal frame buffer", e);
- fb.close();
- } catch (java.lang.Exception e) {
- _LOGGER.error("Exception writing to internal frame buffer", e);
- onError(e);
- }
- }
- public void onError(java.lang.Exception e) {
- byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TSerializable msg;
- removeAngularObject_result result = new removeAngularObject_result();
- if (e instanceof org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) {
- result.ex = (org.apache.zeppelin.interpreter.thrift.InterpreterRPCException) e;
- result.setExIsSet(true);
- msg = result;
- } else if (e instanceof org.apache.thrift.transport.TTransportException) {
- _LOGGER.error("TTransportException inside handler", e);
- fb.close();
- return;
- } else if (e instanceof org.apache.thrift.TApplicationException) {
- _LOGGER.error("TApplicationException inside handler", e);
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TApplicationException)e;
- } else {
- _LOGGER.error("Exception inside handler", e);
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
- }
- try {
- fcall.sendResponse(fb,msg,msgType,seqid);
- } catch (java.lang.Exception ex) {
- _LOGGER.error("Exception writing to internal frame buffer", ex);
- fb.close();
- }
- }
- };
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- public void start(I iface, removeAngularObject_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- iface.removeAngularObject(args.intpGroupId, args.noteId, args.paragraphId, args.name,resultHandler);
- }
- }
-
- public static class sendWebUrl extends org.apache.thrift.AsyncProcessFunction {
- public sendWebUrl() {
- super("sendWebUrl");
+ public static class sendWebUrl extends org.apache.thrift.AsyncProcessFunction {
+ public sendWebUrl() {
+ super("sendWebUrl");
}
public sendWebUrl_args getEmptyArgsInstance() {
@@ -7245,2229 +6783,6 @@ private static S scheme(org.apache.
}
}
- public static class appendAppOutput_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("appendAppOutput_args");
-
- private static final org.apache.thrift.protocol.TField EVENT_FIELD_DESC = new org.apache.thrift.protocol.TField("event", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new appendAppOutput_argsStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new appendAppOutput_argsTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable AppOutputAppendEvent event; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- EVENT((short)1, "event");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // EVENT
- return EVENT;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.EVENT, new org.apache.thrift.meta_data.FieldMetaData("event", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AppOutputAppendEvent.class)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(appendAppOutput_args.class, metaDataMap);
- }
-
- public appendAppOutput_args() {
- }
-
- public appendAppOutput_args(
- AppOutputAppendEvent event)
- {
- this();
- this.event = event;
- }
-
- /**
- * Performs a deep copy on other.
- */
- public appendAppOutput_args(appendAppOutput_args other) {
- if (other.isSetEvent()) {
- this.event = new AppOutputAppendEvent(other.event);
- }
- }
-
- public appendAppOutput_args deepCopy() {
- return new appendAppOutput_args(this);
- }
-
- @Override
- public void clear() {
- this.event = null;
- }
-
- @org.apache.thrift.annotation.Nullable
- public AppOutputAppendEvent getEvent() {
- return this.event;
- }
-
- public appendAppOutput_args setEvent(@org.apache.thrift.annotation.Nullable AppOutputAppendEvent event) {
- this.event = event;
- return this;
- }
-
- public void unsetEvent() {
- this.event = null;
- }
-
- /** Returns true if field event is set (has been assigned a value) and false otherwise */
- public boolean isSetEvent() {
- return this.event != null;
- }
-
- public void setEventIsSet(boolean value) {
- if (!value) {
- this.event = null;
- }
- }
-
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case EVENT:
- if (value == null) {
- unsetEvent();
- } else {
- setEvent((AppOutputAppendEvent)value);
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case EVENT:
- return getEvent();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case EVENT:
- return isSetEvent();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that == null)
- return false;
- if (that instanceof appendAppOutput_args)
- return this.equals((appendAppOutput_args)that);
- return false;
- }
-
- public boolean equals(appendAppOutput_args that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_event = true && this.isSetEvent();
- boolean that_present_event = true && that.isSetEvent();
- if (this_present_event || that_present_event) {
- if (!(this_present_event && that_present_event))
- return false;
- if (!this.event.equals(that.event))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetEvent()) ? 131071 : 524287);
- if (isSetEvent())
- hashCode = hashCode * 8191 + event.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(appendAppOutput_args other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.valueOf(isSetEvent()).compareTo(other.isSetEvent());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetEvent()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.event, other.event);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("appendAppOutput_args(");
- boolean first = true;
-
- sb.append("event:");
- if (this.event == null) {
- sb.append("null");
- } else {
- sb.append(this.event);
- }
- first = false;
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- if (event != null) {
- event.validate();
- }
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
- try {
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class appendAppOutput_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public appendAppOutput_argsStandardScheme getScheme() {
- return new appendAppOutput_argsStandardScheme();
- }
- }
-
- private static class appendAppOutput_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, appendAppOutput_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // EVENT
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.event = new AppOutputAppendEvent();
- struct.event.read(iprot);
- struct.setEventIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, appendAppOutput_args struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.event != null) {
- oprot.writeFieldBegin(EVENT_FIELD_DESC);
- struct.event.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class appendAppOutput_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public appendAppOutput_argsTupleScheme getScheme() {
- return new appendAppOutput_argsTupleScheme();
- }
- }
-
- private static class appendAppOutput_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, appendAppOutput_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetEvent()) {
- optionals.set(0);
- }
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetEvent()) {
- struct.event.write(oprot);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, appendAppOutput_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- struct.event = new AppOutputAppendEvent();
- struct.event.read(iprot);
- struct.setEventIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
- }
-
- public static class appendAppOutput_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("appendAppOutput_result");
-
- private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new appendAppOutput_resultStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new appendAppOutput_resultTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- EX((short)1, "ex");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // EX
- return EX;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.zeppelin.interpreter.thrift.InterpreterRPCException.class)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(appendAppOutput_result.class, metaDataMap);
- }
-
- public appendAppOutput_result() {
- }
-
- public appendAppOutput_result(
- org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex)
- {
- this();
- this.ex = ex;
- }
-
- /**
- * Performs a deep copy on other.
- */
- public appendAppOutput_result(appendAppOutput_result other) {
- if (other.isSetEx()) {
- this.ex = new org.apache.zeppelin.interpreter.thrift.InterpreterRPCException(other.ex);
- }
- }
-
- public appendAppOutput_result deepCopy() {
- return new appendAppOutput_result(this);
- }
-
- @Override
- public void clear() {
- this.ex = null;
- }
-
- @org.apache.thrift.annotation.Nullable
- public org.apache.zeppelin.interpreter.thrift.InterpreterRPCException getEx() {
- return this.ex;
- }
-
- public appendAppOutput_result setEx(@org.apache.thrift.annotation.Nullable org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
- this.ex = ex;
- return this;
- }
-
- public void unsetEx() {
- this.ex = null;
- }
-
- /** Returns true if field ex is set (has been assigned a value) and false otherwise */
- public boolean isSetEx() {
- return this.ex != null;
- }
-
- public void setExIsSet(boolean value) {
- if (!value) {
- this.ex = null;
- }
- }
-
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case EX:
- if (value == null) {
- unsetEx();
- } else {
- setEx((org.apache.zeppelin.interpreter.thrift.InterpreterRPCException)value);
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case EX:
- return getEx();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case EX:
- return isSetEx();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that == null)
- return false;
- if (that instanceof appendAppOutput_result)
- return this.equals((appendAppOutput_result)that);
- return false;
- }
-
- public boolean equals(appendAppOutput_result that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_ex = true && this.isSetEx();
- boolean that_present_ex = true && that.isSetEx();
- if (this_present_ex || that_present_ex) {
- if (!(this_present_ex && that_present_ex))
- return false;
- if (!this.ex.equals(that.ex))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetEx()) ? 131071 : 524287);
- if (isSetEx())
- hashCode = hashCode * 8191 + ex.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(appendAppOutput_result other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetEx()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("appendAppOutput_result(");
- boolean first = true;
-
- sb.append("ex:");
- if (this.ex == null) {
- sb.append("null");
- } else {
- sb.append(this.ex);
- }
- first = false;
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
- try {
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class appendAppOutput_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public appendAppOutput_resultStandardScheme getScheme() {
- return new appendAppOutput_resultStandardScheme();
- }
- }
-
- private static class appendAppOutput_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, appendAppOutput_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // EX
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.ex = new org.apache.zeppelin.interpreter.thrift.InterpreterRPCException();
- struct.ex.read(iprot);
- struct.setExIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, appendAppOutput_result struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.ex != null) {
- oprot.writeFieldBegin(EX_FIELD_DESC);
- struct.ex.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class appendAppOutput_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public appendAppOutput_resultTupleScheme getScheme() {
- return new appendAppOutput_resultTupleScheme();
- }
- }
-
- private static class appendAppOutput_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, appendAppOutput_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetEx()) {
- optionals.set(0);
- }
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetEx()) {
- struct.ex.write(oprot);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, appendAppOutput_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- struct.ex = new org.apache.zeppelin.interpreter.thrift.InterpreterRPCException();
- struct.ex.read(iprot);
- struct.setExIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
- }
-
- public static class updateAppOutput_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAppOutput_args");
-
- private static final org.apache.thrift.protocol.TField EVENT_FIELD_DESC = new org.apache.thrift.protocol.TField("event", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateAppOutput_argsStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateAppOutput_argsTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable AppOutputUpdateEvent event; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- EVENT((short)1, "event");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // EVENT
- return EVENT;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.EVENT, new org.apache.thrift.meta_data.FieldMetaData("event", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AppOutputUpdateEvent.class)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAppOutput_args.class, metaDataMap);
- }
-
- public updateAppOutput_args() {
- }
-
- public updateAppOutput_args(
- AppOutputUpdateEvent event)
- {
- this();
- this.event = event;
- }
-
- /**
- * Performs a deep copy on other.
- */
- public updateAppOutput_args(updateAppOutput_args other) {
- if (other.isSetEvent()) {
- this.event = new AppOutputUpdateEvent(other.event);
- }
- }
-
- public updateAppOutput_args deepCopy() {
- return new updateAppOutput_args(this);
- }
-
- @Override
- public void clear() {
- this.event = null;
- }
-
- @org.apache.thrift.annotation.Nullable
- public AppOutputUpdateEvent getEvent() {
- return this.event;
- }
-
- public updateAppOutput_args setEvent(@org.apache.thrift.annotation.Nullable AppOutputUpdateEvent event) {
- this.event = event;
- return this;
- }
-
- public void unsetEvent() {
- this.event = null;
- }
-
- /** Returns true if field event is set (has been assigned a value) and false otherwise */
- public boolean isSetEvent() {
- return this.event != null;
- }
-
- public void setEventIsSet(boolean value) {
- if (!value) {
- this.event = null;
- }
- }
-
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case EVENT:
- if (value == null) {
- unsetEvent();
- } else {
- setEvent((AppOutputUpdateEvent)value);
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case EVENT:
- return getEvent();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case EVENT:
- return isSetEvent();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that == null)
- return false;
- if (that instanceof updateAppOutput_args)
- return this.equals((updateAppOutput_args)that);
- return false;
- }
-
- public boolean equals(updateAppOutput_args that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_event = true && this.isSetEvent();
- boolean that_present_event = true && that.isSetEvent();
- if (this_present_event || that_present_event) {
- if (!(this_present_event && that_present_event))
- return false;
- if (!this.event.equals(that.event))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetEvent()) ? 131071 : 524287);
- if (isSetEvent())
- hashCode = hashCode * 8191 + event.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(updateAppOutput_args other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.valueOf(isSetEvent()).compareTo(other.isSetEvent());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetEvent()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.event, other.event);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("updateAppOutput_args(");
- boolean first = true;
-
- sb.append("event:");
- if (this.event == null) {
- sb.append("null");
- } else {
- sb.append(this.event);
- }
- first = false;
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- if (event != null) {
- event.validate();
- }
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
- try {
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class updateAppOutput_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public updateAppOutput_argsStandardScheme getScheme() {
- return new updateAppOutput_argsStandardScheme();
- }
- }
-
- private static class updateAppOutput_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, updateAppOutput_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // EVENT
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.event = new AppOutputUpdateEvent();
- struct.event.read(iprot);
- struct.setEventIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, updateAppOutput_args struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.event != null) {
- oprot.writeFieldBegin(EVENT_FIELD_DESC);
- struct.event.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class updateAppOutput_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public updateAppOutput_argsTupleScheme getScheme() {
- return new updateAppOutput_argsTupleScheme();
- }
- }
-
- private static class updateAppOutput_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, updateAppOutput_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetEvent()) {
- optionals.set(0);
- }
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetEvent()) {
- struct.event.write(oprot);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, updateAppOutput_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- struct.event = new AppOutputUpdateEvent();
- struct.event.read(iprot);
- struct.setEventIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
- }
-
- public static class updateAppOutput_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAppOutput_result");
-
- private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateAppOutput_resultStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateAppOutput_resultTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- EX((short)1, "ex");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // EX
- return EX;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.zeppelin.interpreter.thrift.InterpreterRPCException.class)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAppOutput_result.class, metaDataMap);
- }
-
- public updateAppOutput_result() {
- }
-
- public updateAppOutput_result(
- org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex)
- {
- this();
- this.ex = ex;
- }
-
- /**
- * Performs a deep copy on other.
- */
- public updateAppOutput_result(updateAppOutput_result other) {
- if (other.isSetEx()) {
- this.ex = new org.apache.zeppelin.interpreter.thrift.InterpreterRPCException(other.ex);
- }
- }
-
- public updateAppOutput_result deepCopy() {
- return new updateAppOutput_result(this);
- }
-
- @Override
- public void clear() {
- this.ex = null;
- }
-
- @org.apache.thrift.annotation.Nullable
- public org.apache.zeppelin.interpreter.thrift.InterpreterRPCException getEx() {
- return this.ex;
- }
-
- public updateAppOutput_result setEx(@org.apache.thrift.annotation.Nullable org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
- this.ex = ex;
- return this;
- }
-
- public void unsetEx() {
- this.ex = null;
- }
-
- /** Returns true if field ex is set (has been assigned a value) and false otherwise */
- public boolean isSetEx() {
- return this.ex != null;
- }
-
- public void setExIsSet(boolean value) {
- if (!value) {
- this.ex = null;
- }
- }
-
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case EX:
- if (value == null) {
- unsetEx();
- } else {
- setEx((org.apache.zeppelin.interpreter.thrift.InterpreterRPCException)value);
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case EX:
- return getEx();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case EX:
- return isSetEx();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that == null)
- return false;
- if (that instanceof updateAppOutput_result)
- return this.equals((updateAppOutput_result)that);
- return false;
- }
-
- public boolean equals(updateAppOutput_result that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_ex = true && this.isSetEx();
- boolean that_present_ex = true && that.isSetEx();
- if (this_present_ex || that_present_ex) {
- if (!(this_present_ex && that_present_ex))
- return false;
- if (!this.ex.equals(that.ex))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetEx()) ? 131071 : 524287);
- if (isSetEx())
- hashCode = hashCode * 8191 + ex.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(updateAppOutput_result other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetEx()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("updateAppOutput_result(");
- boolean first = true;
-
- sb.append("ex:");
- if (this.ex == null) {
- sb.append("null");
- } else {
- sb.append(this.ex);
- }
- first = false;
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
- try {
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class updateAppOutput_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public updateAppOutput_resultStandardScheme getScheme() {
- return new updateAppOutput_resultStandardScheme();
- }
- }
-
- private static class updateAppOutput_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, updateAppOutput_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // EX
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.ex = new org.apache.zeppelin.interpreter.thrift.InterpreterRPCException();
- struct.ex.read(iprot);
- struct.setExIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, updateAppOutput_result struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.ex != null) {
- oprot.writeFieldBegin(EX_FIELD_DESC);
- struct.ex.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class updateAppOutput_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public updateAppOutput_resultTupleScheme getScheme() {
- return new updateAppOutput_resultTupleScheme();
- }
- }
-
- private static class updateAppOutput_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, updateAppOutput_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetEx()) {
- optionals.set(0);
- }
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetEx()) {
- struct.ex.write(oprot);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, updateAppOutput_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- struct.ex = new org.apache.zeppelin.interpreter.thrift.InterpreterRPCException();
- struct.ex.read(iprot);
- struct.setExIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
- }
-
- public static class updateAppStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAppStatus_args");
-
- private static final org.apache.thrift.protocol.TField EVENT_FIELD_DESC = new org.apache.thrift.protocol.TField("event", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateAppStatus_argsStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateAppStatus_argsTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable AppStatusUpdateEvent event; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- EVENT((short)1, "event");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // EVENT
- return EVENT;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.EVENT, new org.apache.thrift.meta_data.FieldMetaData("event", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AppStatusUpdateEvent.class)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAppStatus_args.class, metaDataMap);
- }
-
- public updateAppStatus_args() {
- }
-
- public updateAppStatus_args(
- AppStatusUpdateEvent event)
- {
- this();
- this.event = event;
- }
-
- /**
- * Performs a deep copy on other.
- */
- public updateAppStatus_args(updateAppStatus_args other) {
- if (other.isSetEvent()) {
- this.event = new AppStatusUpdateEvent(other.event);
- }
- }
-
- public updateAppStatus_args deepCopy() {
- return new updateAppStatus_args(this);
- }
-
- @Override
- public void clear() {
- this.event = null;
- }
-
- @org.apache.thrift.annotation.Nullable
- public AppStatusUpdateEvent getEvent() {
- return this.event;
- }
-
- public updateAppStatus_args setEvent(@org.apache.thrift.annotation.Nullable AppStatusUpdateEvent event) {
- this.event = event;
- return this;
- }
-
- public void unsetEvent() {
- this.event = null;
- }
-
- /** Returns true if field event is set (has been assigned a value) and false otherwise */
- public boolean isSetEvent() {
- return this.event != null;
- }
-
- public void setEventIsSet(boolean value) {
- if (!value) {
- this.event = null;
- }
- }
-
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case EVENT:
- if (value == null) {
- unsetEvent();
- } else {
- setEvent((AppStatusUpdateEvent)value);
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case EVENT:
- return getEvent();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case EVENT:
- return isSetEvent();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that == null)
- return false;
- if (that instanceof updateAppStatus_args)
- return this.equals((updateAppStatus_args)that);
- return false;
- }
-
- public boolean equals(updateAppStatus_args that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_event = true && this.isSetEvent();
- boolean that_present_event = true && that.isSetEvent();
- if (this_present_event || that_present_event) {
- if (!(this_present_event && that_present_event))
- return false;
- if (!this.event.equals(that.event))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetEvent()) ? 131071 : 524287);
- if (isSetEvent())
- hashCode = hashCode * 8191 + event.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(updateAppStatus_args other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.valueOf(isSetEvent()).compareTo(other.isSetEvent());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetEvent()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.event, other.event);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("updateAppStatus_args(");
- boolean first = true;
-
- sb.append("event:");
- if (this.event == null) {
- sb.append("null");
- } else {
- sb.append(this.event);
- }
- first = false;
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- if (event != null) {
- event.validate();
- }
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
- try {
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class updateAppStatus_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public updateAppStatus_argsStandardScheme getScheme() {
- return new updateAppStatus_argsStandardScheme();
- }
- }
-
- private static class updateAppStatus_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, updateAppStatus_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // EVENT
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.event = new AppStatusUpdateEvent();
- struct.event.read(iprot);
- struct.setEventIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, updateAppStatus_args struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.event != null) {
- oprot.writeFieldBegin(EVENT_FIELD_DESC);
- struct.event.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class updateAppStatus_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public updateAppStatus_argsTupleScheme getScheme() {
- return new updateAppStatus_argsTupleScheme();
- }
- }
-
- private static class updateAppStatus_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, updateAppStatus_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetEvent()) {
- optionals.set(0);
- }
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetEvent()) {
- struct.event.write(oprot);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, updateAppStatus_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- struct.event = new AppStatusUpdateEvent();
- struct.event.read(iprot);
- struct.setEventIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
- }
-
- public static class updateAppStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAppStatus_result");
-
- private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new updateAppStatus_resultStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new updateAppStatus_resultTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- EX((short)1, "ex");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // EX
- return EX;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.zeppelin.interpreter.thrift.InterpreterRPCException.class)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAppStatus_result.class, metaDataMap);
- }
-
- public updateAppStatus_result() {
- }
-
- public updateAppStatus_result(
- org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex)
- {
- this();
- this.ex = ex;
- }
-
- /**
- * Performs a deep copy on other.
- */
- public updateAppStatus_result(updateAppStatus_result other) {
- if (other.isSetEx()) {
- this.ex = new org.apache.zeppelin.interpreter.thrift.InterpreterRPCException(other.ex);
- }
- }
-
- public updateAppStatus_result deepCopy() {
- return new updateAppStatus_result(this);
- }
-
- @Override
- public void clear() {
- this.ex = null;
- }
-
- @org.apache.thrift.annotation.Nullable
- public org.apache.zeppelin.interpreter.thrift.InterpreterRPCException getEx() {
- return this.ex;
- }
-
- public updateAppStatus_result setEx(@org.apache.thrift.annotation.Nullable org.apache.zeppelin.interpreter.thrift.InterpreterRPCException ex) {
- this.ex = ex;
- return this;
- }
-
- public void unsetEx() {
- this.ex = null;
- }
-
- /** Returns true if field ex is set (has been assigned a value) and false otherwise */
- public boolean isSetEx() {
- return this.ex != null;
- }
-
- public void setExIsSet(boolean value) {
- if (!value) {
- this.ex = null;
- }
- }
-
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case EX:
- if (value == null) {
- unsetEx();
- } else {
- setEx((org.apache.zeppelin.interpreter.thrift.InterpreterRPCException)value);
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case EX:
- return getEx();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case EX:
- return isSetEx();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that == null)
- return false;
- if (that instanceof updateAppStatus_result)
- return this.equals((updateAppStatus_result)that);
- return false;
- }
-
- public boolean equals(updateAppStatus_result that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_ex = true && this.isSetEx();
- boolean that_present_ex = true && that.isSetEx();
- if (this_present_ex || that_present_ex) {
- if (!(this_present_ex && that_present_ex))
- return false;
- if (!this.ex.equals(that.ex))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetEx()) ? 131071 : 524287);
- if (isSetEx())
- hashCode = hashCode * 8191 + ex.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(updateAppStatus_result other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetEx()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("updateAppStatus_result(");
- boolean first = true;
-
- sb.append("ex:");
- if (this.ex == null) {
- sb.append("null");
- } else {
- sb.append(this.ex);
- }
- first = false;
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
- try {
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class updateAppStatus_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public updateAppStatus_resultStandardScheme getScheme() {
- return new updateAppStatus_resultStandardScheme();
- }
- }
-
- private static class updateAppStatus_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, updateAppStatus_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 1: // EX
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.ex = new org.apache.zeppelin.interpreter.thrift.InterpreterRPCException();
- struct.ex.read(iprot);
- struct.setExIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, updateAppStatus_result struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.ex != null) {
- oprot.writeFieldBegin(EX_FIELD_DESC);
- struct.ex.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class updateAppStatus_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public updateAppStatus_resultTupleScheme getScheme() {
- return new updateAppStatus_resultTupleScheme();
- }
- }
-
- private static class updateAppStatus_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, updateAppStatus_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetEx()) {
- optionals.set(0);
- }
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetEx()) {
- struct.ex.write(oprot);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, updateAppStatus_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- struct.ex = new org.apache.zeppelin.interpreter.thrift.InterpreterRPCException();
- struct.ex.read(iprot);
- struct.setExIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
- }
-
public static class checkpointOutput_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkpointOutput_args");
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterEventType.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterEventType.java
index 5d8244ae899..8eaaa181368 100644
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterEventType.java
+++ b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterEventType.java
@@ -24,7 +24,7 @@
package org.apache.zeppelin.interpreter.thrift;
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-09-13")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-10-21")
public enum RemoteInterpreterEventType implements org.apache.thrift.TEnum {
NO_OP(1),
ANGULAR_OBJECT_ADD(2),
@@ -37,7 +37,6 @@ public enum RemoteInterpreterEventType implements org.apache.thrift.TEnum {
OUTPUT_UPDATE(9),
OUTPUT_UPDATE_ALL(10),
ANGULAR_REGISTRY_PUSH(11),
- APP_STATUS_UPDATE(12),
META_INFOS(13),
REMOTE_ZEPPELIN_SERVER_RESOURCE(14),
RESOURCE_INVOKE_METHOD(15),
@@ -85,8 +84,6 @@ public static RemoteInterpreterEventType findByValue(int value) {
return OUTPUT_UPDATE_ALL;
case 11:
return ANGULAR_REGISTRY_PUSH;
- case 12:
- return APP_STATUS_UPDATE;
case 13:
return META_INFOS;
case 14:
diff --git a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterService.java b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterService.java
index a6ad9d5f976..6f6bfc7a9a7 100644
--- a/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterService.java
+++ b/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/thrift/RemoteInterpreterService.java
@@ -24,7 +24,7 @@
package org.apache.zeppelin.interpreter.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-09-13")
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.13.0)", date = "2026-10-21")
public class RemoteInterpreterService {
public interface Iface {
@@ -69,12 +69,6 @@ public interface Iface {
public void angularRegistryPush(java.lang.String registry) throws InterpreterRPCException, org.apache.thrift.TException;
- public RemoteApplicationResult loadApplication(java.lang.String applicationInstanceId, java.lang.String packageInfo, java.lang.String sessionId, java.lang.String paragraphId) throws InterpreterRPCException, org.apache.thrift.TException;
-
- public RemoteApplicationResult unloadApplication(java.lang.String applicationInstanceId) throws InterpreterRPCException, org.apache.thrift.TException;
-
- public RemoteApplicationResult runApplication(java.lang.String applicationInstanceId) throws InterpreterRPCException, org.apache.thrift.TException;
-
}
public interface AsyncIface {
@@ -119,12 +113,6 @@ public interface AsyncIface {
public void angularRegistryPush(java.lang.String registry, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
- public void loadApplication(java.lang.String applicationInstanceId, java.lang.String packageInfo, java.lang.String sessionId, java.lang.String paragraphId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void unloadApplication(java.lang.String applicationInstanceId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void runApplication(java.lang.String applicationInstanceId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
@@ -664,87 +652,6 @@ public void recv_angularRegistryPush() throws InterpreterRPCException, org.apach
return;
}
- public RemoteApplicationResult loadApplication(java.lang.String applicationInstanceId, java.lang.String packageInfo, java.lang.String sessionId, java.lang.String paragraphId) throws InterpreterRPCException, org.apache.thrift.TException
- {
- send_loadApplication(applicationInstanceId, packageInfo, sessionId, paragraphId);
- return recv_loadApplication();
- }
-
- public void send_loadApplication(java.lang.String applicationInstanceId, java.lang.String packageInfo, java.lang.String sessionId, java.lang.String paragraphId) throws org.apache.thrift.TException
- {
- loadApplication_args args = new loadApplication_args();
- args.setApplicationInstanceId(applicationInstanceId);
- args.setPackageInfo(packageInfo);
- args.setSessionId(sessionId);
- args.setParagraphId(paragraphId);
- sendBase("loadApplication", args);
- }
-
- public RemoteApplicationResult recv_loadApplication() throws InterpreterRPCException, org.apache.thrift.TException
- {
- loadApplication_result result = new loadApplication_result();
- receiveBase(result, "loadApplication");
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.ex != null) {
- throw result.ex;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "loadApplication failed: unknown result");
- }
-
- public RemoteApplicationResult unloadApplication(java.lang.String applicationInstanceId) throws InterpreterRPCException, org.apache.thrift.TException
- {
- send_unloadApplication(applicationInstanceId);
- return recv_unloadApplication();
- }
-
- public void send_unloadApplication(java.lang.String applicationInstanceId) throws org.apache.thrift.TException
- {
- unloadApplication_args args = new unloadApplication_args();
- args.setApplicationInstanceId(applicationInstanceId);
- sendBase("unloadApplication", args);
- }
-
- public RemoteApplicationResult recv_unloadApplication() throws InterpreterRPCException, org.apache.thrift.TException
- {
- unloadApplication_result result = new unloadApplication_result();
- receiveBase(result, "unloadApplication");
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.ex != null) {
- throw result.ex;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unloadApplication failed: unknown result");
- }
-
- public RemoteApplicationResult runApplication(java.lang.String applicationInstanceId) throws InterpreterRPCException, org.apache.thrift.TException
- {
- send_runApplication(applicationInstanceId);
- return recv_runApplication();
- }
-
- public void send_runApplication(java.lang.String applicationInstanceId) throws org.apache.thrift.TException
- {
- runApplication_args args = new runApplication_args();
- args.setApplicationInstanceId(applicationInstanceId);
- sendBase("runApplication", args);
- }
-
- public RemoteApplicationResult recv_runApplication() throws InterpreterRPCException, org.apache.thrift.TException
- {
- runApplication_result result = new runApplication_result();
- receiveBase(result, "runApplication");
- if (result.isSetSuccess()) {
- return result.success;
- }
- if (result.ex != null) {
- throw result.ex;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "runApplication failed: unknown result");
- }
-
}
public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory {
@@ -1502,111 +1409,6 @@ public Void getResult() throws InterpreterRPCException, org.apache.thrift.TExcep
}
}
- public void loadApplication(java.lang.String applicationInstanceId, java.lang.String packageInfo, java.lang.String sessionId, java.lang.String paragraphId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- loadApplication_call method_call = new loadApplication_call(applicationInstanceId, packageInfo, sessionId, paragraphId, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class loadApplication_call extends org.apache.thrift.async.TAsyncMethodCall {
- private java.lang.String applicationInstanceId;
- private java.lang.String packageInfo;
- private java.lang.String sessionId;
- private java.lang.String paragraphId;
- public loadApplication_call(java.lang.String applicationInstanceId, java.lang.String packageInfo, java.lang.String sessionId, java.lang.String paragraphId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.applicationInstanceId = applicationInstanceId;
- this.packageInfo = packageInfo;
- this.sessionId = sessionId;
- this.paragraphId = paragraphId;
- }
-
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("loadApplication", org.apache.thrift.protocol.TMessageType.CALL, 0));
- loadApplication_args args = new loadApplication_args();
- args.setApplicationInstanceId(applicationInstanceId);
- args.setPackageInfo(packageInfo);
- args.setSessionId(sessionId);
- args.setParagraphId(paragraphId);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- public RemoteApplicationResult getResult() throws InterpreterRPCException, org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_loadApplication();
- }
- }
-
- public void unloadApplication(java.lang.String applicationInstanceId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- unloadApplication_call method_call = new unloadApplication_call(applicationInstanceId, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class unloadApplication_call extends org.apache.thrift.async.TAsyncMethodCall {
- private java.lang.String applicationInstanceId;
- public unloadApplication_call(java.lang.String applicationInstanceId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.applicationInstanceId = applicationInstanceId;
- }
-
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unloadApplication", org.apache.thrift.protocol.TMessageType.CALL, 0));
- unloadApplication_args args = new unloadApplication_args();
- args.setApplicationInstanceId(applicationInstanceId);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- public RemoteApplicationResult getResult() throws InterpreterRPCException, org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_unloadApplication();
- }
- }
-
- public void runApplication(java.lang.String applicationInstanceId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- runApplication_call method_call = new runApplication_call(applicationInstanceId, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class runApplication_call extends org.apache.thrift.async.TAsyncMethodCall {
- private java.lang.String applicationInstanceId;
- public runApplication_call(java.lang.String applicationInstanceId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.applicationInstanceId = applicationInstanceId;
- }
-
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runApplication", org.apache.thrift.protocol.TMessageType.CALL, 0));
- runApplication_args args = new runApplication_args();
- args.setApplicationInstanceId(applicationInstanceId);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- public RemoteApplicationResult getResult() throws InterpreterRPCException, org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_runApplication();
- }
- }
-
}
public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
@@ -1640,9 +1442,6 @@ protected Processor(I iface, java.util.Map extends org.apache.thrift.ProcessFunction {
- public loadApplication() {
- super("loadApplication");
- }
-
- public loadApplication_args getEmptyArgsInstance() {
- return new loadApplication_args();
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- @Override
- protected boolean rethrowUnhandledExceptions() {
- return false;
- }
-
- public loadApplication_result getResult(I iface, loadApplication_args args) throws org.apache.thrift.TException {
- loadApplication_result result = new loadApplication_result();
- try {
- result.success = iface.loadApplication(args.applicationInstanceId, args.packageInfo, args.sessionId, args.paragraphId);
- } catch (InterpreterRPCException ex) {
- result.ex = ex;
- }
- return result;
- }
- }
-
- public static class unloadApplication extends org.apache.thrift.ProcessFunction {
- public unloadApplication() {
- super("unloadApplication");
- }
-
- public unloadApplication_args getEmptyArgsInstance() {
- return new unloadApplication_args();
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- @Override
- protected boolean rethrowUnhandledExceptions() {
- return false;
- }
-
- public unloadApplication_result getResult(I iface, unloadApplication_args args) throws org.apache.thrift.TException {
- unloadApplication_result result = new unloadApplication_result();
- try {
- result.success = iface.unloadApplication(args.applicationInstanceId);
- } catch (InterpreterRPCException ex) {
- result.ex = ex;
- }
- return result;
- }
- }
-
- public static class runApplication extends org.apache.thrift.ProcessFunction {
- public runApplication() {
- super("runApplication");
- }
-
- public runApplication_args getEmptyArgsInstance() {
- return new runApplication_args();
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- @Override
- protected boolean rethrowUnhandledExceptions() {
- return false;
- }
-
- public runApplication_result getResult(I iface, runApplication_args args) throws org.apache.thrift.TException {
- runApplication_result result = new runApplication_result();
- try {
- result.success = iface.runApplication(args.applicationInstanceId);
- } catch (InterpreterRPCException ex) {
- result.ex = ex;
- }
- return result;
- }
- }
-
}
public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor {
@@ -2344,9 +2056,6 @@ protected AsyncProcessor(I iface, java.util.Map extends org.apache.thrift.AsyncProcessFunction {
- public loadApplication() {
- super("loadApplication");
- }
+ }
- public loadApplication_args getEmptyArgsInstance() {
- return new loadApplication_args();
- }
+ public static class createInterpreter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createInterpreter_args");
- public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
- final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new org.apache.thrift.async.AsyncMethodCallback() {
- public void onComplete(RemoteApplicationResult o) {
- loadApplication_result result = new loadApplication_result();
- result.success = o;
- try {
- fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- } catch (org.apache.thrift.transport.TTransportException e) {
- _LOGGER.error("TTransportException writing to internal frame buffer", e);
- fb.close();
- } catch (java.lang.Exception e) {
- _LOGGER.error("Exception writing to internal frame buffer", e);
- onError(e);
- }
- }
- public void onError(java.lang.Exception e) {
- byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TSerializable msg;
- loadApplication_result result = new loadApplication_result();
- if (e instanceof InterpreterRPCException) {
- result.ex = (InterpreterRPCException) e;
- result.setExIsSet(true);
- msg = result;
- } else if (e instanceof org.apache.thrift.transport.TTransportException) {
- _LOGGER.error("TTransportException inside handler", e);
- fb.close();
- return;
- } else if (e instanceof org.apache.thrift.TApplicationException) {
- _LOGGER.error("TApplicationException inside handler", e);
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TApplicationException)e;
- } else {
- _LOGGER.error("Exception inside handler", e);
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
- }
- try {
- fcall.sendResponse(fb,msg,msgType,seqid);
- } catch (java.lang.Exception ex) {
- _LOGGER.error("Exception writing to internal frame buffer", ex);
- fb.close();
- }
- }
- };
- }
+ private static final org.apache.thrift.protocol.TField INTP_GROUP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("intpGroupId", org.apache.thrift.protocol.TType.STRING, (short)1);
+ private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField CLASS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("className", org.apache.thrift.protocol.TType.STRING, (short)3);
+ private static final org.apache.thrift.protocol.TField PROPERTIES_FIELD_DESC = new org.apache.thrift.protocol.TField("properties", org.apache.thrift.protocol.TType.MAP, (short)4);
+ private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)5);
- protected boolean isOneway() {
- return false;
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createInterpreter_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createInterpreter_argsTupleSchemeFactory();
- public void start(I iface, loadApplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- iface.loadApplication(args.applicationInstanceId, args.packageInfo, args.sessionId, args.paragraphId,resultHandler);
- }
- }
+ public @org.apache.thrift.annotation.Nullable java.lang.String intpGroupId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String className; // required
+ public @org.apache.thrift.annotation.Nullable java.util.Map properties; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String userName; // required
- public static class unloadApplication extends org.apache.thrift.AsyncProcessFunction {
- public unloadApplication() {
- super("unloadApplication");
- }
-
- public unloadApplication_args getEmptyArgsInstance() {
- return new unloadApplication_args();
- }
-
- public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
- final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new org.apache.thrift.async.AsyncMethodCallback() {
- public void onComplete(RemoteApplicationResult o) {
- unloadApplication_result result = new unloadApplication_result();
- result.success = o;
- try {
- fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- } catch (org.apache.thrift.transport.TTransportException e) {
- _LOGGER.error("TTransportException writing to internal frame buffer", e);
- fb.close();
- } catch (java.lang.Exception e) {
- _LOGGER.error("Exception writing to internal frame buffer", e);
- onError(e);
- }
- }
- public void onError(java.lang.Exception e) {
- byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TSerializable msg;
- unloadApplication_result result = new unloadApplication_result();
- if (e instanceof InterpreterRPCException) {
- result.ex = (InterpreterRPCException) e;
- result.setExIsSet(true);
- msg = result;
- } else if (e instanceof org.apache.thrift.transport.TTransportException) {
- _LOGGER.error("TTransportException inside handler", e);
- fb.close();
- return;
- } else if (e instanceof org.apache.thrift.TApplicationException) {
- _LOGGER.error("TApplicationException inside handler", e);
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TApplicationException)e;
- } else {
- _LOGGER.error("Exception inside handler", e);
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
- }
- try {
- fcall.sendResponse(fb,msg,msgType,seqid);
- } catch (java.lang.Exception ex) {
- _LOGGER.error("Exception writing to internal frame buffer", ex);
- fb.close();
- }
- }
- };
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- public void start(I iface, unloadApplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- iface.unloadApplication(args.applicationInstanceId,resultHandler);
- }
- }
-
- public static class runApplication extends org.apache.thrift.AsyncProcessFunction {
- public runApplication() {
- super("runApplication");
- }
-
- public runApplication_args getEmptyArgsInstance() {
- return new runApplication_args();
- }
-
- public org.apache.thrift.async.AsyncMethodCallback getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
- final org.apache.thrift.AsyncProcessFunction fcall = this;
- return new org.apache.thrift.async.AsyncMethodCallback() {
- public void onComplete(RemoteApplicationResult o) {
- runApplication_result result = new runApplication_result();
- result.success = o;
- try {
- fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
- } catch (org.apache.thrift.transport.TTransportException e) {
- _LOGGER.error("TTransportException writing to internal frame buffer", e);
- fb.close();
- } catch (java.lang.Exception e) {
- _LOGGER.error("Exception writing to internal frame buffer", e);
- onError(e);
- }
- }
- public void onError(java.lang.Exception e) {
- byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
- org.apache.thrift.TSerializable msg;
- runApplication_result result = new runApplication_result();
- if (e instanceof InterpreterRPCException) {
- result.ex = (InterpreterRPCException) e;
- result.setExIsSet(true);
- msg = result;
- } else if (e instanceof org.apache.thrift.transport.TTransportException) {
- _LOGGER.error("TTransportException inside handler", e);
- fb.close();
- return;
- } else if (e instanceof org.apache.thrift.TApplicationException) {
- _LOGGER.error("TApplicationException inside handler", e);
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = (org.apache.thrift.TApplicationException)e;
- } else {
- _LOGGER.error("Exception inside handler", e);
- msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
- msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
- }
- try {
- fcall.sendResponse(fb,msg,msgType,seqid);
- } catch (java.lang.Exception ex) {
- _LOGGER.error("Exception writing to internal frame buffer", ex);
- fb.close();
- }
- }
- };
- }
-
- protected boolean isOneway() {
- return false;
- }
-
- public void start(I iface, runApplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- iface.runApplication(args.applicationInstanceId,resultHandler);
- }
- }
-
- }
-
- public static class createInterpreter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createInterpreter_args");
-
- private static final org.apache.thrift.protocol.TField INTP_GROUP_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("intpGroupId", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)2);
- private static final org.apache.thrift.protocol.TField CLASS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("className", org.apache.thrift.protocol.TType.STRING, (short)3);
- private static final org.apache.thrift.protocol.TField PROPERTIES_FIELD_DESC = new org.apache.thrift.protocol.TField("properties", org.apache.thrift.protocol.TType.MAP, (short)4);
- private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)5);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new createInterpreter_argsStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new createInterpreter_argsTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable java.lang.String intpGroupId; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String sessionId; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String className; // required
- public @org.apache.thrift.annotation.Nullable java.util.Map properties; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String userName; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- INTP_GROUP_ID((short)1, "intpGroupId"),
- SESSION_ID((short)2, "sessionId"),
- CLASS_NAME((short)3, "className"),
- PROPERTIES((short)4, "properties"),
- USER_NAME((short)5, "userName");
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ INTP_GROUP_ID((short)1, "intpGroupId"),
+ SESSION_ID((short)2, "sessionId"),
+ CLASS_NAME((short)3, "className"),
+ PROPERTIES((short)4, "properties"),
+ USER_NAME((short)5, "userName");
private static final java.util.Map byName = new java.util.HashMap();
@@ -23077,2857 +22591,4 @@ private static S scheme(org.apache.
}
}
- public static class loadApplication_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable