Class ControllerResponse

java.lang.Object
com.linkedin.venice.controllerapi.ControllerResponse
Direct Known Subclasses:
AclResponse, AdminCommandExecutionResponse, AdminTopicMetadataResponse, ChildAwareResponse, ClusterStaleDataAuditResponse, D2ServiceDiscoveryResponse, HybridStoreQuotaStatusResponse, IncrementalPushVersionsResponse, JobStatusQueryResponse, LastSucceedExecutionIdResponse, LeaderControllerResponse, MigrationPushStrategyResponse, MultiNodeResponse, MultiNodesStatusResponse, MultiReplicaResponse, MultiSchemaIdResponse, MultiSchemaResponse, MultiStoragePersonaResponse, MultiStoreInfoResponse, MultiStoreResponse, MultiStoreStatusResponse, MultiStoreTopicsResponse, MultiVersionStatusResponse, NewStoreResponse, NodeReplicasReadinessResponse, NodeStatusResponse, OwnerResponse, PartitionResponse, PubSubTopicConfigResponse, PushJobStatusUploadResponse, PushStatusResponse, ReadyForDataRecoveryResponse, RegionPushDetailsResponse, RepushInfoResponse, ResourceStateResponse, RoutersClusterConfigResponse, SchemaResponse, SchemaUsageResponse, StoppableNodeStatusResponse, StorageEngineOverheadRatioResponse, StoragePersonaResponse, StoreComparisonResponse, StoreHealthAuditResponse, StoreMigrationResponse, StoreResponse, SystemStoreHeartbeatResponse, TrackableControllerResponse, VersionResponse

public class ControllerResponse extends Object
Extend this class to create response objects for the controller Any fields that must be in all responses can go here.
  • Constructor Details

    • ControllerResponse

      public ControllerResponse()
  • Method Details

    • isError

      public boolean isError()
      Starting with Jackson 1.9, if this is the only annotation: JsonIgnore associated with a property, it will also cause the whole property to be ignored. So we need to explicitly specify JsonProperty with getError() and setError(String)
      Returns:
    • getCluster

      public String getCluster()
    • setCluster

      public void setCluster(String cluster)
    • getName

      public String getName()
    • getErrorType

      public ErrorType getErrorType()
    • getExceptionType

      @Deprecated public ExceptionType getExceptionType()
      Deprecated.
    • setName

      public void setName(String name)
    • getError

      public String getError()
    • setError

      public void setError(String error)
    • setError

      public void setError(String error, Throwable e)
    • setError

      public void setError(Throwable e)
    • setErrorType

      public void setErrorType(ErrorType errorType)
    • toString

      public String toString()
      Overrides:
      toString in class Object