OperatorClient
extends BaseClient
in package
implements
OperatorClientInterface
Table of Contents
Interfaces
Constants
- RETRYABLE_ERRORS : mixed = [\Temporal\Client\GRPC\StatusCode::RESOURCE_EXH...
Methods
- __construct() : mixed
- AddOrUpdateRemoteCluster() : AddOrUpdateRemoteClusterResponse
- AddOrUpdateRemoteCluster adds or updates remote cluster.
- AddSearchAttributes() : AddSearchAttributesResponse
- AddSearchAttributes add custom search attributes.
- close() : void
- Close the communication channel associated with this stub.
- create() : static
- CreateNexusEndpoint() : CreateNexusEndpointResponse
- Create a Nexus endpoint. This will fail if an endpoint with the same name is already registered with a status of ALREADY_EXISTS.
- createSSL() : static
- DeleteNamespace() : DeleteNamespaceResponse
- DeleteNamespace synchronously deletes a namespace and asynchronously reclaims all namespace resources.
- DeleteNexusEndpoint() : DeleteNexusEndpointResponse
- Delete an incoming Nexus service by ID.
- getConnection() : ConnectionInterface
- Note: Experimental
- getContext() : ContextInterface
- GetNexusEndpoint() : GetNexusEndpointResponse
- Get a registered Nexus endpoint by ID. The returned version can be used for optimistic updates.
- ListClusters() : ListClustersResponse
- ListClusters returns information about Temporal clusters.
- ListNexusEndpoints() : ListNexusEndpointsResponse
- List all Nexus endpoints for the cluster, sorted by ID in ascending order. Set page_token in the request to the next_page_token field of the previous response to get the next page of results.
- ListSearchAttributes() : ListSearchAttributesResponse
- ListSearchAttributes returns comprehensive information about search attributes.
- RemoveRemoteCluster() : RemoveRemoteClusterResponse
- RemoveRemoteCluster removes remote cluster.
- RemoveSearchAttributes() : RemoveSearchAttributesResponse
- RemoveSearchAttributes removes custom search attributes.
- UpdateNexusEndpoint() : UpdateNexusEndpointResponse
- Optimistically update a Nexus endpoint based on provided version as obtained via the `GetNexusEndpoint` or `ListNexusEndpointResponse` APIs. This will fail with a status of FAILED_PRECONDITION if the version does not match.
- withAuthKey() : static
- Set the authentication token for the service client.
- withContext() : static
- withInterceptorPipeline() : static
- withPayloadLimits() : static
- createGrpcStub() : BaseStub
- invoke() : mixed
Constants
RETRYABLE_ERRORS
public
mixed
RETRYABLE_ERRORS
= [\Temporal\Client\GRPC\StatusCode::RESOURCE_EXHAUSTED, \Temporal\Client\GRPC\StatusCode::UNAVAILABLE, \Temporal\Client\GRPC\StatusCode::UNKNOWN]
Methods
__construct()
public
final __construct(BaseStub|callable(): BaseStub $serviceClient) : mixed
Parameters
- $serviceClient : BaseStub|callable(): BaseStub
-
Service Client or its factory
Tags
AddOrUpdateRemoteCluster()
AddOrUpdateRemoteCluster adds or updates remote cluster.
public
AddOrUpdateRemoteCluster(AddOrUpdateRemoteClusterRequest $arg[, ContextInterface|null $ctx = null ]) : AddOrUpdateRemoteClusterResponse
Parameters
- $arg : AddOrUpdateRemoteClusterRequest
- $ctx : ContextInterface|null = null
Tags
Return values
AddOrUpdateRemoteClusterResponseAddSearchAttributes()
AddSearchAttributes add custom search attributes.
public
AddSearchAttributes(AddSearchAttributesRequest $arg[, ContextInterface|null $ctx = null ]) : AddSearchAttributesResponse
Returns ALREADY_EXISTS status code if a Search Attribute with any of the specified names already exists Returns INTERNAL status code with temporal.api.errordetails.v1.SystemWorkflowFailure in Error Details if registration process fails,
Parameters
- $arg : AddSearchAttributesRequest
- $ctx : ContextInterface|null = null
Tags
Return values
AddSearchAttributesResponseclose()
Close the communication channel associated with this stub.
public
close() : void
create()
public
static create(non-empty-string $address) : static
Parameters
- $address : non-empty-string
-
Temporal service address in format
host:port
Tags
Return values
staticCreateNexusEndpoint()
Create a Nexus endpoint. This will fail if an endpoint with the same name is already registered with a status of ALREADY_EXISTS.
public
CreateNexusEndpoint(CreateNexusEndpointRequest $arg[, ContextInterface|null $ctx = null ]) : CreateNexusEndpointResponse
Returns the created endpoint with its initial version. You may use this version for subsequent updates.
Parameters
- $arg : CreateNexusEndpointRequest
- $ctx : ContextInterface|null = null
Tags
Return values
CreateNexusEndpointResponsecreateSSL()
public
static createSSL(non-empty-string $address[, non-empty-string|null $crt = null ][, non-empty-string|null $clientKey = null ][, non-empty-string|null $clientPem = null ][, non-empty-string|null $overrideServerName = null ]) : static
Parameters
- $address : non-empty-string
-
Temporal service address in format
host:port - $crt : non-empty-string|null = null
-
Root certificates string or file in PEM format. If null provided, default gRPC root certificates are used.
- $clientKey : non-empty-string|null = null
-
Client private key string or file in PEM format.
- $clientPem : non-empty-string|null = null
-
Client certificate chain string or file in PEM format.
- $overrideServerName : non-empty-string|null = null
Tags
Return values
staticDeleteNamespace()
DeleteNamespace synchronously deletes a namespace and asynchronously reclaims all namespace resources.
public
DeleteNamespace(DeleteNamespaceRequest $arg[, ContextInterface|null $ctx = null ]) : DeleteNamespaceResponse
Parameters
- $arg : DeleteNamespaceRequest
- $ctx : ContextInterface|null = null
Tags
Return values
DeleteNamespaceResponseDeleteNexusEndpoint()
Delete an incoming Nexus service by ID.
public
DeleteNexusEndpoint(DeleteNexusEndpointRequest $arg[, ContextInterface|null $ctx = null ]) : DeleteNexusEndpointResponse
Parameters
- $arg : DeleteNexusEndpointRequest
- $ctx : ContextInterface|null = null
Tags
Return values
DeleteNexusEndpointResponsegetConnection()
Note: Experimental
public
getConnection() : ConnectionInterface
Return values
ConnectionInterfacegetContext()
public
getContext() : ContextInterface
Return values
ContextInterfaceGetNexusEndpoint()
Get a registered Nexus endpoint by ID. The returned version can be used for optimistic updates.
public
GetNexusEndpoint(GetNexusEndpointRequest $arg[, ContextInterface|null $ctx = null ]) : GetNexusEndpointResponse
Parameters
- $arg : GetNexusEndpointRequest
- $ctx : ContextInterface|null = null
Tags
Return values
GetNexusEndpointResponseListClusters()
ListClusters returns information about Temporal clusters.
public
ListClusters(ListClustersRequest $arg[, ContextInterface|null $ctx = null ]) : ListClustersResponse
Parameters
- $arg : ListClustersRequest
- $ctx : ContextInterface|null = null
Tags
Return values
ListClustersResponseListNexusEndpoints()
List all Nexus endpoints for the cluster, sorted by ID in ascending order. Set page_token in the request to the next_page_token field of the previous response to get the next page of results.
public
ListNexusEndpoints(ListNexusEndpointsRequest $arg[, ContextInterface|null $ctx = null ]) : ListNexusEndpointsResponse
An empty next_page_token indicates that there are no more results. During pagination, a newly added service with an ID lexicographically earlier than the previous page's last endpoint's ID may be missed.
Parameters
- $arg : ListNexusEndpointsRequest
- $ctx : ContextInterface|null = null
Tags
Return values
ListNexusEndpointsResponseListSearchAttributes()
ListSearchAttributes returns comprehensive information about search attributes.
public
ListSearchAttributes(ListSearchAttributesRequest $arg[, ContextInterface|null $ctx = null ]) : ListSearchAttributesResponse
Parameters
- $arg : ListSearchAttributesRequest
- $ctx : ContextInterface|null = null
Tags
Return values
ListSearchAttributesResponseRemoveRemoteCluster()
RemoveRemoteCluster removes remote cluster.
public
RemoveRemoteCluster(RemoveRemoteClusterRequest $arg[, ContextInterface|null $ctx = null ]) : RemoveRemoteClusterResponse
Parameters
- $arg : RemoveRemoteClusterRequest
- $ctx : ContextInterface|null = null
Tags
Return values
RemoveRemoteClusterResponseRemoveSearchAttributes()
RemoveSearchAttributes removes custom search attributes.
public
RemoveSearchAttributes(RemoveSearchAttributesRequest $arg[, ContextInterface|null $ctx = null ]) : RemoveSearchAttributesResponse
Returns NOT_FOUND status code if a Search Attribute with any of the specified names is not registered
Parameters
- $arg : RemoveSearchAttributesRequest
- $ctx : ContextInterface|null = null
Tags
Return values
RemoveSearchAttributesResponseUpdateNexusEndpoint()
Optimistically update a Nexus endpoint based on provided version as obtained via the `GetNexusEndpoint` or `ListNexusEndpointResponse` APIs. This will fail with a status of FAILED_PRECONDITION if the version does not match.
public
UpdateNexusEndpoint(UpdateNexusEndpointRequest $arg[, ContextInterface|null $ctx = null ]) : UpdateNexusEndpointResponse
Returns the updated endpoint with its updated version. You may use this version for subsequent updates. You don't need to increment the version yourself. The server will increment the version for you after each update.
Parameters
- $arg : UpdateNexusEndpointRequest
- $ctx : ContextInterface|null = null
Tags
Return values
UpdateNexusEndpointResponsewithAuthKey()
Set the authentication token for the service client.
public
withAuthKey(Stringable|string $key) : static
This is the equivalent of providing an "Authorization" header with "Bearer " + the given key. This will overwrite any "Authorization" header that may be on the context before each request to the Temporal service. You may pass your own Stringable implementation to be able to change the key dynamically.
Parameters
- $key : Stringable|string
Tags
Return values
staticwithContext()
public
withContext(ContextInterface $context) : static
Parameters
- $context : ContextInterface
Return values
staticwithInterceptorPipeline()
public
final withInterceptorPipeline(null|Pipeline<GrpcClientInterceptor, object> $pipeline) : static
Parameters
- $pipeline : null|Pipeline<GrpcClientInterceptor, object>
Return values
staticwithPayloadLimits()
public
final withPayloadLimits(PayloadLimitOptions $options, LoggerInterface $logger) : static
Parameters
- $options : PayloadLimitOptions
- $logger : LoggerInterface
Tags
Return values
staticcreateGrpcStub()
protected
static createGrpcStub(string $address, array<string|int, mixed> $options) : BaseStub
Parameters
- $address : string
-
Temporal service address in format
host:port - $options : array<string|int, mixed>
Return values
BaseStubinvoke()
protected
invoke(non-empty-string $method, object $arg[, ContextInterface|null $ctx = null ]) : mixed
Parameters
- $method : non-empty-string
-
RPC method name
- $arg : object
- $ctx : ContextInterface|null = null