Skip to content

Commit ce66a03

Browse files
author
Joerg Huber
committed
Added consumerRequested parameter to some methods.
1 parent e89f68d commit ce66a03

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

SIF3InfraREST/sif3InfraCommon/src/main/java/sif3/infra/common/interfaces/JobManager.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,25 +101,27 @@ public interface JobManager
101101
* @param context The context for which the job is applicable.
102102
* @param environmentID The environment for which the job is applicable.
103103
* @param fingerprint The fingerprint of the Adapter that requested the job creation.
104+
* @param consumerRequested Indicating if the request is caused by consumer.
104105
*
105106
* @throws PersistenceException Some data could not be persisted. An error log entry is performed and the message of the exceptions
106107
* holds some info.
107108
*/
108-
public void saveNewJob(JobType newJob, String serviceName, SIFZone zone, SIFContext context, String environmentID, String fingerprint) throws PersistenceException;
109+
public void saveNewJob(JobType newJob, String serviceName, SIFZone zone, SIFContext context, String environmentID, String fingerprint, boolean consumerRequested) throws PersistenceException;
109110

110111
/**
111112
* This method will attempt to remove the job for the given jobID (job RefID) from the SIF3_JOB table. If it exists it will also make a
112113
* "DELETE" entry in the SIF3_JOB_EVENT table if events are supported. If event support is not enabled then no entry will be performed
113114
* to the SIF3_JOB_EVENT table.
114115
*
115116
* @param jobID The refID of the job to be removed.
117+
* @param consumerRequested Indicating if the request is caused by consumer.
116118
*
117119
* @return TRUE: Job is removed and optional an entry is made in the event table. FALSE: Job did not exist. No changes are performed.
118120
*
119121
* @throws PersistenceException Some data could not be persisted/removed. An error log entry is performed and the message of the exceptions
120122
* holds some info.
121123
*/
122-
public boolean removeJob(String jobID) throws PersistenceException;
124+
public boolean removeJob(String jobID, boolean consumerRequested) throws PersistenceException;
123125

124126
/**
125127
* This method will attempt to get the job for the given jobID (job RefID) from the SIF3_JOB table. If it exists it will return the job

SIF3InfraREST/sif3InfraCommon/src/main/java/sif3/infra/common/interfaces/ProviderJobManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@ public interface ProviderJobManager extends JobManager
8181
* all the latest values after this call.
8282
*
8383
* @param jobInfo The job data that needs to be persisted. If null then no action is taken.
84+
* @param consumerRequested Indicating if the update request is caused by consumer.
8485
*
8586
* @throws PersistenceException Job can not be updated due to a DB access issue.
8687
*/
87-
public void updateJob(ExtendedJobInfo jobInfo) throws PersistenceException;
88+
public void updateJob(ExtendedJobInfo jobInfo, boolean consumerRequested) throws PersistenceException;
8889

8990
/**
9091
* This method returns all Jobs that have had any changes applied to them on or after the 'changesSince' date. The number

0 commit comments

Comments
 (0)