Class SourcesImpl
java.lang.Object
org.apache.pulsar.client.admin.internal.BaseResource
org.apache.pulsar.client.admin.internal.ComponentResource
org.apache.pulsar.client.admin.internal.SourcesImpl
-
Field Summary
Fields inherited from class org.apache.pulsar.client.admin.internal.BaseResource
auth, readTimeoutMs -
Constructor Summary
ConstructorsConstructorDescriptionSourcesImpl(javax.ws.rs.client.WebTarget web, org.apache.pulsar.client.api.Authentication auth, org.asynchttpclient.AsyncHttpClient asyncHttpClient, long readTimeoutMs) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateSource(SourceConfig sourceConfig, String fileName) createSourceAsync(SourceConfig sourceConfig, String fileName) voidcreateSourceWithUrl(SourceConfig sourceConfig, String pkgUrl) createSourceWithUrlAsync(SourceConfig sourceConfig, String pkgUrl) voiddeleteSource(String cluster, String namespace, String function) deleteSourceAsync(String tenant, String namespace, String function) getSourceAsync(String tenant, String namespace, String sourceName) getSourceStatus(String tenant, String namespace, String sourceName) getSourceStatus(String tenant, String namespace, String sourceName, int id) getSourceStatusAsync(String tenant, String namespace, String sourceName) getSourceStatusAsync(String tenant, String namespace, String sourceName, int id) listSources(String tenant, String namespace) listSourcesAsync(String tenant, String namespace) voidvoidrestartSource(String tenant, String namespace, String functionName) voidrestartSource(String tenant, String namespace, String functionName, int instanceId) restartSourceAsync(String tenant, String namespace, String functionName) restartSourceAsync(String tenant, String namespace, String functionName, int instanceId) voidstartSource(String tenant, String namespace, String sourceName) voidstartSource(String tenant, String namespace, String sourceName, int instanceId) startSourceAsync(String tenant, String namespace, String sourceName) startSourceAsync(String tenant, String namespace, String sourceName, int instanceId) voidstopSource(String tenant, String namespace, String sourceName) voidstopSource(String tenant, String namespace, String sourceName, int instanceId) stopSourceAsync(String tenant, String namespace, String sourceName) stopSourceAsync(String tenant, String namespace, String sourceName, int instanceId) voidupdateSource(SourceConfig sourceConfig, String fileName) voidupdateSource(SourceConfig sourceConfig, String fileName, UpdateOptions updateOptions) updateSourceAsync(SourceConfig sourceConfig, String fileName) updateSourceAsync(SourceConfig sourceConfig, String fileName, UpdateOptions updateOptions) voidupdateSourceWithUrl(SourceConfig sourceConfig, String pkgUrl) voidupdateSourceWithUrl(SourceConfig sourceConfig, String pkgUrl, UpdateOptions updateOptions) updateSourceWithUrlAsync(SourceConfig sourceConfig, String pkgUrl) updateSourceWithUrlAsync(SourceConfig sourceConfig, String pkgUrl, UpdateOptions updateOptions) Methods inherited from class org.apache.pulsar.client.admin.internal.ComponentResource
addAuthHeaders, objectReader, objectWriterMethods inherited from class org.apache.pulsar.client.admin.internal.BaseResource
asyncDeleteRequest, asyncDeleteRequest, asyncGetRequest, asyncGetRequest, asyncGetRequest, asyncGetRequest, asyncPostRequest, asyncPostRequestWithResponse, asyncPutRequest, getApiException, getApiException, getReasonFromServer, request, requestAsync, sync
-
Constructor Details
-
SourcesImpl
public SourcesImpl(javax.ws.rs.client.WebTarget web, org.apache.pulsar.client.api.Authentication auth, org.asynchttpclient.AsyncHttpClient asyncHttpClient, long readTimeoutMs)
-
-
Method Details
-
listSources
- Specified by:
listSourcesin interfaceSources- Throws:
PulsarAdminException
-
listSourcesAsync
- Specified by:
listSourcesAsyncin interfaceSources
-
getSource
public SourceConfig getSource(String tenant, String namespace, String sourceName) throws PulsarAdminException - Specified by:
getSourcein interfaceSources- Throws:
PulsarAdminException
-
getSourceAsync
public CompletableFuture<SourceConfig> getSourceAsync(String tenant, String namespace, String sourceName) - Specified by:
getSourceAsyncin interfaceSources
-
getSourceStatus
public SourceStatus getSourceStatus(String tenant, String namespace, String sourceName) throws PulsarAdminException - Specified by:
getSourceStatusin interfaceSources- Throws:
PulsarAdminException
-
getSourceStatusAsync
public CompletableFuture<SourceStatus> getSourceStatusAsync(String tenant, String namespace, String sourceName) - Specified by:
getSourceStatusAsyncin interfaceSources
-
getSourceStatus
public SourceStatus.SourceInstanceStatus.SourceInstanceStatusData getSourceStatus(String tenant, String namespace, String sourceName, int id) throws PulsarAdminException - Specified by:
getSourceStatusin interfaceSources- Throws:
PulsarAdminException
-
getSourceStatusAsync
public CompletableFuture<SourceStatus.SourceInstanceStatus.SourceInstanceStatusData> getSourceStatusAsync(String tenant, String namespace, String sourceName, int id) - Specified by:
getSourceStatusAsyncin interfaceSources
-
createSource
- Specified by:
createSourcein interfaceSources- Throws:
PulsarAdminException
-
createSourceAsync
- Specified by:
createSourceAsyncin interfaceSources
-
createSourceWithUrl
public void createSourceWithUrl(SourceConfig sourceConfig, String pkgUrl) throws PulsarAdminException - Specified by:
createSourceWithUrlin interfaceSources- Throws:
PulsarAdminException
-
createSourceWithUrlAsync
- Specified by:
createSourceWithUrlAsyncin interfaceSources
-
deleteSource
public void deleteSource(String cluster, String namespace, String function) throws PulsarAdminException - Specified by:
deleteSourcein interfaceSources- Throws:
PulsarAdminException
-
deleteSourceAsync
- Specified by:
deleteSourceAsyncin interfaceSources
-
updateSource
public void updateSource(SourceConfig sourceConfig, String fileName, UpdateOptions updateOptions) throws PulsarAdminException - Specified by:
updateSourcein interfaceSources- Throws:
PulsarAdminException
-
updateSourceAsync
public CompletableFuture<Void> updateSourceAsync(SourceConfig sourceConfig, String fileName, UpdateOptions updateOptions) - Specified by:
updateSourceAsyncin interfaceSources
-
updateSource
- Specified by:
updateSourcein interfaceSources- Throws:
PulsarAdminException
-
updateSourceAsync
- Specified by:
updateSourceAsyncin interfaceSources
-
updateSourceWithUrl
public void updateSourceWithUrl(SourceConfig sourceConfig, String pkgUrl, UpdateOptions updateOptions) throws PulsarAdminException - Specified by:
updateSourceWithUrlin interfaceSources- Throws:
PulsarAdminException
-
updateSourceWithUrlAsync
public CompletableFuture<Void> updateSourceWithUrlAsync(SourceConfig sourceConfig, String pkgUrl, UpdateOptions updateOptions) - Specified by:
updateSourceWithUrlAsyncin interfaceSources
-
updateSourceWithUrl
public void updateSourceWithUrl(SourceConfig sourceConfig, String pkgUrl) throws PulsarAdminException - Specified by:
updateSourceWithUrlin interfaceSources- Throws:
PulsarAdminException
-
updateSourceWithUrlAsync
- Specified by:
updateSourceWithUrlAsyncin interfaceSources
-
restartSource
public void restartSource(String tenant, String namespace, String functionName, int instanceId) throws PulsarAdminException - Specified by:
restartSourcein interfaceSources- Throws:
PulsarAdminException
-
restartSourceAsync
public CompletableFuture<Void> restartSourceAsync(String tenant, String namespace, String functionName, int instanceId) - Specified by:
restartSourceAsyncin interfaceSources
-
restartSource
public void restartSource(String tenant, String namespace, String functionName) throws PulsarAdminException - Specified by:
restartSourcein interfaceSources- Throws:
PulsarAdminException
-
restartSourceAsync
public CompletableFuture<Void> restartSourceAsync(String tenant, String namespace, String functionName) - Specified by:
restartSourceAsyncin interfaceSources
-
stopSource
public void stopSource(String tenant, String namespace, String sourceName, int instanceId) throws PulsarAdminException - Specified by:
stopSourcein interfaceSources- Throws:
PulsarAdminException
-
stopSourceAsync
public CompletableFuture<Void> stopSourceAsync(String tenant, String namespace, String sourceName, int instanceId) - Specified by:
stopSourceAsyncin interfaceSources
-
stopSource
public void stopSource(String tenant, String namespace, String sourceName) throws PulsarAdminException - Specified by:
stopSourcein interfaceSources- Throws:
PulsarAdminException
-
stopSourceAsync
- Specified by:
stopSourceAsyncin interfaceSources
-
startSource
public void startSource(String tenant, String namespace, String sourceName, int instanceId) throws PulsarAdminException - Specified by:
startSourcein interfaceSources- Throws:
PulsarAdminException
-
startSourceAsync
public CompletableFuture<Void> startSourceAsync(String tenant, String namespace, String sourceName, int instanceId) - Specified by:
startSourceAsyncin interfaceSources
-
startSource
public void startSource(String tenant, String namespace, String sourceName) throws PulsarAdminException - Specified by:
startSourcein interfaceSources- Throws:
PulsarAdminException
-
startSourceAsync
- Specified by:
startSourceAsyncin interfaceSources
-
getBuiltInSources
- Specified by:
getBuiltInSourcesin interfaceSources- Throws:
PulsarAdminException
-
getBuiltInSourcesAsync
- Specified by:
getBuiltInSourcesAsyncin interfaceSources
-
reloadBuiltInSources
- Specified by:
reloadBuiltInSourcesin interfaceSources- Throws:
PulsarAdminException
-
reloadBuiltInSourcesAsync
- Specified by:
reloadBuiltInSourcesAsyncin interfaceSources
-