Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master merge scheduler plugin #5491

Merged
merged 116 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
e0d270d
[BACKLOG-37772] Scheduler plugin POC code changes.
Jun 26, 2023
bd2e838
Moving scheduling code into a plugin
rmansoor Jul 12, 2023
41b21a6
Getting the user-console module to a compiling state.
e-cuellar Jul 18, 2023
a9bc7c7
Merge pull request #5347 from e-cuellar/DEV-scheduler-plugin
rmansoor Jul 18, 2023
7849502
[BACKLOG-38035] SCHEDULER - moving the scheduler UI into the new sche…
e-cuellar Jul 26, 2023
3b476bb
Merge pull request #5364 from e-cuellar/DEV-JS-scheduler-plugin
wseyler Aug 3, 2023
d721d74
[BACKLOG-38225] SCHEDULER - Make scheduler-plugin/UI basic functional…
e-cuellar Aug 4, 2023
940c25c
BACKLOG-38036 - WIP move scheduler to plugin
wseyler Aug 20, 2023
d6039c9
Merge pull request #5373 from e-cuellar/BACKLOG-38225
e-cuellar Aug 28, 2023
78421e8
[BACKLOG-37772] Scheduler plugin POC code changes.
Jun 26, 2023
92dccb8
Moving scheduling code into a plugin
rmansoor Jul 12, 2023
4047ea1
Getting the user-console module to a compiling state.
e-cuellar Jul 18, 2023
f8c10c8
[BACKLOG-38035] SCHEDULER - moving the scheduler UI into the new sche…
e-cuellar Jul 26, 2023
b044f17
[BACKLOG-38225] SCHEDULER - Make scheduler-plugin/UI basic functional…
e-cuellar Aug 4, 2023
b58aa25
[BACKLOG-38225] SCHEDULER - Make scheduler-plugin/UI basic functional…
e-cuellar Aug 29, 2023
ca98723
Merge branch 'scheduler-plugin' into 10.1.0.0
e-cuellar Aug 29, 2023
8d1de20
Merge pull request #5374 from e-cuellar/10.1.0.0
wseyler Aug 29, 2023
c9a22b1
[BACKLOG-38225] SCHEDULER - Make scheduler-plugin/UI basic functional…
e-cuellar Aug 29, 2023
6429fa4
Merge pull request #5375 from e-cuellar/scheduler-plugin
wseyler Aug 29, 2023
c9f92ea
Merge branch 'scheduler-plugin' of github.com:pentaho/pentaho-platfor…
wseyler Aug 29, 2023
9c7f4b0
[BACKLOG-38225] SCHEDULER - Make scheduler-plugin/UI basic functional…
e-cuellar Aug 30, 2023
e593316
[BACKLOG-38036] - Fixed problems with plugin startup. (+1 squashed co…
wseyler Aug 30, 2023
044bbec
Merge pull request #5378 from e-cuellar/BACKLOG-38225
wseyler Sep 5, 2023
7822a78
Merge branch 'scheduler-plugin' of github.com:pentaho/pentaho-platfor…
wseyler Sep 5, 2023
68c0fea
Merge pull request #5379 from wseyler/scheduler-plugin
e-cuellar Sep 6, 2023
2f92abe
BACKLOG-38036 - Moved classes to fix circular dependency problem betw…
wseyler Sep 7, 2023
b189aa3
Merge pull request #5381 from wseyler/scheduler-plugin
e-cuellar Sep 7, 2023
570ff10
BACKLOG-38036 - Refactor of SchedulerResource
wseyler Sep 7, 2023
3767ec0
Merge pull request #5382 from wseyler/scheduler-plugin
e-cuellar Sep 7, 2023
23cab95
BACKLOG-38036 - Refactor of SchedulerResource
wseyler Sep 7, 2023
a0c2911
BACKLOG-38036 - Working checkpoint of scheduler plugin. SchedulerRes…
wseyler Sep 12, 2023
327f3ad
BACKLOG-38036 - Moved SchedulerResource out of pentaho-platform.
wseyler Sep 13, 2023
d8495b1
Merge branch 'scheduler-plugin' of github.com:pentaho/pentaho-platfor…
wseyler Sep 14, 2023
0e86707
Merge pull request #5386 from wseyler/Checkpoint1
e-cuellar Sep 14, 2023
8d67aa2
BACKLOG-38036 - Fixed Issues with Cron an Simple Triggers
wseyler Sep 17, 2023
2bda6d5
Merge pull request #5388 from wseyler/Checkpoint1
e-cuellar Sep 18, 2023
9ffc9cd
[BACKLOG-38225] SCHEDULER - Make scheduler-plugin/UI basic functional…
e-cuellar Sep 18, 2023
d8e44c6
Merge pull request #5390 from e-cuellar/DEV
wseyler Sep 18, 2023
2d71545
[BACKLOG-38225] SCHEDULER - Fix for the ExportManifest throwing a "JA…
e-cuellar Sep 21, 2023
21c8236
BACKLOG-38036 - Additional code to deal with class loading issues and…
wseyler Sep 23, 2023
2a28475
Merge pull request #5394 from wseyler/Checkpoint1
e-cuellar Sep 25, 2023
0cef868
[BACKLOG-38225] Fix scheduler request import/export
e-cuellar Sep 25, 2023
a90c7c5
Merge pull request #5396 from e-cuellar/DEV
wseyler Sep 26, 2023
7675e4a
BACKLOG-38036 - Seperate JobState
wseyler Sep 26, 2023
23af26e
Merge branch 'scheduler-plugin' of github.com:pentaho/pentaho-platfor…
wseyler Sep 26, 2023
1029c34
BACKLOG-38036 -More code to deal with class loading issues and fixed …
wseyler Sep 27, 2023
2ff8072
Merge pull request #5397 from wseyler/Checkpoint1
e-cuellar Sep 27, 2023
c8503e7
[BACKLOG-38225] Fix BISERVER was throwing a javascript error when sta…
e-cuellar Sep 27, 2023
68ac169
Merge pull request #5398 from e-cuellar/DEV
wseyler Sep 27, 2023
727bbba
BACKLOG-38036 - Removed references to the quartz library and supporti…
wseyler Sep 27, 2023
ea20c64
Merge pull request #5399 from wseyler/Checkpoint1
e-cuellar Sep 27, 2023
8634357
[BACKLOG-38227] SCHEDULER - Make ALL scheduler-plugin unit tests work…
e-cuellar Oct 3, 2023
aed4316
Merge pull request #5404 from e-cuellar/DEV
wseyler Oct 5, 2023
2ff8211
[BACKLOG-37897] - Update of pentaho.xml to support email sources
wseyler Oct 15, 2023
f4eeb53
Merge pull request #5409 from wseyler/scheduler-plugin
e-cuellar Oct 16, 2023
9bcdc7c
Merge branch 'master' of github.com:pentaho/pentaho-platform into sch…
wseyler Oct 16, 2023
a247867
Merge branch 'scheduler-plugin' of github.com:pentaho/pentaho-platfor…
wseyler Oct 16, 2023
59590b4
Merge pull request #5412 from wseyler/scheduler-plugin
e-cuellar Oct 17, 2023
a05a6f1
BACKLOG-38036 - Fixed assembly so that "scheduler-plugin" will be inc…
wseyler Oct 18, 2023
9242762
Merge pull request #5416 from wseyler/scheduler-plugin
e-cuellar Oct 18, 2023
3f84c16
[BACKLOG-37873] Added ability for a theme to indicate it is responsive
dcleao Oct 19, 2023
e36bda4
Merge pull request #5421 from dcleao/BACKLOG-37873-8
NJtwentyone Oct 26, 2023
6e2dc3d
[BACKLOG-38801] SCHEDULER - Change developer mode options to producti…
e-cuellar Oct 31, 2023
4a85927
Merge pull request #5430 from e-cuellar/scheduler-plugin
wseyler Oct 31, 2023
ba7f15a
[BACKLOG-39088] - Fixed issue with obtaining a IScheduler object and …
wseyler Oct 31, 2023
c5efbbb
Merge pull request #5433 from wseyler/scheduler-plugin
e-cuellar Nov 1, 2023
6433d3f
[BACKLOG-38633] SCHEDULER - Evaluate and fix if necessary references …
e-cuellar Nov 1, 2023
42fd704
Merge pull request #5434 from e-cuellar/DEV
wseyler Nov 2, 2023
d12ab87
Revert "[BACKLOG-38801] SCHEDULER - Change developer mode options to …
e-cuellar Nov 2, 2023
62a9d1e
Merge pull request #5436 from pentaho/revert-5430-scheduler-plugin
rmansoor Nov 2, 2023
73d360e
[BACKLOG-39083] Add old commons-dbcp and commons-pool jars back to CE…
Oct 31, 2023
cf6c2fa
Merge pull request #5437 from rmansoor/scheduler-rebase-branch
rmansoor Nov 4, 2023
15be457
Merge branch 'master' of github.com:pentaho/pentaho-platform into sch…
wseyler Nov 8, 2023
398734c
Merge pull request #5443 from wseyler/scheduler-plugin
rmansoor Nov 8, 2023
464240f
[BACKLOG-39120] Move all scheduler related interfaces from scheduler …
e-cuellar Nov 10, 2023
377bcfb
Merge pull request #5445 from e-cuellar/DEVELOPMENT
wseyler Nov 10, 2023
16caff1
[BACKLOG-39120] Move all scheduler related interfaces from scheduler
rmansoor Nov 11, 2023
8d00806
Merge pull request #5446 from rmansoor/scheduler-plugin
rmansoor Nov 11, 2023
813c372
[BACKLOG-39120] Move all scheduler related classes from scheduler mod…
rmansoor Nov 11, 2023
57aecf7
Merge pull request #5447 from rmansoor/scheduler-plugin
rmansoor Nov 11, 2023
4fb9809
update the code after merge from master
rmansoor Nov 12, 2023
1197e75
Merge pull request #5448 from rmansoor/scheduler-plugin
rmansoor Nov 12, 2023
daeff09
[BACKLOG-39119] - Move of JobRequest, JobScheduleParam, and ScheduleE…
wseyler Nov 14, 2023
00f06a5
Merge pull request #5453 from wseyler/scheduler-plugin
e-cuellar Nov 16, 2023
8e08018
[BACKLOG-39119] - Removal of quartz.properties from pentaho-platform …
wseyler Nov 17, 2023
5c6ccc5
[BACKLOG-37872] Fixed not being able to use OBF or SuperDevMode mode …
dcleao Nov 20, 2023
fa95689
[BACKLOG-37872] Fixed not being able to use OBF or SuperDevMode mode …
dcleao Nov 20, 2023
ddca39f
Merge pull request #5458 from dcleao/flx-gwt-obf-create-scheduler
e-cuellar Nov 21, 2023
7a26f06
[BACKLOG-37905] - Consume email and group in scheduler email dialog p…
rmansoor Dec 4, 2023
6a70366
[BACKLOG-38225][BACKLOG-39275][BACKLOG-39299] Refactor Worker Nodes A…
NJtwentyone Dec 4, 2023
562e6ee
Merge pull request #5465 from NJtwentyone/issues/BACKLOG-39299/remove…
rmansoor Dec 5, 2023
1f0242c
[BACKLOG-38225][BACKLOG-39275][BACKLOG-39299] Address Duplicate Class…
NJtwentyone Dec 4, 2023
aa52bd6
[BACKLOG-38225][BACKLOG-39275] Address Duplicate Classes in Artifacts…
NJtwentyone Dec 5, 2023
3667790
Merge pull request #5467 from NJtwentyone/issues/BACKLOG-39275/remove…
rmansoor Dec 5, 2023
c8b823c
Merge pull request #5466 from NJtwentyone/issues/BACKLOG-39275/refact…
rmansoor Dec 5, 2023
638c6e0
[BACKLOG-39323] - Fixed issue where exporting scheduler created an em…
wseyler Dec 7, 2023
8081f40
Merge pull request #5471 from wseyler/scheduler-plugin
e-cuellar Dec 7, 2023
28bee67
Merge branch 'BACKLOG-37905' of github.com:rmansoor/pentaho-platform …
wseyler Dec 11, 2023
3d3d8b3
Merge pull request #5475 from wseyler/scheduler-plugin
e-cuellar Dec 11, 2023
b55b1cd
[BACKLOG-39323] - Fixed issue where exporting a ktr schedule created …
wseyler Dec 12, 2023
b23084e
Merge branch 'scheduler-plugin' of github.com:pentaho/pentaho-platfor…
wseyler Dec 12, 2023
e1b7493
Merge pull request #5477 from wseyler/scheduler-plugin
e-cuellar Dec 12, 2023
812069c
[BACKLOG-39324] Created PentahoPluginWSSpringServlet to handle jaxws
peterrinehart Dec 11, 2023
f3cdba3
[BACKLOG-37872] Fixed session scope for Pentaho plugin spring beans u…
dcleao Dec 8, 2023
a10384e
Merge pull request #5479 from peterrinehart/BACKLOG-39324
rmansoor Dec 14, 2023
46bd9dc
Merge pull request #5476 from pentaho/BACKLOG-37872-v2-pr
NJtwentyone Dec 14, 2023
87df21c
[PPP-4826] Upgrade Vulnerable Hibernate to 5.4.24
Dec 8, 2023
3d9529d
[TEST] Fix unit tests on Windows
Dec 13, 2023
8b419ee
Merge pull request #5483 from rmansoor/scheduler-plugin
rmansoor Dec 17, 2023
7883976
renamed the artifact name from
lsaikrishna89 Oct 10, 2023
1a08d8e
Merge pull request #5484 from rmansoor/scheduler-plugin
rmansoor Dec 19, 2023
8559c67
[BACKLOG-39394] [BACKLOG-39455] - Resolving the action class moved to…
rmansoor Dec 28, 2023
d6677b5
Merge pull request #5488 from rmansoor/scheduler-plugin
angel-ramoscardona Dec 28, 2023
b2517a6
Revert "[BACKLOG-37897] - Update of pentaho.xml to support email sou…
rmansoor Jan 1, 2024
c354129
Merge pull request #5489 from pentaho/revert-5409-scheduler-plugin
rmansoor Jan 1, 2024
576e423
[BACKLOG-39033] - Merge branch 'scheduler-plugin' of github.com:penta…
wseyler Jan 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@ public enum ClassLoaderType {
*/
public Map<String, String> getStaticResourceMap();

/**
* Returns the fully qualified name of the lifecycle listener class defined by this plugin. The class must be a
* {@link IPluginLifecycleListener}.
*
* @return lifecycle listener class name
*/
public String getLifecycleListenerClassname();

/**
* Returns the list of fully qualified name of the lifecycle listener class defined by this plugin. The class must be a
* {@link IPluginLifecycleListener}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// Generated on: 2013.07.25 at 11:25:28 AM EDT
//

package org.pentaho.platform.plugin.services.importexport.exportManifest.bindings;
package org.pentaho.platform.api.scheduler;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
Expand Down Expand Up @@ -116,6 +116,10 @@ public List<String> getStringValue() {
return this.stringValue;
}

public void setStringValue( List<String> stringValue ) {
this.stringValue = stringValue;
}

/**
* Gets the value of the type property.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,26 @@
* See the GNU Lesser General Public License for more details.
*
*
* Copyright (c) 2002-2018 Hitachi Vantara. All rights reserved.
* Copyright (c) 2023 Hitachi Vantara. All rights reserved.
*
*/

package org.pentaho.platform.api.scheduler2;

import javax.xml.bind.annotation.adapters.XmlAdapter;

import org.pentaho.platform.scheduler2.quartz.QuartzScheduler;

public class JobTriggerAdapter extends XmlAdapter<JobTrigger, JobTrigger> {

public JobTrigger marshal( JobTrigger v ) throws Exception {
return v instanceof ComplexJobTrigger ? new CronJobTrigger( v.toString() ) : v;
}

public JobTrigger unmarshal( JobTrigger v ) throws Exception {
return v instanceof CronJobTrigger ? QuartzScheduler.createComplexTrigger( v.toString() ) : v;
}
/**
* This interface is used register and resolve action class name
*/
public interface IActionClassResolver {
/**
* This method is used to resolve a action class name and returns a bean id that is registered with this class name
* @param className
* @return bean id
*/
String resolve( String className );

/**
* This method provides a component way to register a bean id matching a action class name
* @param className
* @param beanId
*/
void register( String className, String beanId );
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@

public interface IBackgroundExecutionStreamProvider extends Serializable {
String getMimeType();

String getOutputPath();

OutputStream getOutputStream() throws Exception;

InputStream getInputStream() throws Exception;

void setStreamingAction( IStreamingAction streamingAction );

void setOutputFilePath( String filePath );
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,39 +36,22 @@ public interface IBlockoutManager {

public static final String SCHEDULED_FIRE_TIME = "scheduledFireTime";

/**
* @param blockOutJobId
* @return a IBlockOutTrigger that represents the blockOut with the name blockOutName
* @throws SchedulerException
*/
IJobTrigger getBlockOut( String blockOutJobId );

/**
* @return a list of jobs essentially should be used instead of getBlockOuts which is deprecated
*/
List<Job> getBlockOutJobs();

List<IJob> getBlockOutJobs();
/**
* @param scheduleJobTrigger
* {@link IJobTrigger}
* @return whether the {@link IJobTrigger} will fire, at least once, given the current list of {@link IJobTrigger}s
* @throws SchedulerException
*/
boolean willFire( IJobTrigger scheduleJobTrigger );

/**
* @return true if there are no current blockOuts active at the moment this method is called
* @throws SchedulerException
*/
boolean shouldFireNow();

/**
* @param testBlockOutJobTrigger
* @return the {@link List} of {@link IJobTrigger}s which would be blocked by the {@link IJobTrigger}
* @throws SchedulerException
*/
List<IJobTrigger> willBlockSchedules( IJobTrigger testBlockOutJobTrigger );

/**
* @param scheduleJobTrigger
* {@link IJobTrigger}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package org.pentaho.platform.api.scheduler2;

import org.pentaho.platform.api.scheduler2.wrappers.DayOfMonthWrapper;
import org.pentaho.platform.api.scheduler2.wrappers.DayOfWeekWrapper;
import org.pentaho.platform.api.scheduler2.wrappers.MonthlyWrapper;
import org.pentaho.platform.api.scheduler2.wrappers.YearlyWrapper;
import org.pentaho.platform.scheduler2.recur.ITimeRecurrence;

public interface IComplexJobTrigger extends IJobTrigger {
static int SUNDAY = 1;

long getRepeatInterval();

void setRepeatInterval( long repeatIntervalSeconds );

void addYearlyRecurrence( Integer... recurrence );

void addMonthlyRecurrence( Integer... recurrence );

void addDayOfMonthRecurrence( Integer... recurrence );

void addDayOfWeekRecurrence( ITimeRecurrence recurrence );

void addDayOfWeekRecurrence( Integer... recurrence );

void setHourlyRecurrence( Integer... recurrence );

void addMinuteRecurrence( Integer... recurrence );

void setCronString( String cronString );

DayOfMonthWrapper getDayOfMonthRecurrences();

MonthlyWrapper getMonthlyRecurrences();

YearlyWrapper getYearlyRecurrences();

DayOfWeekWrapper getDayOfWeekRecurrences();
void setMinuteRecurrence( Integer... recurrence );

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@

package org.pentaho.platform.api.scheduler2;

import javax.xml.bind.annotation.XmlElement;
public interface ICronJobTrigger extends IJobTrigger{
String getCronString();

public class JobParam {
@XmlElement
String name;
@XmlElement
String value;
void setCronString( String crongString );
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.pentaho.platform.api.scheduler2;

import java.util.List;

public interface IEmailGroupResolver {

String resolve( String param );
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,23 @@
* See the GNU Lesser General Public License for more details.
*
*
* Copyright (c) 2002-2018 Hitachi Vantara. All rights reserved.
* Copyright (c) 2002-2023 Hitachi Vantara. All rights reserved.
*
*/

package org.pentaho.platform.scheduler2.ws;
package org.pentaho.platform.api.scheduler2;

import java.util.HashMap;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;

@SuppressWarnings( "serial" )
@XmlRootElement
public class MapParamValue extends HashMap<String, String> implements ParamValue {
public interface IJob {
IJobTrigger getJobTrigger();
Map<String, Serializable> getJobParams();
String getJobId();
String getJobName();
JobState getState();
String getUserName();
Date getNextRun();
Date getLastRun();
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ public interface IJobFilter {
* the job to decide to accept or reject
* @return <code>true</code> if the job should be accepted as part of the filtered results
*/
public boolean accept( Job job );
boolean accept( IJob job );
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@
* See the GNU Lesser General Public License for more details.
*
*
* Copyright (c) 2002-2018 Hitachi Vantara. All rights reserved.
* Copyright (c) 2002-2023 Hitachi Vantara. All rights reserved.
*
*/

package org.pentaho.platform.api.scheduler2;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
public interface IJobRequest {

@XmlRootElement
public class JobParams {
@XmlElement
JobParam[] jobParams;
String getJobId();

void setJobId( String jobId );
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,6 @@ public interface IJobResult {
*
* @return a unique id of the job run
*/
public String getId();
String getId();

/**
* The job parameters used during this job run.
*
* @return set of parameters used during job run
*/
public Map<String, Serializable> getJobParams();

/**
* The start date/time of the job run
*
* @return start date/time of the job run
*/
public Date getStartDate();

/**
* The end date/time of the job run
*
* @return end date/time of the job run
*/
public Date getCompletionDate();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.pentaho.platform.api.scheduler2;

import java.io.Serializable;
import java.util.List;

public interface IJobScheduleParam {
String getName();

void setName( String name );

String getType();
void setType( String type );

Serializable getValue();

void setStringValue( List<String> value );

List<String> getStringValue();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
package org.pentaho.platform.api.scheduler2;

import java.util.List;
import java.util.Map;

public interface IJobScheduleRequest {

void setJobId( String jobId );

String getJobId();

void setJobName( String jobName );

void setDuration( long duration );

void setJobState( JobState state );

void setInputFile( String inputFilePath );

void setOutputFile( String outputFilePath );

Map<String, String> getPdiParameters();

void setPdiParameters( Map<String, String> stringStringHashMap );

void setActionClass( String value );

String getActionClass();

void setTimeZone( String value );

String getTimeZone();

void setSimpleJobTrigger( ISimpleJobTrigger jobTrigger );

ISimpleJobTrigger getSimpleJobTrigger();

void setCronJobTrigger( ICronJobTrigger cron );

String getInputFile();

String getJobName();

String getOutputFile();

List<IJobScheduleParam> getJobParameters();

void setJobParameters( List<IJobScheduleParam> parameters );

long getDuration();

JobState getJobState();

ICronJobTrigger getCronJobTrigger();
}

Loading
Loading