org.infinispan.remoting
Interface InboundInvocationHandler

All Known Implementing Classes:
InboundInvocationHandlerImpl

public interface InboundInvocationHandler

A globally scoped component, that is able to locate named caches and invoke remotely originating calls on the appropriate cache. The primary goal of this component is to act as a bridge between the globally scoped RpcManager and named-cache scoped components.

Since:
4.0
Author:
Manik Surtani

Method Summary
 void applyState(String cacheName, InputStream i)
          Applies state onto a named cache.
 void generateState(String cacheName, OutputStream o)
          Generates state from a named cache.
 Response handle(CacheRpcCommand command)
          Invokes a command on the cache, from a remote source.
 

Method Detail

handle

Response handle(CacheRpcCommand command)
                throws Throwable
Invokes a command on the cache, from a remote source.

Parameters:
command - command to invoke
Returns:
results, if any, from the invocation
Throws:
Throwable - in the event of problems executing the command

applyState

void applyState(String cacheName,
                InputStream i)
                throws StateTransferException
Applies state onto a named cache. State to be read from the stream. Implementations should NOT close the stream after use.

Parameters:
cacheName - name of cache to apply state
i - stream to read from
Throws:
StateTransferException - in the event of problems

generateState

void generateState(String cacheName,
                   OutputStream o)
                   throws StateTransferException
Generates state from a named cache. State to be written to the stream. Implementations should NOT close the stream after use.

Parameters:
cacheName - name of cache from which to generate state
o - stream to write state to
Throws:
StateTransferException - in the event of problems

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.