org.jboss.remoting.samples.detection.multicast
Class SimpleDetectorServer.SampleInvocationHandler

java.lang.Object
  extended by org.jboss.remoting.samples.detection.multicast.SimpleDetectorServer.SampleInvocationHandler
All Implemented Interfaces:
ServerInvocationHandler
Enclosing class:
SimpleDetectorServer

public static class SimpleDetectorServer.SampleInvocationHandler
extends java.lang.Object
implements ServerInvocationHandler

Simple invocation handler implementation. This is the handler that processes incoming messages from clients.


Constructor Summary
SimpleDetectorServer.SampleInvocationHandler()
           
 
Method Summary
 void addListener(InvokerCallbackHandler callbackHandler)
          Adds a callback handler that will listen for callbacks from the server invoker handler.
 java.lang.Object invoke(InvocationRequest invocation)
          This is the method that is called when a new message comes in from a client.
 void removeListener(InvokerCallbackHandler callbackHandler)
          Removes the callback handler that was listening for callbacks from the server invoker handler.
 void setInvoker(ServerInvoker invoker)
          set the invoker that owns this handler
 void setMBeanServer(javax.management.MBeanServer server)
          set the mbean server that the handler can reference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.remoting.ServerInvocationHandler
toString
 

Constructor Detail

SimpleDetectorServer.SampleInvocationHandler

public SimpleDetectorServer.SampleInvocationHandler()
Method Detail

invoke

public java.lang.Object invoke(InvocationRequest invocation)
                        throws java.lang.Throwable
This is the method that is called when a new message comes in from a client.

Specified by:
invoke in interface ServerInvocationHandler
Parameters:
invocation - the incoming client invocation, encapsulates the message object
Returns:
the response object we send back to the client.
Throws:
java.lang.Throwable

addListener

public void addListener(InvokerCallbackHandler callbackHandler)
Adds a callback handler that will listen for callbacks from the server invoker handler.

Specified by:
addListener in interface ServerInvocationHandler
Parameters:
callbackHandler -

removeListener

public void removeListener(InvokerCallbackHandler callbackHandler)
Removes the callback handler that was listening for callbacks from the server invoker handler.

Specified by:
removeListener in interface ServerInvocationHandler
Parameters:
callbackHandler -

setMBeanServer

public void setMBeanServer(javax.management.MBeanServer server)
set the mbean server that the handler can reference

Specified by:
setMBeanServer in interface ServerInvocationHandler
Parameters:
server -

setInvoker

public void setInvoker(ServerInvoker invoker)
set the invoker that owns this handler

Specified by:
setInvoker in interface ServerInvocationHandler
Parameters:
invoker -


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.