-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert ":heavy_minus_sign: absorbed job-engine-app-core into job-engi…
…ne-app-web as it was not generic, neither used anywhere else" This reverts commit 3450f05.
- Loading branch information
1 parent
9b32ac0
commit a3dc144
Showing
22 changed files
with
258 additions
and
81 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...odel/src/main/java/org/eclipse/kapua/commons/rest/model/IsJobRunningMultipleResponse.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,42 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021, 2022 Eurotech and/or its affiliates and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.commons.rest.model; | ||
|
||
import org.eclipse.kapua.model.id.KapuaId; | ||
|
||
import javax.xml.bind.annotation.XmlElementWrapper; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public class IsJobRunningMultipleResponse { | ||
|
||
private List<IsJobRunningResponse> list = new ArrayList<>(); | ||
|
||
public IsJobRunningMultipleResponse() { | ||
} | ||
|
||
public IsJobRunningMultipleResponse(Map<KapuaId, Boolean> map) { | ||
map.forEach((key, value) -> list.add(new IsJobRunningResponse(key, value))); | ||
} | ||
|
||
@XmlElementWrapper | ||
public List<IsJobRunningResponse> getList() { | ||
return list; | ||
} | ||
|
||
public void setMap(List<IsJobRunningResponse> list) { | ||
this.list = list; | ||
} | ||
|
||
} |
52 changes: 52 additions & 0 deletions
52
...s-rest/model/src/main/java/org/eclipse/kapua/commons/rest/model/IsJobRunningResponse.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,52 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021, 2022 Eurotech and/or its affiliates and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.commons.rest.model; | ||
|
||
import org.eclipse.kapua.model.id.KapuaId; | ||
import org.eclipse.kapua.model.id.KapuaIdAdapter; | ||
|
||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | ||
|
||
public class IsJobRunningResponse { | ||
|
||
private KapuaId jobId; | ||
private Boolean isRunning; | ||
|
||
public IsJobRunningResponse() { | ||
} | ||
|
||
public IsJobRunningResponse(KapuaId jobId, Boolean isRunning) { | ||
this.jobId = jobId; | ||
this.isRunning = isRunning; | ||
} | ||
|
||
@XmlJavaTypeAdapter(KapuaIdAdapter.class) | ||
public KapuaId getJobId() { | ||
return jobId; | ||
} | ||
|
||
public void setJobId(KapuaId jobId) { | ||
this.jobId = jobId; | ||
} | ||
|
||
@XmlElement(name = "isRunning") | ||
public Boolean isRunning() { | ||
return isRunning; | ||
} | ||
|
||
public void setRunning(Boolean isRunning) { | ||
this.isRunning = isRunning; | ||
} | ||
|
||
} |
39 changes: 39 additions & 0 deletions
39
...s-rest/model/src/main/java/org/eclipse/kapua/commons/rest/model/MultipleJobIdRequest.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,39 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021, 2022 Eurotech and/or its affiliates and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Eurotech - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.kapua.commons.rest.model; | ||
|
||
import org.eclipse.kapua.model.id.KapuaId; | ||
import org.eclipse.kapua.model.id.KapuaIdAdapter; | ||
|
||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlElementWrapper; | ||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | ||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
public class MultipleJobIdRequest { | ||
|
||
private Set<KapuaId> jobIds = new HashSet<>(); | ||
|
||
@XmlElementWrapper(name = "jobIds") | ||
@XmlElement(name = "jobId") | ||
@XmlJavaTypeAdapter(KapuaIdAdapter.class) | ||
public Set<KapuaId> getJobIds() { | ||
return jobIds; | ||
} | ||
|
||
public void setJobIds(Set<KapuaId> jobIds) { | ||
this.jobIds = jobIds; | ||
} | ||
|
||
} |
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,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2021, 2022 Eurotech and/or its affiliates and others | ||
This program and the accompanying materials are made | ||
available under the terms of the Eclipse Public License 2.0 | ||
which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
SPDX-License-Identifier: EPL-2.0 | ||
Contributors: | ||
Eurotech - initial API and implementation | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<artifactId>kapua-job-engine-app</artifactId> | ||
<groupId>org.eclipse.kapua</groupId> | ||
<version>2.1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>kapua-job-engine-app-core</artifactId> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>javax.servlet-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.kapua</groupId> | ||
<artifactId>kapua-job-engine-client</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.kapua</groupId> | ||
<artifactId>kapua-job-engine-jbatch</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.kapua</groupId> | ||
<artifactId>kapua-job-internal</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.kapua</groupId> | ||
<artifactId>kapua-rest-api-core</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.kapua</groupId> | ||
<artifactId>kapua-service-api</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</project> |
File renamed without changes.
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
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
Oops, something went wrong.