org.jboss.remoting.samples.chat.server
Class ChatManager
java.lang.Object
org.jboss.remoting.samples.chat.server.ChatManager
- All Implemented Interfaces:
- ServerInvocationHandler
public class ChatManager
- extends java.lang.Object
- implements ServerInvocationHandler
Field Summary |
protected static org.jboss.logging.Logger |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.jboss.logging.Logger log
ChatManager
public ChatManager()
initialize
protected void initialize()
throws InitializeException
- Throws:
InitializeException
shutdown
public void shutdown()
invoke
public java.lang.Object invoke(InvocationRequest invocation)
throws java.lang.Throwable
- Description copied from interface:
ServerInvocationHandler
- called to handle a specific invocation. Please take care to make sure
implementations are thread safe and can, and often will, receive concurrent
calls on this method.
- Specified by:
invoke
in interface ServerInvocationHandler
- Returns:
-
- Throws:
java.lang.Throwable
list
protected java.util.ArrayList list(java.lang.Object[] args)
throws RemoteConnectionException,
ShuttingDownException
- Throws:
RemoteConnectionException
ShuttingDownException
createChat
protected InvokerLocator createChat(java.lang.Object[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
join
protected void join(java.lang.Object[] args)
throws NameInUseException,
ShuttingDownException
- Throws:
NameInUseException
ShuttingDownException
leave
protected void leave(java.lang.Object[] args)
throws ShuttingDownException
- Throws:
ShuttingDownException
setMBeanServer
public void setMBeanServer(javax.management.MBeanServer server)
- Description copied from interface:
ServerInvocationHandler
- set the mbean server that the handler can reference
- Specified by:
setMBeanServer
in interface ServerInvocationHandler
setInvoker
public void setInvoker(ServerInvoker invoker)
- Description copied from interface:
ServerInvocationHandler
- set the invoker that owns this handler
- Specified by:
setInvoker
in interface ServerInvocationHandler
addListener
public void addListener(InvokerCallbackHandler callbackHandler)
- Description copied from interface:
ServerInvocationHandler
- Adds a callback handler that will listen for callbacks from
the server invoker handler.
- Specified by:
addListener
in interface ServerInvocationHandler
removeListener
public void removeListener(InvokerCallbackHandler callbackHandler)
- Description copied from interface:
ServerInvocationHandler
- Removes the callback handler that was listening for callbacks
from the server invoker handler.
- Specified by:
removeListener
in interface ServerInvocationHandler
Copyright © 1998-2005 JBoss Inc . All Rights Reserved.