public class Server.Connection
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
UserGroupInformation |
attemptingUser |
| Constructor | Description |
|---|---|
Connection(java.nio.channels.SocketChannel channel,
long lastContact,
int ingressPort,
boolean isOnAuxiliaryPort) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getEstablishedQOP() |
|
java.lang.String |
getHostAddress() |
|
java.net.InetAddress |
getHostInetAddress() |
|
int |
getIngressPort() |
|
long |
getLastContact() |
|
int |
getRemotePort() |
|
Server |
getServer() |
|
int |
getServiceClass() |
Get service class for connection
|
boolean |
isOnAuxiliaryPort() |
|
int |
readAndProcess() |
This method reads in a non-blocking fashion from the channel:
this method is called repeatedly when data is present in the channel;
when it has enough data to process one rpc it processes that rpc.
|
void |
setLastContact(long lastContact) |
|
void |
setServiceClass(int serviceClass) |
Set service class for connection
|
java.lang.String |
toString() |
public UserGroupInformation attemptingUser
public Connection(java.nio.channels.SocketChannel channel,
long lastContact,
int ingressPort,
boolean isOnAuxiliaryPort)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getHostAddress()
public int getIngressPort()
public int getRemotePort()
public java.net.InetAddress getHostInetAddress()
public java.lang.String getEstablishedQOP()
public boolean isOnAuxiliaryPort()
public void setLastContact(long lastContact)
public long getLastContact()
public Server getServer()
public int readAndProcess()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException - - internal error that should not be returned to
client, typically failure to respond to clientjava.lang.InterruptedException - - if the thread is interrupted.public int getServiceClass()
public void setServiceClass(int serviceClass)
serviceClass - the serviceClass to setCopyright © 2008–2025 Apache Software Foundation. All rights reserved.