Add javadocs to TransportActionProxy
This commit is contained in:
parent
7b95c2f54c
commit
1ef7115bbd
|
@ -9,7 +9,11 @@ import org.elasticsearch.threadpool.ThreadPool;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.UncheckedIOException;
|
import java.io.UncheckedIOException;
|
||||||
|
|
||||||
// nocommit javadocs
|
/**
|
||||||
|
* TransportActionProxy allows an arbitrary action to be executed on a defined target node while the initial request is send to a second
|
||||||
|
* node that acts as a request proxy to the target node. This is useful if a node is not directly connected to a target node but is
|
||||||
|
* connected to an intermediate node that establishes a transitive connection.
|
||||||
|
*/
|
||||||
public final class TransportActionProxy {
|
public final class TransportActionProxy {
|
||||||
|
|
||||||
private TransportActionProxy() {} // no instance
|
private TransportActionProxy() {} // no instance
|
||||||
|
@ -119,6 +123,9 @@ public final class TransportActionProxy {
|
||||||
return "internal:transport/proxy/" + action;
|
return "internal:transport/proxy/" + action;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Wraps the actual request in a proxy request object that encodes the target node.
|
||||||
|
*/
|
||||||
public static TransportRequest wrapRequest(DiscoveryNode node, TransportRequest request) {
|
public static TransportRequest wrapRequest(DiscoveryNode node, TransportRequest request) {
|
||||||
return new ProxyRequest<>(request, node);
|
return new ProxyRequest<>(request, node);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue