Module org.elasticsearch.server
Package org.elasticsearch.action
Class RemoteClusterActionType<Response extends TransportResponse>
java.lang.Object
org.elasticsearch.action.RemoteClusterActionType<Response>
An action which can be invoked by
RemoteClusterClient.execute(org.elasticsearch.action.RemoteClusterActionType<Response>, Request, org.elasticsearch.action.ActionListener<Response>)
. The implementation must be registered with the transport service.
Typically, every RemoteClusterActionType
instance is a global constant (i.e. a public static final field) called
REMOTE_TYPE
.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteClusterActionType
(String name, Writeable.Reader<Response> responseReader) Construct anActionType
which callers can execute on a remote cluster using aRemoteClusterClient
, typically obtained fromClient.getRemoteClusterClient(java.lang.String, java.util.concurrent.Executor)
). -
Method Summary
Modifier and TypeMethodDescriptionemptyResponse
(String name) boolean
Get a reader that can read a response from aStreamInput
.int
hashCode()
name()
The name of the action.toString()
-
Constructor Details
-
RemoteClusterActionType
Construct anActionType
which callers can execute on a remote cluster using aRemoteClusterClient
, typically obtained fromClient.getRemoteClusterClient(java.lang.String, java.util.concurrent.Executor)
).- Parameters:
name
- The name of the action, which must be unique across actions. This is the ID of the transport action which is sent to the handling node in the remote cluster.responseReader
- Defines how to deserialize responses received from executions of this action.
-
-
Method Details
-
emptyResponse
-
name
The name of the action. Must be unique across actions. -
getResponseReader
Get a reader that can read a response from aStreamInput
. -
equals
-
hashCode
public int hashCode() -
toString
-