Examples of ChatInfo


Examples of org.jboss.remoting.samples.chat.client.ChatInfo


   protected ChatInfo getChatInfo(Object[] args) throws ShuttingDownException
   {
      shutDownGate.check();
      ChatInfo chatInfo = extendedChatInfo.getChatInfo();
      chatInfo.set_currentMembers(extendedChatInfo.getMembers().size());
      chatInfo.set_size(extendedChatInfo.getMessages().size());
      return chatInfo;
   }
View Full Code Here

Examples of org.jboss.remoting.samples.chat.client.ChatInfo

   protected InvokerLocator createChat(Object[] args) throws Exception
   {
      String description = (String) args[0];
      ChatMember owner = (ChatMember) args[1];
     
      ChatInfo chatInfo = new ChatInfo();
      ExtendedChatInfo extendedChatInfo = new ExtendedChatInfo(chatInfo);
     
      Connector connector = new Connector();
      connector.setInvokerLocator(chatServerLocator);
      connector.create();
      connector.addInvocationHandler("chatServer", new ChatServer_Impl(extendedChatInfo, chatStore.getShutDownGate()));
      connector.start();
     
      InvokerLocator chatLocator = connector.getLocator();
      String key = chatLocator.getLocatorURI();
      chatInfo.set_key(key);
      chatInfo.set_description(description);
      chatInfo.set_owner(owner);
      chatInfo.set_origin(new Date());
      extendedChatInfo.addMember(owner);
      chatStore.addChat(extendedChatInfo);
      return chatLocator;
   }
View Full Code Here

Examples of org.jboss.remoting.samples.chat.client.ChatInfo

    Iterator it = c.iterator();
    while (it.hasNext())
    {
      ExtendedChatInfo eci = (ExtendedChatInfo) it.next();
      ChatInfo ci = eci.getChatInfo();
      ci.set_currentMembers(eci.getMembers().size());
      ci.set_size(eci.getMessages().size());
      chatArrayList.add(ci);
      log.debug("eci.getMembers(): " + eci.getMembers());
    }

    return chatArrayList;
View Full Code Here

Examples of org.jboss.remoting.samples.chat.client.ChatInfo

/*     */
/*     */   protected ChatInfo getChatInfo(Object[] args)
/*     */     throws ShuttingDownException
/*     */   {
/* 101 */     this.shutDownGate.check();
/* 102 */     ChatInfo chatInfo = this.extendedChatInfo.getChatInfo();
/* 103 */     chatInfo.set_currentMembers(this.extendedChatInfo.getMembers().size());
/* 104 */     chatInfo.set_size(this.extendedChatInfo.getMessages().size());
/* 105 */     return chatInfo;
/*     */   }
View Full Code Here

Examples of org.jboss.remoting.samples.chat.client.ChatInfo

/*     */     throws Exception
/*     */   {
/* 176 */     String description = (String)args[0];
/* 177 */     ChatMember owner = (ChatMember)args[1];
/*     */
/* 179 */     ChatInfo chatInfo = new ChatInfo();
/* 180 */     ExtendedChatInfo extendedChatInfo = new ExtendedChatInfo(chatInfo);
/*     */
/* 182 */     Connector connector = new Connector();
/* 183 */     connector.setInvokerLocator("socket://localhost");
/* 184 */     connector.create();
/* 185 */     connector.addInvocationHandler("chatServer", new ChatServer_Impl(extendedChatInfo, this.chatStore.getShutDownGate()));
/* 186 */     connector.start();
/*     */
/* 188 */     InvokerLocator chatLocator = connector.getLocator();
/* 189 */     String key = chatLocator.getLocatorURI();
/* 190 */     chatInfo.set_key(key);
/* 191 */     chatInfo.set_description(description);
/* 192 */     chatInfo.set_owner(owner);
/* 193 */     chatInfo.set_origin(new Date());
/* 194 */     extendedChatInfo.addMember(owner);
/* 195 */     this.chatStore.addChat(extendedChatInfo);
/* 196 */     return chatLocator;
/*     */   }
View Full Code Here

Examples of org.jboss.remoting.samples.chat.client.ChatInfo

/*     */
/*  81 */     Iterator it = c.iterator();
/*  82 */     while (it.hasNext())
/*     */     {
/*  84 */       ExtendedChatInfo eci = (ExtendedChatInfo)it.next();
/*  85 */       ChatInfo ci = eci.getChatInfo();
/*  86 */       ci.set_currentMembers(eci.getMembers().size());
/*  87 */       ci.set_size(eci.getMessages().size());
/*  88 */       chatArrayList.add(ci);
/*  89 */       log.debug("eci.getMembers(): " + eci.getMembers());
/*     */     }
/*     */
/*  92 */     return chatArrayList;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.