-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Constraints refactor to introduce a specific models package (#68)
* refactor the package organization to create a separate package for models * Refactor the test folder and add license headers
- Loading branch information
Showing
16 changed files
with
301 additions
and
220 deletions.
There are no files selected for viewing
38 changes: 0 additions & 38 deletions
38
plugins/nf-nomad/src/main/nextflow/nomad/config/ConstraintAttrSpec.groovy
This file was deleted.
Oops, something went wrong.
81 changes: 0 additions & 81 deletions
81
plugins/nf-nomad/src/main/nextflow/nomad/config/ConstraintNodeSpec.groovy
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
plugins/nf-nomad/src/main/nextflow/nomad/config/ConstraintsSpec.groovy
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,13 +15,13 @@ | |
* limitations under the License. | ||
*/ | ||
|
||
package nextflow.nomad.config | ||
package nextflow.nomad.models | ||
/** | ||
* Nomad Job Affinity Spec | ||
* | ||
* @author Jorge Aguilera <[email protected]> | ||
*/ | ||
class AffinitySpec{ | ||
class JobAffinity { | ||
|
||
private String attribute | ||
private String operator | ||
|
@@ -44,22 +44,22 @@ class AffinitySpec{ | |
return weight | ||
} | ||
|
||
AffinitySpec attribute(String attribute){ | ||
JobAffinity attribute(String attribute){ | ||
this.attribute=attribute | ||
this | ||
} | ||
|
||
AffinitySpec operator(String operator){ | ||
JobAffinity operator(String operator){ | ||
this.operator = operator | ||
this | ||
} | ||
|
||
AffinitySpec value(String value){ | ||
JobAffinity value(String value){ | ||
this.value = value | ||
this | ||
} | ||
|
||
AffinitySpec weight(int weight){ | ||
JobAffinity weight(int weight){ | ||
this.weight = weight | ||
this | ||
} | ||
|
Oops, something went wrong.