Examples of Message


Examples of com.sissi.protocol.message.Message

   * @see com.sissi.persistent.impl.PersistentMessage#write(com.sissi.protocol.Element)
   */
  @Override
  public Map<String, Object> write(Element element) {
    Map<String, Object> entity = super.write(element);
    Message message = Message.class.cast(element);
    if (message.delay()) {
      entity.put(Dictionary.FIELD_SOURCE, message.getDelay().getFrom());
      entity.put(Dictionary.FIELD_DELAY, message.getDelay().getStamp());
      entity.put(Dictionary.FIELD_FROM, super.jidBuilder.build(element.getFrom()).asStringWithBare());
    } else {
      entity.put(Dictionary.FIELD_SOURCE, this.relationMucMapping.mapping(super.jidBuilder.build(element.getFrom())).jid().asString());
    }
    return entity;
View Full Code Here

Examples of com.sivalabs.springmvc.entities.Message

    user2.addRoles(role1);
   
    userService.createUser(user1);
    userService.createUser(user2);
   
    Message m1 = new Message(0, "Message 1", user1);
    Message m2 = new Message(0, "Message 2", user1);
    Message m3 = new Message(0, "Message 3", user2);

    messageService.createMessage(m1);
    messageService.createMessage(m2);
    messageService.createMessage(m3);
View Full Code Here

Examples of com.sivalabs.ssdemo.entities.Message

    user2.addRoles(role1);
   
    userService.createUser(user1);
    userService.createUser(user2);
   
    Message m1 = new Message(0, "Message 1", user1);
    Message m2 = new Message(0, "Message 2", user1);
    Message m3 = new Message(0, "Message 3", user2);

    messageService.createMessage(m1);
    messageService.createMessage(m2);
    messageService.createMessage(m3);
View Full Code Here

Examples of com.sleepycat.je.rep.utilint.BinaryProtocol.Message

            /*
             * Start the acknowledgment loop. It's very important that this
             * loop be wait/contention free.
             */
            while (!checkShutdown()) {
                Message response = protocol.read(feederReplicaChannel);
                if (checkShutdown()) {

                    /*
                     * Shutdown quickly, in particular, don't update sync
                     * VLSNs.
                     */
                    break;
                }
                masterStatus.assertSync();

                lastResponseTime = System.currentTimeMillis();

                if (response.getOp() == Protocol.HEARTBEAT_RESPONSE) {
                    /* Last response has been updated, keep going. */
                    HeartbeatResponse hbResponse =
                        (Protocol.HeartbeatResponse)response;
                    replicaCBVLSN.updateForReplica(hbResponse);
                    continue;
                } else if (response.getOp() == Protocol.ACK) {

                    /*
                     * Check if a commit has been waiting for this
                     * acknowledgment and signal any waiters.
                     */
                    long txnId = ((Ack) response).getTxnId();
                    if (logger.isLoggable(Level.FINE)) {
                        LoggerUtils.fine(logger, repImpl, "Ack for: " + txnId);
                    }
                    final VLSN commitVLSN =
                    repNode.getFeederTxns().noteReplicaAck(txnId);
                    if ((commitVLSN != null) &&
                        (commitVLSN.compareTo(replicaACKVLSN) > 0)) {
                        replicaACKVLSN = commitVLSN;
                    }
                    continue;
                } else if (response.getOp() == Protocol.SHUTDOWN_RESPONSE) {
                    LoggerUtils.info(logger, repImpl,
                                     "Shutdown confirmed by replica " +
                                     replicaNameIdPair.getName());
                    /* Exit the loop and the thread. */
                    break;
View Full Code Here

Examples of com.springsource.greenhouse.utils.Message

   */
  @RequestMapping(value="/signup", method=RequestMethod.GET)
  public SignupForm signupForm(WebRequest request) {
    Connection<?> connection = ProviderSignInUtils.getConnection(request);
    if (connection != null) {
      request.setAttribute("message", new Message(MessageType.INFO, "Your " + StringUtils.capitalize(connection.getKey().getProviderId()) + " account is not associated with a Greenhouse account. If you're new, please sign up."), WebRequest.SCOPE_REQUEST);
      return SignupForm.fromProviderUser(connection.fetchUserProfile());
    } else {
      return new SignupForm();
    }
  }
View Full Code Here

Examples of com.stepan.domain.Message

        public void actionPerformed(ActionEvent e){
            Object source = e.getSource();
            if (source == textF || source == send){     // add data to messages
                if(textF.getText().trim().length() > 0){
                    messages.add(
                            new Message(textF.getText(), getCurrentUserName()));
                    textF.setText("");
                    showMessages();
                }
            }       
            if (source == quit || source == mi2){       // quit
View Full Code Here

Examples of com.sun.corba.se.impl.protocol.giopmsgheaders.Message

        dispatchByteBuffer = byteBuffer;
    }

    public int getThreadPoolToUse() {
        int poolToUse = 0;
        Message msg = getDispatchHeader();
        // A null msg should never happen. But, we'll be
        // defensive just in case.
        if (msg != null) {
            poolToUse = msg.getThreadPoolToUse();
        }
        return poolToUse;
    }
View Full Code Here

Examples of com.sun.enterprise.ee.server.group.Message

                __logger.log(Level.FINE, "This instance is elected for sending"+
               " messages");
            }
            switch (route) {
                case ONETOALL :
                    Message mesg = MessageFactory.createMessage(route);
                    mesg.setAggregationKey(key);
                    try {
                        cb.messagingCompleted();
                        if (__logger.isLoggable(Level.FINE)) {
                           __logger.fine("Sending ...." + mesg.toString());
                        }
                        gms.getGroupHandle().
                        sendMessage(this.componentName, mesg.toBytes());
                    } catch (Exception e) {
                        e.printStackTrace();
                        // FIX ME.
                    }
                    break;
                case NONE :
                    // No ROUTE lets timeout...
                    if (cb != null)
                        cb.messagingTimedOut();
                    break;
                case ALLTOONE :                                            
                    MessageAggregator mr = obtainMA(key, route)
                    mr.setCallBack(cb);
                    return mr.getBarrier();               
            }
        } else {           
            switch (route) {
                case ALLTOONE :
                    Message mesg = MessageFactory.createMessage(route);
                    mesg.setAggregationKey(key);
                    try {
                        if (__logger.isLoggable(Level.FINE)) {
                            __logger.fine("Sending ALLTOONE ...."
                            + mesg.toString() + "To " + getElectedInstance());
                        }
                        //gms.getGroupHandle().sendMessage
                        //(this.componentName, getElectedInstance(), mesg.toBytes());
                        gms.getGroupHandle().sendMessage
                        (this.componentName, mesg.toBytes());
                    } catch (Exception e) {
                        e.printStackTrace();
                        // FIX ME.
                    }
                    break;
View Full Code Here

Examples of com.sun.jersey.samples.jersey_ejb.entities.Message

        return singleton.getMessages();
    }

    @POST
    public Response addMessage(String msg) throws URISyntaxException {
        Message m = singleton.addMessage(msg);

        URI msgURI = ui.getRequestUriBuilder().path(Integer.toString(m.getUniqueId())).build();

        return Response.created(msgURI).build();
    }
View Full Code Here

Examples of com.sun.jini.tool.envcheck.Reporter.Message

  String source = getString("descfor", d.getImplClassName());
  Object o = envCheck.launch(d, gd, taskName("GetEntriesTask"));
  if (o instanceof String[]) {
      checkEntries((String[]) o, d, source);
  } else if (o instanceof String) {
      Message message = new Message(Reporter.WARNING,
            (String) o,
            getString("dirExp"));
      Reporter.print(message, source);
  } else {
      handleUnexpectedSubtaskReturn(o, source);
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.