All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.datahub.model.serialize.JsonSerializerFactory Maven / Gradle / Ivy

There is a newer version: 2.25.6
Show newest version
package com.aliyun.datahub.model.serialize;

import com.aliyun.datahub.common.transport.DefaultRequest;
import com.aliyun.datahub.common.transport.Response;
import com.aliyun.datahub.exception.DatahubClientException;
import com.aliyun.datahub.model.*;

public class JsonSerializerFactory implements SerializerFactory {
    @Override
    public ErrorParser getErrorParser() throws DatahubClientException {
        return null;
    }

    @Override
    public Serializer getCreateProjectRequestSer() {
        return CreateProjectRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getCreateProjectResultDeser() {
        return CreateProjectResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getDeleteProjectRequestSer() {
        return DeleteProjectRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getDeleteProjectResultDeser() {
        return DeleteProjectResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getGetProjectRequestSer() {
        return GetProjectRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetProjectResultDeser() {
        return GetProjectResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getListProjectRequestSer() {
        return ListProjectRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getListProjectResultDeser() {
        return ListProjectResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getCreateTopicRequestSer() {
        return CreateTopicRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getCreateTopicResultDeser() {
        return CreateTopicResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getDeleteTopicRequestSer() {
        return DeleteTopicRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getDeleteTopicResultDeser() {
        return DeleteTopicResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getGetTopicRequestSer() {
        return GetTopicRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetTopicResultDeser() {
        return GetTopicResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getListTopicRequestSer() {
        return ListTopicRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getListTopicResultDeser() {
        return ListTopicResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getUpdateTopicRequestSer() {
        return UpdateTopicRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getUpdateTopicResultDeser() {
        return UpdateTopicResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getListShardRequestSer() {
        return ListShardRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getListShardResultDeser() {
        return ListShardResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getSplitShardRequestSer() {
        return SplitShardRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getSplitShardResultDeser() {
        return SplitShardResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getMergeShardRequestSer() {
        return MergeShardRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getMergeShardResultDeser() {
        return MergeShardResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getGetCursorRequestSer() {
        return GetCursorRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetCursorResultDeser() {
        return GetCursorResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getGetRecordsRequestSer() {
        return GetRecordsRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetRecordsResultDeser() {
        return GetRecordsResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getPutRecordsRequestSer() {
        return PutRecordsRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getPutRecordsResultDeser() {
        return PutRecordsResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getListConnectorRequestSer() {
        return ListConnectorRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getListConnectorResultDeser() {
        return ListConnectorResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getCreateConnectorRequestSer() {
        return CreateConnectorRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getCreateConnectorResultDeser() {
        return CreateConnectorResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getGetConnectorRequestSer() {
        return GetConnectorRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetConnectorResultDeser() {
        return GetConnectorResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getDeleteConnectorRequestSer() {
        return DeleteConnectorRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getDeleteConnectorResultDeser() {
        return DeleteConnectorResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getReloadConnectorRequestSer() {
        return ReloadConnectorRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getReloadConnectorResultDeser() {
        return ReloadConnectorResultJsonDeser.getInstance();
    }
    //

    @Override
    public Serializer getGetConnectorShardStatusRequestSer() {
        return GetConnectorShardStatusRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetConnectorShardStatusResultDeser() {
        return GetConnectorShardStatusResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getGetBlobRecordsRequestSer() {
        return GetBlobRecordsRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetBlobRecordsResultDeser() {
        return GetBlobRecordsResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getPutBlobRecordsRequestSer() {
        return PutBlobRecordsRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getPutBlobRecordsResultDeser() {
        return PutBlobRecordsResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getExtendShardRequestSer() {
        return ExtendShardRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getExtendShardResultDeser() {
        return ExtendShardResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getAppendFieldRequestSer() {
        return AppendFieldRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getAppendFieldResultDeser() {
        return AppendFieldResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getAppendConnectorFieldRequestSer() {
        return AppendConnectorFieldRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getAppendConnectorFieldResultDeser() {
        return AppendConnectorFieldResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getUpdateConnectorStateRequestSer() {
        return UpdateDataConnectorStateRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getUpdateConnectorStateResultDeser() {
        return UpdateDataConnectorStateResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getUpdateConnectorShardContextRequestSer() {
        return UpdateDataConnectorShardContextRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getUpdateConnectorShardContextResultDeser() {
        return UpdateDataConnectorShardContextResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getGetMeteringInfoRequestSer() {
        return GetMeteringInfoRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetMeteringInfoResultDeser() {
        return GetMeteringInfoResultJsonDeser.getInstance();
    }


    @Override
    public Serializer getListDataConnectorRequestSer() {
        return ListDataConnectorRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getListDataConnectorResultDeser() {
        return ListDataConnectorResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getCreateDataConnectorRequestSer() {
        return CreateDataConnectorRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getCreateDataConnectorResultDeser() {
        return CreateDataConnectorResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getGetDataConnectorRequestSer() {
        return GetDataConnectorRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetDataConnectorResultDeser() {
        return GetDataConnectorResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getDeleteDataConnectorRequestSer() {
        return DeleteDataConnectorRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getDeleteDataConnectorResultDeser() {
        return DeleteDataConnectorResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getReloadDataConnectorRequestSer() {
        return ReloadDataConnectorRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getReloadDataConnectorResultDeser() {
        return ReloadDataConnectorResultJsonDeser.getInstance();
    }
    //

    @Override
    public Serializer getGetDataConnectorShardStatusRequestSer() {
        return GetDataConnectorShardStatusRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetDataConnectorShardStatusResultDeser() {
        return GetDataConnectorShardStatusResultJsonDeser.getInstance();
    }
    
    @Override
    public Serializer getAppendDataConnectorFieldRequestSer() {
        return AppendDataConnectorFieldRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getAppendDataConnectorFieldResultDeser() {
        return AppendDataConnectorFieldResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getCreateSubscriptionRequestSer() throws DatahubClientException {
        return CreateSubscriptionRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getCreateSubscriptionResultDeser() throws DatahubClientException {
        return CreateSubscriptionResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getDeleteSubscriptionRequestSer() throws DatahubClientException {
        return DeleteSubscriptionRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getDeleteSubscriptionResultDeser() throws DatahubClientException {
        return DeleteSubscriptionResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getGetOffsetRequestSer() throws DatahubClientException {
        return GetOffsetRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetOffsetResultDeser() throws DatahubClientException {
        return GetOffsetResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getGetSubscriptionRequestSer() throws DatahubClientException {
        return GetSubscriptionRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetSubscriptionResultDeser() throws DatahubClientException {
        return GetSubscriptionResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getQuerySubscriptionRequestSer() throws DatahubClientException {
        return QuerySubscriptionRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getQuerySubscriptionResultDeser() throws DatahubClientException {
        return QuerySubscriptionResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getCommitOffsetRequestSer() throws DatahubClientException {
        return CommitOffsetRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getCommitOffsetResultDeser() throws DatahubClientException {
        return CommitOffsetResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getUpdateSubscriptionRequestSer() throws DatahubClientException {
        return UpdateSubscriptionRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getUpdateSubscriptionResultDerser() throws DatahubClientException {
        return UpdateSubscriptionResultJsonDeser.getInstance();
    }

    @Override
    public Serializer getGetDataConnectorDoneTimeRequestSer() throws DatahubClientException {
        return GetDataConnectorDoneTimeRequestJsonSer.getInstance();
    }

    @Override
    public Deserializer getGetDataConnectorDoneTimeResultDeser() throws DatahubClientException {
        return GetDataConnectorDoneTimeResultJsonDeser.getInstance();
    }

    private JsonSerializerFactory() {
    }

    private static JsonSerializerFactory instance;

    public static JsonSerializerFactory getInstance() {
        if (instance == null) {
            instance = new JsonSerializerFactory();
        }
        return instance;
    }

	@Override
	public Serializer getUpdateSubscriptionStateRequestSer()
			throws DatahubClientException {
		return UpdateSubscriptionStateRequestJsonSer.getInstance();
	}

	@Override
	public Deserializer getUpdateSubscriptionStateResultDerser()
			throws DatahubClientException {
		return UpdateSubscriptionStateResultJsonDeser.getInstance();
	}

	@Override
	public Serializer getInitOffsetContextRequestSer()
			throws DatahubClientException {
		return InitOffsetContextRequestJsonSer.getInstance();
	}

	@Override
	public Deserializer getInitOffsetContextResultDerser()
			throws DatahubClientException {
		return InitOffsetContextResultJsonDeser.getInstance();
	}

	@Override
	public Serializer getResetOffsetRequestSer()
			throws DatahubClientException {
		return ResetOffsetRequestJsonSer.getInstance();
	}

	@Override
	public Deserializer getResetOffsetResultDeser()
			throws DatahubClientException {
		return ResetOffsetResultJsonDeser.getInstance();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy