-
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.
refactor the package organization to create a separate package for mo…
…dels
- Loading branch information
Showing
13 changed files
with
96 additions
and
88 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
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 | ||
} | ||
|
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,14 +15,14 @@ | |
* limitations under the License. | ||
*/ | ||
|
||
package nextflow.nomad.config | ||
package nextflow.nomad.models | ||
/** | ||
* Nomad Job Constraint Spec | ||
* | ||
* @author Jorge Aguilera <[email protected]> | ||
*/ | ||
|
||
class ConstraintSpec { | ||
class JobConstraint { | ||
|
||
private String attribute | ||
private String operator | ||
|
@@ -40,17 +40,17 @@ class ConstraintSpec { | |
return value | ||
} | ||
|
||
ConstraintSpec attribute(String attribute){ | ||
JobConstraint attribute(String attribute){ | ||
this.attribute=attribute | ||
this | ||
} | ||
|
||
ConstraintSpec operator(String operator){ | ||
JobConstraint operator(String operator){ | ||
this.operator = operator | ||
this | ||
} | ||
|
||
ConstraintSpec value(String value){ | ||
JobConstraint value(String value){ | ||
this.value = value | ||
this | ||
} | ||
|
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.