|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.nutch.ipc.RPC
A simple RPC mechanism. A protocol is a Java interface. All parameters and return types must be one of:
boolean
, byte
,
char
, short
, int
, long
,
float
, double
, or void
; orString
; orWritable
; or
Method Summary | |
static Object[] |
call(Method method,
Object[][] params,
InetSocketAddress[] addrs)
Expert: Make multiple, parallel calls to a set of servers. |
static Object |
getProxy(Class protocol,
InetSocketAddress addr)
Construct a client-side proxy object that implements the named protocol, talking to a server at the named address. |
static Server |
getServer(Object instance,
int port)
Construct a server for a protocol implementation instance listening on a port. |
static Server |
getServer(Object instance,
int port,
int numHandlers,
boolean verbose)
Construct a server for a protocol implementation instance listening on a port. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Object getProxy(Class protocol, InetSocketAddress addr)
public static Object[] call(Method method, Object[][] params, InetSocketAddress[] addrs) throws IOException
IOException
public static Server getServer(Object instance, int port)
public static Server getServer(Object instance, int port, int numHandlers, boolean verbose)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |