Class ControllerResponse
java.lang.Object
com.linkedin.venice.controllerapi.ControllerResponse
- Direct Known Subclasses:
AclResponse,AdminCommandExecutionResponse,AdminOperationProtocolVersionControllerResponse,AdminTopicMetadataResponse,ChildAwareResponse,CleanExecutionIdsResponse,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,RepushJobResponse,ResourceStateResponse,RoutersClusterConfigResponse,SchemaResponse,SchemaUsageResponse,StoppableNodeStatusResponse,StorageEngineOverheadRatioResponse,StoragePersonaResponse,StoreComparisonResponse,StoreDeletedValidationResponse,StoreHealthAuditResponse,StoreMigrationResponse,StoreResponse,SystemStoreHeartbeatResponse,TrackableControllerResponse,VersionResponse
Extend this class to create response objects for the controller
Any fields that must be in all responses can go here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyValueOf(ControllerResponse response) getError()Deprecated.getName()booleanisError()Starting with Jackson 1.9, if this is the only annotation:JsonIgnoreassociated with a property, it will also cause the whole property to be ignored.voidsetCluster(String cluster) voidvoidvoidvoidsetErrorType(ErrorType errorType) voidtoString()
-
Constructor Details
-
ControllerResponse
public ControllerResponse()
-
-
Method Details
-
isError
public boolean isError()Starting with Jackson 1.9, if this is the only annotation:JsonIgnoreassociated with a property, it will also cause the whole property to be ignored. So we need to explicitly specifyJsonPropertywithgetError()andsetError(String)- Returns:
-
getCluster
-
setCluster
-
getName
-
getErrorType
-
getExceptionType
Deprecated. -
setName
-
getError
-
setError
-
setError
-
setError
-
setErrorType
-
toString
-
copyValueOf
-