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, toString
public static final int PROGRAM
public static final int VERSION
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 void handleInternal(org.jboss.netty.channel.ChannelHandlerContext ctx, RpcInfo info)
handleInternal
in class RpcProgram
protected boolean isIdempotent(RpcCall call)
isIdempotent
in class RpcProgram
Copyright © 2013 Apache Software Foundation. All rights reserved.