Class VcmrReport
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.vcmr.VcmrReport
-
public class VcmrReport extends Object
Node repository report containing list of upcoming VCMRs impacting a node- Author:
- olaa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVcmrReport.Vcmr
-
Constructor Summary
Constructors Constructor Description VcmrReport()VcmrReport(Set<VcmrReport.Vcmr> vcmrs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddVcmr(String id, ZonedDateTime plannedStartTime, ZonedDateTime plannedEndtime)static VcmrReportfromReports(Map<String,String> reports)Serialization functions - mapped toNode.reports()static StringgetReportId()Set<VcmrReport.Vcmr>getVcmrs()booleanremoveVcmr(String id)Map<String,String>toNodeReports()Set report to 'null' if list is empty - clearing the report See NodePatcher in node-repositoryStringtoString()
-
-
-
Constructor Detail
-
VcmrReport
public VcmrReport()
-
VcmrReport
public VcmrReport(Set<VcmrReport.Vcmr> vcmrs)
-
-
Method Detail
-
getVcmrs
public Set<VcmrReport.Vcmr> getVcmrs()
-
addVcmr
public boolean addVcmr(String id, ZonedDateTime plannedStartTime, ZonedDateTime plannedEndtime)
- Returns:
- true if list of VCMRs is changed
-
removeVcmr
public boolean removeVcmr(String id)
-
getReportId
public static String getReportId()
-
fromReports
public static VcmrReport fromReports(Map<String,String> reports)
Serialization functions - mapped toNode.reports()
-
toNodeReports
public Map<String,String> toNodeReports()
Set report to 'null' if list is empty - clearing the report See NodePatcher in node-repository
-
-