java.security.PrivilegedExceptionAction<java.lang.Void>, SchedulableExternalCallpublic static class Server.Call extends java.lang.Object implements Schedulable, java.security.PrivilegedExceptionAction<java.lang.Void>
| Constructor | Description |
|---|---|
Call(int id,
int retryCount,
java.lang.Void ignore1,
java.lang.Void ignore2,
RPC.RpcKind kind,
byte[] clientId) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
abortResponse(java.lang.Throwable t) |
|
void |
deferResponse() |
|
CallerContext |
getCallerContext() |
This is overridden only in
Server.Call. |
long |
getClientStateId() |
|
org.apache.hadoop.thirdparty.protobuf.ByteString |
getFederatedNamespaceState() |
|
java.lang.String |
getHostAddress() |
|
java.net.InetAddress |
getHostInetAddress() |
|
int |
getPriorityLevel() |
|
ProcessingDetails |
getProcessingDetails() |
|
java.lang.String |
getProtocol() |
|
int |
getRemotePort() |
|
UserGroupInformation |
getRemoteUser() |
|
long |
getTimestampNanos() |
|
UserGroupInformation |
getUserGroupInformation() |
|
boolean |
isCallCoordinated() |
|
boolean |
isResponseDeferred() |
|
void |
markCallCoordinated(boolean flag) |
|
void |
postponeResponse() |
Allow a IPC response to be postponed instead of sent immediately
after the handler returns from the proxy method.
|
java.lang.Void |
run() |
|
void |
sendResponse() |
|
void |
setClientStateId(long stateId) |
|
void |
setDeferredError(java.lang.Throwable t) |
|
void |
setDeferredResponse(Writable response) |
|
void |
setFederatedNamespaceState(org.apache.hadoop.thirdparty.protobuf.ByteString federatedNamespaceState) |
|
void |
setPriorityLevel(int priorityLevel) |
|
java.lang.String |
toString() |
@VisibleForTesting
public Call(int id,
int retryCount,
java.lang.Void ignore1,
java.lang.Void ignore2,
RPC.RpcKind kind,
byte[] clientId)
public ProcessingDetails getProcessingDetails()
public void setFederatedNamespaceState(org.apache.hadoop.thirdparty.protobuf.ByteString federatedNamespaceState)
public org.apache.hadoop.thirdparty.protobuf.ByteString getFederatedNamespaceState()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Void run()
throws java.lang.Exception
run in interface java.security.PrivilegedExceptionAction<java.lang.Void>java.lang.Exceptionpublic UserGroupInformation getRemoteUser()
public java.net.InetAddress getHostInetAddress()
public int getRemotePort()
public java.lang.String getHostAddress()
public java.lang.String getProtocol()
@Unstable
@LimitedPrivate("HDFS")
public final void postponeResponse()
@Unstable
@LimitedPrivate("HDFS")
public final void sendResponse()
throws java.io.IOException
java.io.IOException@Unstable
@LimitedPrivate("HDFS")
public final void abortResponse(java.lang.Throwable t)
throws java.io.IOException
java.io.IOExceptionpublic UserGroupInformation getUserGroupInformation()
getUserGroupInformation in interface Schedulablepublic CallerContext getCallerContext()
SchedulableServer.Call.
The CallerContext field will be used to carry information
about the user in cases where UGI proves insufficient.
Any other classes that might try to use this method,
will get an UnsupportedOperationException.getCallerContext in interface Schedulablepublic int getPriorityLevel()
getPriorityLevel in interface Schedulablepublic void setPriorityLevel(int priorityLevel)
public long getClientStateId()
public void setClientStateId(long stateId)
public void markCallCoordinated(boolean flag)
public boolean isCallCoordinated()
@Unstable public void deferResponse()
@Unstable public boolean isResponseDeferred()
public void setDeferredResponse(Writable response)
public void setDeferredError(java.lang.Throwable t)
public long getTimestampNanos()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.