Package alluxio.wire
Class ConfigCheckReport
- java.lang.Object
-
- alluxio.wire.ConfigCheckReport
-
public class ConfigCheckReport extends java.lang.Object
Represents a configuration report which records the configuration checker results. Since we check server-side configuration, Scope here only includes SERVER, MASTER and WORKER. Scope.ALL will be considered as Scope.SERVER.
-
-
Constructor Summary
Constructors Constructor Description ConfigCheckReport()
Creates a new instance ofConfigCheckReport
.ConfigCheckReport(alluxio.grpc.ConfigCheckReport configCheckReport)
Creates a new instance ofConfigCheckReport
from a proto representation.ConfigCheckReport(java.util.Map<alluxio.grpc.Scope,java.util.List<InconsistentProperty>> errors, java.util.Map<alluxio.grpc.Scope,java.util.List<InconsistentProperty>> warns, alluxio.grpc.ConfigStatus status)
Creates a new instance ofConfigCheckReport
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConfigCheckReport
fromProto(alluxio.grpc.ConfigCheckReport report)
Creates a new instance ofConfigCheckReport
from proto representation.java.util.Map<alluxio.grpc.Scope,java.util.List<InconsistentProperty>>
getConfigErrors()
alluxio.grpc.ConfigStatus
getConfigStatus()
java.util.Map<alluxio.grpc.Scope,java.util.List<InconsistentProperty>>
getConfigWarns()
alluxio.grpc.ConfigCheckReport
toProto()
-
-
-
Constructor Detail
-
ConfigCheckReport
public ConfigCheckReport()
Creates a new instance ofConfigCheckReport
.
-
ConfigCheckReport
public ConfigCheckReport(java.util.Map<alluxio.grpc.Scope,java.util.List<InconsistentProperty>> errors, java.util.Map<alluxio.grpc.Scope,java.util.List<InconsistentProperty>> warns, alluxio.grpc.ConfigStatus status)
Creates a new instance ofConfigCheckReport
.- Parameters:
errors
- the configuration errorswarns
- the configuration warningsstatus
- the configuration check status
-
ConfigCheckReport
public ConfigCheckReport(alluxio.grpc.ConfigCheckReport configCheckReport)
Creates a new instance ofConfigCheckReport
from a proto representation.- Parameters:
configCheckReport
- the proto representation of a configuration check report
-
-
Method Detail
-
fromProto
public static ConfigCheckReport fromProto(alluxio.grpc.ConfigCheckReport report)
Creates a new instance ofConfigCheckReport
from proto representation.- Parameters:
report
- the proto representation of a configuration check report- Returns:
- the instance
-
getConfigErrors
public java.util.Map<alluxio.grpc.Scope,java.util.List<InconsistentProperty>> getConfigErrors()
- Returns:
- a map of configuration errors
-
getConfigWarns
public java.util.Map<alluxio.grpc.Scope,java.util.List<InconsistentProperty>> getConfigWarns()
- Returns:
- a map of configuration warnings
-
getConfigStatus
public alluxio.grpc.ConfigStatus getConfigStatus()
- Returns:
- the overall configuration status
-
toProto
public alluxio.grpc.ConfigCheckReport toProto()
- Returns:
- proto representation of the configuration check report
-
-