-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use background job to calculate admin statistics
Add db migration Fix tests
- Loading branch information
amvanbaren
committed
May 8, 2023
1 parent
2252936
commit a122c43
Showing
14 changed files
with
375 additions
and
302 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
47 changes: 47 additions & 0 deletions
47
server/src/main/java/org/eclipse/openvsx/admin/AdminStatisticsJobRequest.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,47 @@ | ||
/** ****************************************************************************** | ||
* Copyright (c) 2023 Precies. Software Ltd and others | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* ****************************************************************************** */ | ||
package org.eclipse.openvsx.admin; | ||
|
||
import org.jobrunr.jobs.lambdas.JobRequest; | ||
import org.jobrunr.jobs.lambdas.JobRequestHandler; | ||
|
||
public class AdminStatisticsJobRequest implements JobRequest { | ||
|
||
private int year; | ||
private int month; | ||
|
||
public AdminStatisticsJobRequest() {} | ||
|
||
public AdminStatisticsJobRequest(int year, int month) { | ||
this.year = year; | ||
this.month = month; | ||
} | ||
|
||
public int getYear() { | ||
return year; | ||
} | ||
|
||
public void setYear(int year) { | ||
this.year = year; | ||
} | ||
|
||
public int getMonth() { | ||
return month; | ||
} | ||
|
||
public void setMonth(int month) { | ||
this.month = month; | ||
} | ||
|
||
@Override | ||
public Class<? extends JobRequestHandler> getJobRequestHandler() { | ||
return AdminStatisticsJobRequestHandler.class; | ||
} | ||
} |
Oops, something went wrong.