-
Notifications
You must be signed in to change notification settings - Fork 0
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
Jose Antonio Sanchez
committed
Jul 31, 2018
1 parent
4a4f19c
commit b406386
Showing
3 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
src/main/java/eu/h2020/symbiote/cloud/sla/model/Violation.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,62 @@ | ||
/** | ||
* Copyright 2017 Atos | ||
* Contact: Atos <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package eu.h2020.symbiote.cloud.sla.model; | ||
|
||
import java.util.Date; | ||
|
||
public class Violation { | ||
|
||
private String constraint; | ||
|
||
private String actualValue; | ||
|
||
private String deviceId; | ||
|
||
private Date date; | ||
|
||
public String getConstraint() { | ||
return constraint; | ||
} | ||
|
||
public void setConstraint(String constraint) { | ||
this.constraint = constraint; | ||
} | ||
|
||
public String getActualValue() { | ||
return actualValue; | ||
} | ||
|
||
public void setActualValue(String actualValue) { | ||
this.actualValue = actualValue; | ||
} | ||
|
||
public String getDeviceId() { | ||
return deviceId; | ||
} | ||
|
||
public void setDeviceId(String deviceId) { | ||
this.deviceId = deviceId; | ||
} | ||
|
||
public Date getDate() { | ||
return date; | ||
} | ||
|
||
public void setDate(Date date) { | ||
this.date = date; | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
src/main/java/eu/h2020/symbiote/cloud/sla/model/ViolationNotification.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,43 @@ | ||
/** | ||
* Copyright 2017 Atos | ||
* Contact: Atos <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package eu.h2020.symbiote.cloud.sla.model; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class ViolationNotification { | ||
|
||
private String federationId; | ||
|
||
private List<Violation> violations = new ArrayList<>(); | ||
|
||
public String getFederationId() { | ||
return federationId; | ||
} | ||
|
||
public void setFederationId(String federationId) { | ||
this.federationId = federationId; | ||
} | ||
|
||
public List<Violation> getViolations() { | ||
return violations; | ||
} | ||
|
||
public void setViolations(List<Violation> violations) { | ||
this.violations = violations; | ||
} | ||
} |
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