public class RpcProgramPortmap extends RpcProgram implements PortmapInterface
PortmapInterface.Procedure| Modifier and Type | Field and Description |
|---|---|
static int |
PROGRAM |
static int |
VERSION |
RPCB_PORT| Constructor and Description |
|---|
RpcProgramPortmap() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
handleInternal(org.jboss.netty.channel.ChannelHandlerContext ctx,
RpcInfo info) |
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.
|
getPort, messageReceived, register, toStringpublic static final int PROGRAM
public static final int VERSION
public XDR nullOp(int xid, XDR in, XDR out)
PortmapInterfacenullOp in interface PortmapInterfacepublic XDR set(int xid, XDR in, XDR out)
PortmapInterfaceset in interface PortmapInterfacepublic XDR unset(int xid, XDR in, XDR out)
PortmapInterfaceunset in interface PortmapInterfacepublic XDR getport(int xid, XDR in, XDR out)
PortmapInterfacegetport in interface PortmapInterfacepublic XDR dump(int xid, XDR in, XDR out)
PortmapInterfacedump in interface PortmapInterfacepublic void register(PortmapMapping mapping)
RpcProgramregister in class RpcProgrampublic void handleInternal(org.jboss.netty.channel.ChannelHandlerContext ctx,
RpcInfo info)
handleInternal in class RpcProgramprotected boolean isIdempotent(RpcCall call)
isIdempotent in class RpcProgramCopyright © 2013 Apache Software Foundation. All rights reserved.