A B C D E F G H I J L M N O R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addVariable(String, Object) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Defines a Variable in the `ThreadSpec` and returns a handle to it.
- API_HOST_KEY - Static variable in class io.littlehorse.sdk.common.config.LHConfig
-
The bootstrap host for the LH Server.
- API_PORT_KEY - Static variable in class io.littlehorse.sdk.common.config.LHConfig
-
The bootstrap port for the LH Server.
- applyRequestMetadata(CallCredentials.RequestInfo, Executor, CallCredentials.MetadataApplier) - Method in class io.littlehorse.sdk.common.auth.OAuthCredentialsProvider
- assignTaskToUser(String, WfRunVariable) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a User Task Node, and assigns it to a specific user
- assignTaskToUser(String, WfRunVariable, WfRunVariable) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a User Task Node, and assigns it to a specific user
- assignTaskToUser(String, WfRunVariable, String) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a User Task Node, and assigns it to a specific user
- assignTaskToUser(String, String) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a User Task Node, and assigns it to a specific user
- assignTaskToUser(String, String, String) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a User Task Node, and assigns it to a specific user
- assignTaskToUserGroup(String, WfRunVariable) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a User Task Node, and assigns it to a group of users.
- assignTaskToUserGroup(String, String) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a User Task Node, and assigns it to a group of users.
- AuthorizationServerException - Exception in io.littlehorse.sdk.common.auth
- AuthorizationServerException(String) - Constructor for exception io.littlehorse.sdk.common.auth.AuthorizationServerException
- AuthorizationServerException(Throwable) - Constructor for exception io.littlehorse.sdk.common.auth.AuthorizationServerException
B
- body(ThreadBuilder) - Method in interface io.littlehorse.sdk.wfsdk.IfElseBody
-
This is the body of Workflow Code.
C
- CA_CERT_KEY - Static variable in class io.littlehorse.sdk.common.config.LHConfig
-
Optional location of CA Cert File.
- CLIENT_CERT_KEY - Static variable in class io.littlehorse.sdk.common.config.LHConfig
-
Optional location of Client Cert file.
- CLIENT_ID_KEY - Static variable in class io.littlehorse.sdk.common.config.LHConfig
-
The Client Id.
- CLIENT_KEY_KEY - Static variable in class io.littlehorse.sdk.common.config.LHConfig
-
Optional location of Client Private Key File.
- close() - Method in class io.littlehorse.sdk.worker.LHTaskWorker
-
Cleanly shuts down the Task Worker.
- compile() - Method in class io.littlehorse.sdk.usertask.UserTaskSchema
- compileAndSaveToDisk(String) - Method in class io.littlehorse.sdk.wfsdk.Workflow
-
Writes out the PutWfSpecRequest in JSON form in a directory.
- compileWfToJson() - Method in class io.littlehorse.sdk.wfsdk.Workflow
-
Returns the associated PutWfSpecRequest in JSON form.
- compileWorkflow() - Method in class io.littlehorse.sdk.wfsdk.Workflow
-
Compiles this Workflow into a `WfSpec`.
- complete() - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds an EXIT node with no Failure defined.
- condition(Object, Comparator, Object) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Returns a WorkflowCondition that can be used in `ThreadBuilder::doIf()` or `ThreadBuilder::doElse()`.
- configNames() - Static method in class io.littlehorse.sdk.common.config.LHConfig
-
Returns a set of all config names.
D
- DEFAULT_PUBLIC_LISTENER - Static variable in class io.littlehorse.sdk.common.config.LHConfig
- description() - Method in annotation type io.littlehorse.sdk.usertask.annotations.UserTaskField
- displayName() - Method in annotation type io.littlehorse.sdk.usertask.annotations.UserTaskField
- doesTaskDefExist() - Method in class io.littlehorse.sdk.worker.LHTaskWorker
-
Checks if the TaskDef exists
- doesWfSpecExist(LHPublicApiGrpc.LHPublicApiBlockingStub) - Method in class io.littlehorse.sdk.wfsdk.Workflow
-
Checks if the WfSpec exists
- doesWfSpecExist(LHPublicApiGrpc.LHPublicApiBlockingStub, Integer) - Method in class io.littlehorse.sdk.wfsdk.Workflow
-
Checks if the WfSpec exists for a given version
- doIf(WorkflowCondition, IfElseBody) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Conditionally executes some workflow code; equivalent to an if() statement in programming.
- doIfElse(WorkflowCondition, IfElseBody, IfElseBody) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Conditionally executes one of two workflow code branches; equivalent to an if/else statement in programming.
- doWhile(WorkflowCondition, ThreadFunc) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Conditionally executes some workflow code; equivalent to an while() statement in programming.
E
- execute(String, Object...) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a TASK node to the ThreadSpec.
F
- fail(Object, String, String) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds an EXIT node with a Failure defined.
- fail(String, String) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds an EXIT node with a Failure defined.
- format(String, WfRunVariable...) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Creates a formatted string using WfRunVariables as arguments.
G
- getAccessToken() - Method in class io.littlehorse.sdk.common.auth.OAuthClient
- getApiBootstrapHost() - Method in class io.littlehorse.sdk.common.config.LHConfig
- getApiBootstrapPort() - Method in class io.littlehorse.sdk.common.config.LHConfig
- getAsyncStub() - Method in class io.littlehorse.sdk.common.config.LHConfig
-
Gets an Async gRPC stub for the LH Public API on the configured host/port, which is generally the loadbalancer url.
- getAsyncStub(String, int) - Method in class io.littlehorse.sdk.common.config.LHConfig
-
Gets an Async gRPC stub for the LH Public API on a specified host and port.
- getAttemptNumber() - Method in class io.littlehorse.sdk.worker.WorkerContext
-
Returns the attemptNumber of the NodeRun that's being executed.
- getBlockingStub() - Method in class io.littlehorse.sdk.common.config.LHConfig
-
Gets a Blocking gRPC stub for the LH Public API on the configured host/port, which is generally the loadbalancer url.
- getBlockingStub(String, int) - Method in class io.littlehorse.sdk.common.config.LHConfig
-
Gets a Blocking gRPC stub for the LH Public API on a specified host and port.
- getClientId() - Method in class io.littlehorse.sdk.common.config.LHConfig
- getConnectListener() - Method in class io.littlehorse.sdk.common.config.LHConfig
-
Returns the name of the listener to connect to.
- getIdempotencyKey() - Method in class io.littlehorse.sdk.worker.WorkerContext
-
Returns an idempotency key that can be used to make calls to upstream api's idempotent across TaskRun Retries.
- getLogOutput() - Method in class io.littlehorse.sdk.worker.WorkerContext
-
Returns the current logOutput.
- getName() - Method in class io.littlehorse.sdk.wfsdk.Workflow
-
Gets the workflow name passed at
Workflow.newWorkflow(String, ThreadFunc) - getNodeRunId() - Method in class io.littlehorse.sdk.worker.WorkerContext
-
Returns the NodeRun ID for the Task that was just scheduled.
- getRequiredExternalEventDefNames() - Method in class io.littlehorse.sdk.wfsdk.Workflow
-
Returns the names of all `ExternalEventDef`s used by this workflow.
- getRequiredTaskDefNames() - Method in class io.littlehorse.sdk.wfsdk.Workflow
-
Returns the names of all `TaskDef`s used by this workflow.
- getScheduledTime() - Method in class io.littlehorse.sdk.worker.WorkerContext
-
Returns the time at which the task was scheduled by the processor.
- getTaskDef(String) - Method in class io.littlehorse.sdk.common.config.LHConfig
-
Gets the `TaskDefPb` for a given taskDefName.
- getTaskDefName() - Method in class io.littlehorse.sdk.worker.LHTaskWorker
-
`TaskDef` to execute
- getTaskRunId() - Method in class io.littlehorse.sdk.worker.WorkerContext
- getTaskWorkerVersion() - Method in class io.littlehorse.sdk.common.config.LHConfig
-
Returns the TaskWorker Version of this worker.
- getUser() - Method in class io.littlehorse.sdk.worker.WorkerContext
- getUserGroup() - Method in class io.littlehorse.sdk.worker.WorkerContext
- getWfRunId() - Method in class io.littlehorse.sdk.worker.WorkerContext
-
Returns the Id of the WfRun for the NodeRun that's being executed.
- getWorkerThreads() - Method in class io.littlehorse.sdk.common.config.LHConfig
-
Returns the number of worker threads to run.
H
- handleException(NodeOutput, String, ThreadFunc) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a Failure Handler to the Node specified by the provided NodeOutput.
- HANDLER_INPUT_VAR - Static variable in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
This is the reserved Variable Name that can be used as a WfRunVariable in an Interrupt Handler or Exception Handler thread.
I
- IfElseBody - Interface in io.littlehorse.sdk.wfsdk
-
Functional interface representing a body of Workflow code to be executed inside an if or else condition.
- io.littlehorse.sdk.common.auth - package io.littlehorse.sdk.common.auth
- io.littlehorse.sdk.common.config - package io.littlehorse.sdk.common.config
- io.littlehorse.sdk.usertask - package io.littlehorse.sdk.usertask
- io.littlehorse.sdk.usertask.annotations - package io.littlehorse.sdk.usertask.annotations
- io.littlehorse.sdk.wfsdk - package io.littlehorse.sdk.wfsdk
- io.littlehorse.sdk.worker - package io.littlehorse.sdk.worker
- isExpired() - Method in class io.littlehorse.sdk.common.auth.TokenStatus
- isOauth() - Method in class io.littlehorse.sdk.common.config.LHConfig
J
- javaTypeToLHType - Static variable in class io.littlehorse.sdk.worker.LHTaskWorker
- jsonPath(String) - Method in interface io.littlehorse.sdk.wfsdk.NodeOutput
-
Valid only for output of the JSON_OBJ or JSON_ARR types.
- jsonPath(String) - Method in interface io.littlehorse.sdk.wfsdk.WfRunVariable
-
Valid only for output of the JSON_OBJ or JSON_ARR types.
L
- LHConfig - Class in io.littlehorse.sdk.common.config
-
This class is used to configure the LHClient class.
- LHConfig() - Constructor for class io.littlehorse.sdk.common.config.LHConfig
-
Creates an LHClientConfig.
- LHConfig(String) - Constructor for class io.littlehorse.sdk.common.config.LHConfig
-
Creates an LHClientConfig with config props in a specified .properties file.
- LHConfig(Map<String, Object>) - Constructor for class io.littlehorse.sdk.common.config.LHConfig
-
Creates an LHClientConfig with provided config values.
- LHConfig(Properties) - Constructor for class io.littlehorse.sdk.common.config.LHConfig
-
Creates an LHClientConfig with provided config values.
- LHFormatString - Interface in io.littlehorse.sdk.wfsdk
- LHTaskMethod - Annotation Type in io.littlehorse.sdk.worker
-
Annotation used to indicate that the annotated method should be used as the method to execute a Task in the LH Java Task Worker library.
- LHTaskWorker - Class in io.littlehorse.sdk.worker
-
The LHTaskWorker talks to the LH Servers and executes a specified Task Method every time a Task is scheduled.
- LHTaskWorker(Object, String, LHConfig) - Constructor for class io.littlehorse.sdk.worker.LHTaskWorker
-
Creates an LHTaskWorker given an Object that has an annotated LHTaskMethod, and a configuration Properties object.
- log(Object) - Method in class io.littlehorse.sdk.worker.WorkerContext
-
Provides a way to push data into the log output.
M
- mutate(WfRunVariable, VariableMutationType, Object) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a VariableMutation to the last Node
N
- newWorkflow(String, ThreadFunc) - Static method in class io.littlehorse.sdk.wfsdk.Workflow
-
Creates a new Workflow with the provided name and entrypoint thread function.
- NodeOutput - Interface in io.littlehorse.sdk.wfsdk
-
`NodeOutput` represents the output of a Node execution.
- NUM_WORKER_THREADS_KEY - Static variable in class io.littlehorse.sdk.common.config.LHConfig
-
The number of worker threads to run.
O
- OAUTH_ACCESS_TOKEN_URL - Static variable in class io.littlehorse.sdk.common.config.LHConfig
- OAUTH_CLIENT_ID_KEY - Static variable in class io.littlehorse.sdk.common.config.LHConfig
- OAUTH_CLIENT_SECRET_KEY - Static variable in class io.littlehorse.sdk.common.config.LHConfig
- OAuthClient - Class in io.littlehorse.sdk.common.auth
- OAuthClient(OAuthConfig) - Constructor for class io.littlehorse.sdk.common.auth.OAuthClient
- OAuthConfig - Class in io.littlehorse.sdk.common.auth
- OAuthConfig() - Constructor for class io.littlehorse.sdk.common.auth.OAuthConfig
- OAuthCredentialsProvider - Class in io.littlehorse.sdk.common.auth
- OAuthCredentialsProvider(OAuthClient) - Constructor for class io.littlehorse.sdk.common.auth.OAuthCredentialsProvider
R
- reassignToGroupOnDeadline(UserTaskOutput, int) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Schedule Reassignment of a UserTask to a userGroup upon reaching the Deadline.
- reassignToUserOnDeadline(UserTaskOutput, String, int) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Schedule Reassignment of a UserTask to a userId upon reaching the Deadline.
- registerInterruptHandler(String, ThreadFunc) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Registers an Interrupt Handler, such that when an ExternalEvent arrives with the specified type, this ThreadRun is interrupted.
- registerTaskDef() - Method in class io.littlehorse.sdk.worker.LHTaskWorker
-
Deploys the TaskDef object to the LH Server.
- registerTaskDef(boolean) - Method in class io.littlehorse.sdk.worker.LHTaskWorker
-
Deploys the TaskDef object to the LH Server.
- registerWfSpec(LHPublicApiGrpc.LHPublicApiBlockingStub) - Method in class io.littlehorse.sdk.wfsdk.Workflow
-
Deploys the WfSpec object to the LH Server.
- required() - Method in annotation type io.littlehorse.sdk.usertask.annotations.UserTaskField
S
- scheduleReminderTask(UserTaskOutput, int, String, Object...) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a Reminder Task to a User Task Node.
- scheduleReminderTask(UserTaskOutput, WfRunVariable, String, Object...) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a Reminder Task to a User Task Node.
- SERVER_CONNECT_LISTENER_KEY - Static variable in class io.littlehorse.sdk.common.config.LHConfig
-
Listener to connect to.
- sleepSeconds(Object) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a SLEEP node which makes the ThreadRun sleep for a specified number of seconds.
- sleepUntil(WfRunVariable) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a SLEEP node which makes the ThreadRun sleep until a specified timestamp, provided as an INT WfRunVariable (note that INT in LH is a 64-bit integer).
- SpawnedThread - Interface in io.littlehorse.sdk.wfsdk
-
This is the output of `ThreadBuilder::spawnThread()`.
- spawnThread(ThreadFunc, String, Map<String, Object>) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a SPAWN_THREAD node to the ThreadSpec, which spawns a Child ThreadRun whose ThreadSpec is determined by the provided ThreadFunc.
- start() - Method in class io.littlehorse.sdk.worker.LHTaskWorker
-
Starts polling for and executing tasks.
T
- TASK_WORKER_VERSION_KEY - Static variable in class io.littlehorse.sdk.common.config.LHConfig
- ThreadBuilder - Interface in io.littlehorse.sdk.wfsdk
-
This interface is what is used to define the logic of a ThreaSpec in a ThreadFunc.
- ThreadFunc - Interface in io.littlehorse.sdk.wfsdk
-
A ThreadFunc is the interface an object must implement in order to define a `ThreadSpec` programmatically using the Java Library.
- threadFunction(ThreadBuilder) - Method in interface io.littlehorse.sdk.wfsdk.ThreadFunc
-
This function defines the logic of a `ThreadSpec`.
- timeout(int) - Method in interface io.littlehorse.sdk.wfsdk.NodeOutput
-
Adds a timeout to a Node.
- TokenStatus - Class in io.littlehorse.sdk.common.auth
- TokenStatus(String, Instant, String) - Constructor for class io.littlehorse.sdk.common.auth.TokenStatus
U
- UserTaskField - Annotation Type in io.littlehorse.sdk.usertask.annotations
- UserTaskOutput - Interface in io.littlehorse.sdk.wfsdk
- UserTaskSchema - Class in io.littlehorse.sdk.usertask
- UserTaskSchema(Object, String) - Constructor for class io.littlehorse.sdk.usertask.UserTaskSchema
V
- value() - Method in annotation type io.littlehorse.sdk.worker.LHTaskMethod
-
This is the value of the annotation; it corresponds to the name of the TaskDef executed by the annotated Method.
W
- waitForEvent(String) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds an EXTERNAL_EVENT node which blocks until an 'ExternalEvent' of the specified type arrives.
- waitForThreads(SpawnedThread...) - Method in interface io.littlehorse.sdk.wfsdk.ThreadBuilder
-
Adds a WAIT_FOR_THREAD node which waits for a Child ThreadRun to complete.
- WfRunVariable - Interface in io.littlehorse.sdk.wfsdk
-
A WfRunVariable is a handle on a Variable in a WfSpec.
- withIndex(IndexType) - Method in interface io.littlehorse.sdk.wfsdk.WfRunVariable
-
Enables the storage of variables with a Non-null
IndexType. - withJsonIndex(String, IndexType) - Method in interface io.littlehorse.sdk.wfsdk.WfRunVariable
-
Enables the storage of specific attributes inside a Json Variable.
- withNotes(LHFormatString) - Method in interface io.littlehorse.sdk.wfsdk.UserTaskOutput
- withNotes(WfRunVariable) - Method in interface io.littlehorse.sdk.wfsdk.UserTaskOutput
- withNotes(String) - Method in interface io.littlehorse.sdk.wfsdk.UserTaskOutput
- withRetentionHours(int) - Method in class io.littlehorse.sdk.wfsdk.Workflow
-
Add the hours of life that the workflow will have in the system
- WorkerContext - Class in io.littlehorse.sdk.worker
-
This class contains runtime information about the specific WfRun and NodeRun that is being executed by the Task Worker.
- WorkerContext(ScheduledTask, Date) - Constructor for class io.littlehorse.sdk.worker.WorkerContext
-
Constructor for internal use by the Task Worker Library.
- Workflow - Class in io.littlehorse.sdk.wfsdk
-
The Workflow class represents a `WfSpec` object in the API.
- WorkflowCondition - Interface in io.littlehorse.sdk.wfsdk
-
A WorkflowCondition is a representation of a boolean expression.
All Classes All Packages