|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.oncrpc.RpcProgram
org.apache.hadoop.portmap.RpcProgramPortmap
public class RpcProgramPortmap
An rpcbind request handler.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.hadoop.portmap.PortmapInterface |
---|
PortmapInterface.Procedure |
Field Summary | |
---|---|
static int |
PROGRAM
|
static int |
VERSION
|
Fields inherited from class org.apache.hadoop.oncrpc.RpcProgram |
---|
RPCB_PORT |
Constructor Summary | |
---|---|
RpcProgramPortmap()
|
Method Summary | |
---|---|
XDR |
dump(int xid,
XDR in,
XDR out)
This procedure enumerates all entries in the port mapper's database. |
XDR |
getport(int xid,
XDR in,
XDR out)
Given a program number "prog", version number "vers", and transport protocol number "prot", this procedure returns the port number on which the program is awaiting call requests. |
XDR |
handleInternal(RpcCall rpcCall,
XDR in,
XDR out,
InetAddress client,
org.jboss.netty.channel.Channel channel)
Handle an RPC request. |
protected boolean |
isIdempotent(RpcCall call)
|
XDR |
nullOp(int xid,
XDR in,
XDR out)
This procedure does no work. |
void |
register(PortmapMapping mapping)
Register the program with Portmap or Rpcbind |
XDR |
set(int xid,
XDR in,
XDR out)
When a program first becomes available on a machine, it registers itself with the port mapper program on the same machine. |
XDR |
unset(int xid,
XDR in,
XDR out)
When a program becomes unavailable, it should unregister itself with the port mapper program on the same machine. |
Methods inherited from class org.apache.hadoop.oncrpc.RpcProgram |
---|
getPort, handle, register, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PROGRAM
public static final int VERSION
Constructor Detail |
---|
public RpcProgramPortmap()
Method Detail |
---|
public XDR nullOp(int xid, XDR in, XDR out)
PortmapInterface
nullOp
in interface PortmapInterface
public XDR set(int xid, XDR in, XDR out)
PortmapInterface
set
in interface PortmapInterface
public XDR unset(int xid, XDR in, XDR out)
PortmapInterface
unset
in interface PortmapInterface
public XDR getport(int xid, XDR in, XDR out)
PortmapInterface
getport
in interface PortmapInterface
public XDR dump(int xid, XDR in, XDR out)
PortmapInterface
dump
in interface PortmapInterface
public void register(PortmapMapping mapping)
RpcProgram
register
in class RpcProgram
public XDR handleInternal(RpcCall rpcCall, XDR in, XDR out, InetAddress client, org.jboss.netty.channel.Channel channel)
RpcProgram
handleInternal
in class RpcProgram
rpcCall
- RPC call that is receivedin
- xdr with cursor at reading the remaining bytes of a method callout
- xdr output corresponding to Rpc replyclient
- making the Rpc requestchannel
- connection over which Rpc request is received
protected boolean isIdempotent(RpcCall call)
isIdempotent
in class RpcProgram
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |