Class SinksImpl
java.lang.Object
org.apache.pulsar.functions.worker.rest.api.ComponentImpl
org.apache.pulsar.functions.worker.rest.api.SinksImpl
- All Implemented Interfaces:
Component<PulsarWorkerService>,Sinks<PulsarWorkerService>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pulsar.functions.worker.rest.api.ComponentImpl
ComponentImpl.GetStatus<X,T> -
Field Summary
Fields inherited from class org.apache.pulsar.functions.worker.rest.api.ComponentImpl
componentType, workerServiceSupplier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.pulsar.common.io.ConfigFieldDefinition>org.apache.pulsar.common.io.SinkConfiggetSinkInfo(String tenant, String namespace, String componentName) org.apache.pulsar.common.policies.data.SinkStatus.SinkInstanceStatus.SinkInstanceStatusDatagetSinkInstanceStatus(String tenant, String namespace, String sinkName, String instanceId, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps) List<org.apache.pulsar.common.io.ConnectorDefinition>org.apache.pulsar.common.policies.data.SinkStatusgetSinkStatus(String tenant, String namespace, String componentName, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps) voidregisterSink(String tenant, String namespace, String sinkName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String sinkPkgUrl, org.apache.pulsar.common.io.SinkConfig sinkConfig, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps) Update a function.voidupdateSink(String tenant, String namespace, String sinkName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String sinkPkgUrl, org.apache.pulsar.common.io.SinkConfig sinkConfig, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions) Update a function.Methods inherited from class org.apache.pulsar.functions.worker.rest.api.ComponentImpl
allowFunctionOps, changeFunctionInstanceStatus, changeFunctionStatusAllInstances, componentInstanceStatusRequestValidate, componentStatusRequestValidate, createPackagePath, deregisterFunction, downloadFunction, downloadFunction, downloadPackageFile, getBuiltinFunctionClassLoader, getClassLoaderFromPackage, getFunctionInfo, getFunctionsInstanceStats, getFunctionState, getFunctionStats, getListOfConnectors, getPackageFile, getPackageFile, isAuthorizedRole, isSuperUser, listFunctions, putFunctionState, reloadConnectors, restartFunctionInstance, restartFunctionInstances, startFunctionInstance, startFunctionInstances, stopFunctionInstance, stopFunctionInstances, triggerFunction, uploadFunction, validateGetFunctionInstanceRequestParams, validateGetFunctionRequestParams, workerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.functions.worker.service.api.Component
deregisterFunction, deregisterFunction, downloadFunction, downloadFunction, downloadFunction, downloadFunction, downloadFunction, getFunctionInfo, getFunctionsInstanceStats, getFunctionState, getFunctionStats, getListOfConnectors, listFunctions, putFunctionState, reloadConnectors, restartFunctionInstance, restartFunctionInstances, startFunctionInstance, startFunctionInstances, stopFunctionInstance, stopFunctionInstances, triggerFunction, uploadFunction, workerMethods inherited from interface org.apache.pulsar.functions.worker.service.api.Sinks
registerSink, updateSink
-
Constructor Details
-
SinksImpl
-
-
Method Details
-
registerSink
public void registerSink(String tenant, String namespace, String sinkName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String sinkPkgUrl, org.apache.pulsar.common.io.SinkConfig sinkConfig, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps) Description copied from interface:SinksUpdate a function.- Specified by:
registerSinkin interfaceSinks<PulsarWorkerService>- Parameters:
tenant- The tenant of a Pulsar Sinknamespace- The namespace of a Pulsar SinksinkName- The name of a Pulsar SinkuploadedInputStream- Input stream of bytesfileDetail- A form-data content disposition headersinkPkgUrl- URL path of the Pulsar Sink packagesinkConfig- Configuration of Pulsar SinkclientRole- Client role for running the Pulsar SinkclientAuthenticationDataHttps- Authentication status of the http client
-
updateSink
public void updateSink(String tenant, String namespace, String sinkName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String sinkPkgUrl, org.apache.pulsar.common.io.SinkConfig sinkConfig, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions) Description copied from interface:SinksUpdate a function.- Specified by:
updateSinkin interfaceSinks<PulsarWorkerService>- Parameters:
tenant- The tenant of a Pulsar Sinknamespace- The namespace of a Pulsar SinksinkName- The name of a Pulsar SinkuploadedInputStream- Input stream of bytesfileDetail- A form-data content disposition headersinkPkgUrl- URL path of the Pulsar Sink packagesinkConfig- Configuration of Pulsar SinkclientRole- Client role for running the Pulsar SinkclientAuthenticationDataHttps- Authentication status of the http clientupdateOptions- Options while updating the sink
-
getSinkInstanceStatus
public org.apache.pulsar.common.policies.data.SinkStatus.SinkInstanceStatus.SinkInstanceStatusData getSinkInstanceStatus(String tenant, String namespace, String sinkName, String instanceId, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps) - Specified by:
getSinkInstanceStatusin interfaceSinks<PulsarWorkerService>
-
getSinkStatus
public org.apache.pulsar.common.policies.data.SinkStatus getSinkStatus(String tenant, String namespace, String componentName, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps) - Specified by:
getSinkStatusin interfaceSinks<PulsarWorkerService>
-
getSinkInfo
public org.apache.pulsar.common.io.SinkConfig getSinkInfo(String tenant, String namespace, String componentName) - Specified by:
getSinkInfoin interfaceSinks<PulsarWorkerService>
-
getSinkList
- Specified by:
getSinkListin interfaceSinks<PulsarWorkerService>
-
getSinkConfigDefinition
- Specified by:
getSinkConfigDefinitionin interfaceSinks<PulsarWorkerService>
-