Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
269 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
symmetric/symmetric-core/src/main/java/org/jumpmind/symmetric/job/StageManagementJob.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package org.jumpmind.symmetric.job; | ||
|
||
import org.jumpmind.symmetric.ISymmetricEngine; | ||
import org.jumpmind.symmetric.io.stage.IStagingManager; | ||
import org.jumpmind.symmetric.service.ClusterConstants; | ||
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler; | ||
|
||
public class StageManagementJob extends AbstractJob { | ||
|
||
private IStagingManager stagingManager; | ||
|
||
public StageManagementJob(ISymmetricEngine engine, ThreadPoolTaskScheduler taskScheduler, | ||
IStagingManager stagingManager) { | ||
super("job.stage.management", true, engine.getParameterService().is( | ||
"start.stage.management.job"), engine, taskScheduler); | ||
} | ||
|
||
public String getClusterLockName() { | ||
return ClusterConstants.STAGE_MANAGEMENT; | ||
} | ||
|
||
public boolean isClusterable() { | ||
return true; | ||
} | ||
|
||
@Override | ||
long doJob() throws Exception { | ||
if (stagingManager != null) { | ||
long cleanupCount = stagingManager.clean(); | ||
|
||
// TODO it would be a nice feature to be able to import from an | ||
// upload/import directory any files that are dropped there. | ||
|
||
return cleanupCount; | ||
} else { | ||
return 0; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 0 additions & 68 deletions
68
...metric-core/src/main/java/org/jumpmind/symmetric/util/ArgTypePreparedStatementSetter.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.