Class JobRunnerResponse
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.core.transport.TransportResponse
org.opensearch.core.action.ActionResponse
org.opensearch.jobscheduler.transport.response.JobRunnerResponse
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
public class JobRunnerResponse
extends org.opensearch.core.action.ActionResponse
Response from extensions indicating the status of the ScheduledJobRunner invocation
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.core.transport.TransportResponse
org.opensearch.core.transport.TransportResponse.EmptyNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionJobRunnerResponse(boolean jobRunnerStatus) Instantiates a new Job Runner ResponseJobRunnerResponse(byte[] responseParams) Instantiates a new Job Runner Response by wrapping the given byte array within aStreamInputJobRunnerResponse(org.opensearch.core.common.io.stream.StreamInput in) Instantiates a new Job Runner Response fromStreamInput -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddress
-
Constructor Details
-
JobRunnerResponse
public JobRunnerResponse(boolean jobRunnerStatus) Instantiates a new Job Runner Response- Parameters:
jobRunnerStatus- the run status of the extension job runner
-
JobRunnerResponse
Instantiates a new Job Runner Response fromStreamInput- Parameters:
in- is the byte stream input used to de-serialize the message.- Throws:
IOException- IOException when message de-serialization fails.
-
JobRunnerResponse
Instantiates a new Job Runner Response by wrapping the given byte array within aStreamInput- Parameters:
responseParams- in bytes array used to de-serialize the message.- Throws:
IOException- when message de-serialization fails.
-
-
Method Details
-
writeTo
- Throws:
IOException
-
getJobRunnerStatus
public boolean getJobRunnerStatus()
-