Package org.jboss.remoting.invocation

Examples of org.jboss.remoting.invocation.RemoteInvocation


   {
      int i = backChatSize;
     
      while (!shutDownGate.isShuttingDown() && !memberLeaving)
      {
         RemoteInvocation invocation = new RemoteInvocation("send", new Object[] {messages.get(i)});
         Callback callback = new Callback(invocation);
        
         try
         {
            callbackHandler.handleCallback(callback);
View Full Code Here


/*     */     throws Throwable
/*     */   {
/*  52 */     if (!(invocation.getParameter() instanceof RemoteInvocation)) {
/*  53 */       throw new Exception("invalid request format: expecting NameBasedInvocation");
/*     */     }
/*  55 */     RemoteInvocation request = (RemoteInvocation)invocation.getParameter();
/*  56 */     String methodName = request.getMethodName();
/*  57 */     Object[] args = request.getParameters();
/*     */
/*  59 */     if (methodName.equals("getBackChat")) {
/*  60 */       return getBackChat(args);
/*     */     }
/*  62 */     if (methodName.equals("getChatInfo")) {
View Full Code Here

/*     */   }
/*     */
/*     */   public ArrayList list()
/*     */     throws RemoteConnectionException, ShuttingDownException
/*     */   {
/*  82 */     RemoteInvocation invocation = new RemoteInvocation("list", null);
/*     */     try
/*     */     {
/*  86 */       return (ArrayList)this.managerClient.invoke(invocation);
/*     */     }
/*     */     catch (Throwable t)
View Full Code Here

/*     */   {
/* 103 */     Client serverClient = null;
/*     */     try
/*     */     {
/* 108 */       Object[] args = { description, owner };
/* 109 */       RemoteInvocation invocation = new RemoteInvocation("createChat", args);
/* 110 */       InvokerLocator serverLocator = (InvokerLocator)this.managerClient.invoke(invocation);
/* 111 */       serverClient = new Client(serverLocator);
/* 112 */       serverClient.connect();
/*     */     }
/*     */     catch (Throwable e)
View Full Code Here

/*     */   {
/* 162 */     Client serverClient = null;
/*     */     try
/*     */     {
/* 167 */       Object[] args = { key, newMember };
/* 168 */       RemoteInvocation invocation = new RemoteInvocation("join", args);
/* 169 */       this.managerClient.invoke(invocation);
/* 170 */       InvokerLocator serverLocator = new InvokerLocator(key);
/* 171 */       serverClient = new Client(serverLocator);
/* 172 */       serverClient.connect();
/*     */     }
View Full Code Here

/* 261 */       this.serverClient = serverClient;
/*     */     }
/*     */
/*     */     public ArrayList getBackChat() throws RemoteConnectionException, ShuttingDownException
/*     */     {
/* 266 */       RemoteInvocation invocation = new RemoteInvocation("getBackChat", null);
/*     */       try
/*     */       {
/* 270 */         return (ArrayList)this.serverClient.invoke(invocation);
/*     */       }
/*     */       catch (Throwable e)
View Full Code Here

/*     */     }
/*     */
/*     */     public ChatInfo getChatInfo()
/*     */       throws RemoteConnectionException, ShuttingDownException
/*     */     {
/* 281 */       RemoteInvocation invocation = new RemoteInvocation("getChatInfo", null);
/*     */       try
/*     */       {
/* 285 */         return (ChatInfo)this.serverClient.invoke(invocation);
/*     */       }
/*     */       catch (Throwable e)
View Full Code Here

/*     */     }
/*     */
/*     */     public void leave(ChatMember member)
/*     */       throws RemoteConnectionException, ShuttingDownException
/*     */     {
/* 296 */       RemoteInvocation invocation = new RemoteInvocation("leave", new Object[] { member });
/*     */       try
/*     */       {
/* 300 */         this.serverClient.invoke(invocation);
/*     */       }
/*     */       catch (Throwable e)
View Full Code Here

/*     */       }
/*     */     }
/*     */
/*     */     public void send(ChatMessage mesg) throws RemoteConnectionException, ShuttingDownException
/*     */     {
/* 311 */       RemoteInvocation invocation = new RemoteInvocation("send", new Object[] { mesg });
/*     */       try
/*     */       {
/* 315 */         this.serverClient.invoke(invocation);
/*     */       }
/*     */       catch (Throwable e)
View Full Code Here

/*    */   public void handleCallback(Callback callback) throws HandleCallbackException
/*    */   {
/* 31 */     if (!(callback.getParameter() instanceof RemoteInvocation)) {
/* 32 */       throw new HandleCallbackException("invalid request format: expecting RemoteInvocation");
/*    */     }
/* 34 */     RemoteInvocation request = (RemoteInvocation)callback.getParameter();
/* 35 */     String methodName = request.getMethodName();
/* 36 */     Object[] args = request.getParameters();
/*    */
/* 38 */     if (methodName.equals("send")) {
/* 39 */       send(args);
/*    */     }
/* 41 */     else if (methodName.equals("sendMultiple")) {
View Full Code Here

TOP

Related Classes of org.jboss.remoting.invocation.RemoteInvocation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.