public abstract class ComponentImpl extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
ComponentImpl.GetStatus<S,T> |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType |
componentType |
protected Supplier<WorkerService> |
workerServiceSupplier |
| Constructor and Description |
|---|
ComponentImpl(Supplier<WorkerService> workerServiceSupplier,
org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType componentType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowFunctionOps(org.apache.pulsar.common.naming.NamespaceName namespaceName,
String role,
AuthenticationDataSource authenticationData) |
void |
changeFunctionInstanceStatus(String tenant,
String namespace,
String componentName,
String instanceId,
boolean start,
URI uri,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
void |
changeFunctionStatusAllInstances(String tenant,
String namespace,
String componentName,
boolean start,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
protected void |
componentInstanceStatusRequestValidate(String tenant,
String namespace,
String componentName,
int instanceId,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
protected void |
componentStatusRequestValidate(String tenant,
String namespace,
String componentName,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
static String |
createPackagePath(String tenant,
String namespace,
String functionName,
String fileName) |
void |
deregisterFunction(String tenant,
String namespace,
String componentName,
String clientRole,
AuthenticationDataHttps clientAuthenticationDataHttps) |
javax.ws.rs.core.StreamingOutput |
downloadFunction(String path,
String clientRole,
AuthenticationDataHttps clientAuthenticationDataHttps) |
javax.ws.rs.core.StreamingOutput |
downloadFunction(String tenant,
String namespace,
String componentName,
String clientRole,
AuthenticationDataHttps clientAuthenticationDataHttps) |
org.apache.pulsar.common.functions.FunctionConfig |
getFunctionInfo(String tenant,
String namespace,
String componentName,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
org.apache.pulsar.common.policies.data.FunctionStats.FunctionInstanceStats.FunctionInstanceStatsData |
getFunctionsInstanceStats(String tenant,
String namespace,
String componentName,
String instanceId,
URI uri,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
org.apache.pulsar.common.functions.FunctionState |
getFunctionState(String tenant,
String namespace,
String functionName,
String key,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
org.apache.pulsar.common.policies.data.FunctionStats |
getFunctionStats(String tenant,
String namespace,
String componentName,
URI uri,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
List<org.apache.pulsar.common.io.ConnectorDefinition> |
getListOfConnectors() |
boolean |
isAuthorizedRole(String tenant,
String namespace,
String clientRole,
AuthenticationDataSource authenticationData) |
boolean |
isSuperUser(String clientRole) |
List<String> |
listFunctions(String tenant,
String namespace,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
void |
putFunctionState(String tenant,
String namespace,
String functionName,
String key,
org.apache.pulsar.common.functions.FunctionState state,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
void |
reloadConnectors(String clientRole) |
void |
restartFunctionInstance(String tenant,
String namespace,
String componentName,
String instanceId,
URI uri,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
void |
restartFunctionInstances(String tenant,
String namespace,
String componentName,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
void |
startFunctionInstance(String tenant,
String namespace,
String componentName,
String instanceId,
URI uri,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
void |
startFunctionInstances(String tenant,
String namespace,
String componentName,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
void |
stopFunctionInstance(String tenant,
String namespace,
String componentName,
String instanceId,
URI uri,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
void |
stopFunctionInstances(String tenant,
String namespace,
String componentName,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
String |
triggerFunction(String tenant,
String namespace,
String functionName,
String input,
InputStream uploadedInputStream,
String topic,
String clientRole,
AuthenticationDataSource clientAuthenticationDataHttps) |
void |
uploadFunction(InputStream uploadedInputStream,
String path,
String clientRole) |
protected void |
validateGetFunctionInstanceRequestParams(String tenant,
String namespace,
String componentName,
org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType componentType,
String instanceId) |
protected void |
validateGetFunctionRequestParams(String tenant,
String namespace,
String subject,
org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType componentType) |
protected WorkerService |
worker() |
protected final Supplier<WorkerService> workerServiceSupplier
protected final org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType componentType
public ComponentImpl(Supplier<WorkerService> workerServiceSupplier, org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType componentType)
protected WorkerService worker()
public void deregisterFunction(String tenant, String namespace, String componentName, String clientRole, AuthenticationDataHttps clientAuthenticationDataHttps)
public org.apache.pulsar.common.functions.FunctionConfig getFunctionInfo(String tenant, String namespace, String componentName, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public void stopFunctionInstance(String tenant, String namespace, String componentName, String instanceId, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public void startFunctionInstance(String tenant, String namespace, String componentName, String instanceId, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public void changeFunctionInstanceStatus(String tenant, String namespace, String componentName, String instanceId, boolean start, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public void restartFunctionInstance(String tenant, String namespace, String componentName, String instanceId, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public void stopFunctionInstances(String tenant, String namespace, String componentName, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public void startFunctionInstances(String tenant, String namespace, String componentName, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public void changeFunctionStatusAllInstances(String tenant, String namespace, String componentName, boolean start, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public void restartFunctionInstances(String tenant, String namespace, String componentName, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public org.apache.pulsar.common.policies.data.FunctionStats getFunctionStats(String tenant, String namespace, String componentName, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public org.apache.pulsar.common.policies.data.FunctionStats.FunctionInstanceStats.FunctionInstanceStatsData getFunctionsInstanceStats(String tenant, String namespace, String componentName, String instanceId, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public List<String> listFunctions(String tenant, String namespace, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public List<org.apache.pulsar.common.io.ConnectorDefinition> getListOfConnectors()
public void reloadConnectors(String clientRole)
public String triggerFunction(String tenant, String namespace, String functionName, String input, InputStream uploadedInputStream, String topic, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public org.apache.pulsar.common.functions.FunctionState getFunctionState(String tenant, String namespace, String functionName, String key, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public void putFunctionState(String tenant, String namespace, String functionName, String key, org.apache.pulsar.common.functions.FunctionState state, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public void uploadFunction(InputStream uploadedInputStream, String path, String clientRole)
public javax.ws.rs.core.StreamingOutput downloadFunction(String tenant, String namespace, String componentName, String clientRole, AuthenticationDataHttps clientAuthenticationDataHttps)
public javax.ws.rs.core.StreamingOutput downloadFunction(String path, String clientRole, AuthenticationDataHttps clientAuthenticationDataHttps)
protected void validateGetFunctionInstanceRequestParams(String tenant, String namespace, String componentName, org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType componentType, String instanceId) throws IllegalArgumentException
IllegalArgumentExceptionprotected void validateGetFunctionRequestParams(String tenant, String namespace, String subject, org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType componentType) throws IllegalArgumentException
IllegalArgumentExceptionpublic static String createPackagePath(String tenant, String namespace, String functionName, String fileName)
public boolean isAuthorizedRole(String tenant, String namespace, String clientRole, AuthenticationDataSource authenticationData) throws PulsarAdminException
PulsarAdminExceptionprotected void componentStatusRequestValidate(String tenant, String namespace, String componentName, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
protected void componentInstanceStatusRequestValidate(String tenant, String namespace, String componentName, int instanceId, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps)
public boolean isSuperUser(String clientRole)
public boolean allowFunctionOps(org.apache.pulsar.common.naming.NamespaceName namespaceName,
String role,
AuthenticationDataSource authenticationData)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.