Package io.lionweb.repoclient.impl
Class ClientForBulkAPIs
java.lang.Object
io.lionweb.repoclient.impl.ClientForBulkAPIs
- All Implemented Interfaces:
BulkAPIClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RepoClientConfigurationprotected final com.google.gson.Gsonprotected static final okhttp3.MediaType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected okhttp3.Request.BuilderaddGZipCompressionHeader(okhttp3.Request.Builder builder) protected okhttp3.Request.BuilderbuildRequest(String api) protected okhttp3.Request.BuilderbuildRequest(String api, boolean specifyingClientID, boolean specifyingRepository, boolean considerAuthenticationToken, Map<String, String> additionalParams) protected okhttp3.HttpUrl.Builderprotected okhttp3.HttpUrl.Builderprotected okhttp3.Request.BuilderconsiderAuthenticationToken(okhttp3.Request.Builder builder) @Nullable RepositoryVersionTokencreatePartitions(List<Node> partitions) @Nullable RepositoryVersionTokendeletePartitions(List<String> ids) @NotNull LionWebVersionprotected @Nullable RepositoryVersionTokengetRepoVersionFromResponse(String responseBody) ids(int count) protected <R> RperformCall(okhttp3.Request request, io.lionweb.repoclient.impl.LionWebRepoClientImplHelper.ResponseHandler<R> responseHandler) @Nullable RepositoryVersionTokenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.lionweb.repoclient.api.BulkAPIClient
listPartitionsIDs
-
Field Details
-
JSON
protected static final okhttp3.MediaType JSON -
conf
-
gson
protected final com.google.gson.Gson gson
-
-
Constructor Details
-
ClientForBulkAPIs
-
-
Method Details
-
getLionWebVersion
- Specified by:
getLionWebVersionin interfaceBulkAPIClient
-
createPartitions
@Nullable public @Nullable RepositoryVersionToken createPartitions(List<Node> partitions) throws IOException - Specified by:
createPartitionsin interfaceBulkAPIClient- Throws:
IOException
-
deletePartitions
@Nullable public @Nullable RepositoryVersionToken deletePartitions(List<String> ids) throws IOException - Specified by:
deletePartitionsin interfaceBulkAPIClient- Throws:
IOException
-
listPartitions
- Specified by:
listPartitionsin interfaceBulkAPIClient- Throws:
IOException
-
ids
- Specified by:
idsin interfaceBulkAPIClient- Throws:
IOException
-
store
- Specified by:
storein interfaceBulkAPIClient- Throws:
IOException
-
retrieve
- Specified by:
retrievein interfaceBulkAPIClient- Throws:
IOException
-
buildURL
-
buildURL
protected okhttp3.HttpUrl.Builder buildURL(String api, boolean specifyingClientID, boolean specifyingRepository) -
buildRequest
-
buildRequest
-
performCall
protected <R> R performCall(okhttp3.Request request, io.lionweb.repoclient.impl.LionWebRepoClientImplHelper.ResponseHandler<R> responseHandler) throws IOException - Throws:
IOException
-
considerAuthenticationToken
protected okhttp3.Request.Builder considerAuthenticationToken(okhttp3.Request.Builder builder) -
addGZipCompressionHeader
protected okhttp3.Request.Builder addGZipCompressionHeader(okhttp3.Request.Builder builder) -
getRepoVersionFromResponse
@Nullable protected @Nullable RepositoryVersionToken getRepoVersionFromResponse(String responseBody)
-