forked from apache/hop
-
Notifications
You must be signed in to change notification settings - Fork 2
/
HopExtensionPoint.java
171 lines (138 loc) · 8.46 KB
/
HopExtensionPoint.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/*
* 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.hop.core.extension;
public enum HopExtensionPoint {
HopGuiInit("HopGui before the shell is created"),
HopGuiStart("HopGui has started"),
HopGuiEnd("HopGui is about to shut down"),
OpenRecent("A recent file is opened"),
PipelinePrepareExecution("A Pipeline begins to prepare execution"),
PipelineStartThreads("A Pipeline begins to start"),
PipelineStart("A Pipeline has started"),
PipelineHeartbeat(
"A signal sent at regular intervals to indicate that the Pipeline is still active"),
PipelineFinish("A Pipeline finishes"),
PipelineCompleted("A pipeline has completed after all finished listeners were fired"),
PipelineMetaLoaded("Pipeline metadata was loaded"),
PipelinePainterStart("Draw Pipeline or plugin metadata at the start (below the rest)"),
PipelinePainterTransform("Draw additional information on top of a Pipeline transform icon"),
PipelinePainterArrow("Draw additional information on top of a Pipeline hop (arrow)"),
PipelinePainterEnd("Draw Pipeline or plugin metadata at the end (on top of all the rest)"),
PipelineGraphMouseDown("A mouse down event occurred on the canvas"),
PipelineGraphMouseUp("A mouse up event occurred on the canvas"),
PipelineAfterOpen("A Pipeline file was opened (PipelineMeta)"),
PipelineBeforeSave("A Pipeline file is about to be saved (PipelineMeta)"),
PipelineAfterSave("A Pipeline file was saved (PipelineMeta)"),
PipelineBeforeClose("A Pipeline file is about to be closed"),
PipelineAfterClose("A Pipeline file was closed"),
PipelineChanged("A Pipeline has been changed"),
PipelineTransformRightClick("A right button was clicked on a transform"),
PipelineGraphMouseMoved("The mouse was moved on the canvas"),
PipelineGraphMouseDoubleClick("A left or right button was double-clicked in a Pipeline"),
PipelineBeforeDeleteTransforms("Pipeline transforms about to be deleted"),
HopGuiPipelineMetaExecutionStart("Hop GUI initiates the execution of a pipeline (PipelineMeta)"),
HopGuiPipelineExecutionConfiguration(
"Right before Hop UI configuration of Pipeline to be executed takes place"),
HopGuiPipelineBeforeStart("Right before the Pipeline is started (Pipeline)"),
HopGuiWorkflowBeforeStart("Right before the workflow is started"),
RunConfigurationSelection("Check when run configuration is selected"),
RunConfigurationIsRemote("Check when run configuration is pointing to a remote server"),
HopGuiRunConfiguration("Send the run configuration"),
WorkflowStart("A workflow starts"),
WorkflowFinish("A workflow finishes"),
WorkflowBeforeActionExecution("Before a action executes"),
WorkflowAfterActionExecution("After a action executes"),
WorkflowBeginProcessing("Start of a workflow at the end of the log table handling"),
WorkflowPainterStart("Draw workflow or plugin metadata at the start (below the rest)"),
WorkflowPainterAction("Draw additional information on top of a action copy icon"),
WorkflowPainterArrow("Draw additional information on top of a workflow hop (arrow)"),
WorkflowPainterEnd("Draw workflow or plugin metadata at the end (on top of all the rest)"),
WorkflowGraphMouseDown("A left or right button was clicked in a workflow"),
WorkflowGraphMouseUp("A mouse up event occurred on the workflow canvas"),
WorkflowBeforeOpen("A workflow file is about to be opened"),
WorkflowAfterOpen("A workflow file was opened"),
WorkflowBeforeSave("A workflow file is about to be saved"),
WorkflowAfterSave("A workflow file was saved"),
WorkflowBeforeClose("A workflow file is about to be closed"),
WorkflowAfterClose("A workflow file was closed"),
WorkflowChanged("A workflow has been changed"),
WorkflowGraphMouseDoubleClick("A left or right button was double-clicked in a workflow"),
WorkflowDialogShowRetrieveLogTableFields(
"Show or retrieve the contents of the fields of a log channel on the log channel composite"),
WorkflowMetaLoaded("Workflow metadata was loaded"),
HopGuiWorkflowMetaExecutionStart("Hop UI initiates the execution of a workflow (WorkflowMeta)"),
HopGuiWorkflowExecutionConfiguration(
"Right before Hop UI configuration of workflow to be executed takes place"),
DatabaseCreated("A database connection was created"),
DatabaseConnected("A connection to a database was made"),
DatabaseDisconnected("A connection to a database was terminated"),
TransformBeforeInitialize("Right before a transform is about to be initialized"),
TransformAfterInitialize("After a transform is initialized"),
TransformBeforeStart("Right before a transform is about to be started"),
TransformFinished("After a transform has finished"),
BeforeCheckTransforms("Right before a set of transforms is about to be verified."),
AfterCheckTransforms("After a set of transforms has been checked for warnings/errors."),
BeforeCheckTransform("Right before a transform is about to be verified."),
AfterCheckTransform("After a transform has been checked for warnings/errors."),
HopServerInit("Right before the Hop webserver starts"),
HopServerStartup("Right after the Hop webserver has started and is fully functional"),
HopServerShutdown("Right before the Hop webserver will shut down"),
HopServerCalculateFilename(
"Right after the server configuration filename is determined, before it is used"),
HopGuiFileOpenDialog(
"Allows you to modify the file dialog before it's shown. If you want to show your own, set doIt to false ("),
HopGuiNewPipelineTab("Determine the tab name of a pipeline (HopGuiPipelineGraph)"),
HopGuiNewWorkflowTab("Determine the tab name of a workflow (HopGuiJobGraph)"),
HopGuiMetadataObjectCreateBeforeDialog(
"A new metadata object is created. Before showing the dialog"),
HopGuiMetadataObjectCreated("A new metadata object is created"),
HopGuiMetadataObjectUpdated("A metadata object is updated"),
HopGuiMetadataObjectDeleted("A metadata object is deleted"),
HopGuiGetSearchablesLocations("Get a list of searchables locations (List<ISearchablesLocation>)"),
HopGuiPipelineGraphAreaHover(
"Mouse is hovering over a drawn area in a pipeline graph (HopGuiTooltipExtension)"),
HopGuiWorkflowGraphAreaHover(
"Mouse is hovering over a drawn area in a workflow graph (HopGuiTooltipExtension)"),
HopRunCalculateFilename("Right after the filename is determined, before it is used in any way"),
HopRunStart("At the start of the HopRun command line, before loading metadata execution"),
HopRunEnd("At the end of the HopRun command line execution"),
HopGuiPipelineAfterClose("Called after a pipeline is closed in the Hop GUI (PipelineMeta)"),
HopGuiWorkflowAfterClose("Called after a workflow is closed in the Hop GUI (WorkflowMeta)"),
GetFieldsExtension("Get Fields dialog"),
HopEnvironmentAfterInit(
"Called after HopEnvironment.init() was called. It allows you to add your own plugins and so on at this time."),
HopGuiProjectAfterEnabled("Called after a project is enabled in Hop GUI"),
HopGuiGetControlSpaceSortOrderPrefix(
"Gets a prefix to steer the sort order of variables when using CTRL-SPACE. Defaults range from 900_ to 400_. Set prefixes in Map<String,String>"),
HopImportStart("Executed at the start of the 'hop-import' command line tool"),
HopImportEnd("Executed at the end of the 'hop-import' command line tool"),
HopRestServiceStart("Called during Hop REST services startup"),
;
public String id;
private String description;
private Class<?> providedClass;
HopExtensionPoint(String description) {
this.id = name();
this.description = description;
this.providedClass = Object.class;
}
HopExtensionPoint(String id, String description, Class<?> providedClass) {
this.id = id;
this.description = description;
this.providedClass = providedClass;
}
}