org.objectweb.dream.protocol.rpc
Interface RPCProtocol
- All Superinterfaces:
- Protocol
- All Known Implementing Classes:
- ProtocolImpl
public interface RPCProtocol
- extends Protocol
RPC Protocol. very early version !!!
export
ExportIdentifier export(Skeleton skeleton,
Map<String,Object> hints)
throws ExportException
- Exports a
Skeleton
interface using this protocol graph. This method
informs the protocol that the provided Skeleton
is willing
to accept connection. The returned export identifier is a specific name for
the exported channel.
- Parameters:
skeleton
- a Skeleton
interface to export.hints
- additional parameters, can be null
.
- Returns:
- an identifier for the exported interface.
- Throws:
ExportException
- if the export process fails.
bind
Stub bind(ExportIdentifier exportId,
Map<String,Object> hints)
throws InvalidExportIdentifierException,
BindException
- Binds to a previously exported
Skeleton
interface designated by the
given export identifier. This methods instantiate a new communication
channel and returns a stub interface on which remote method invocations can
be performed.
- Parameters:
exportId
- the identifier of the exported interface.hints
- additional parameters, can be null
.
- Returns:
- a
stub
interface on which remote invocation can be
performed.
- Throws:
InvalidExportIdentifierException
- if the given export identifier is
incorrect.
BindException
- if the binding process fails.
Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.