Package uk.org.microbase.notification.db.data

Examples of uk.org.microbase.notification.db.data.Message


  }

  protected void publishSuccessMessage(Message parent)
      throws DBException
  {
    Message msg = new Message();
    msg.setParentMessage(parent.getGuid());
    msg.setPublisherGuid(responderId);
    msg.setResultSetId(parent.getResultSetId());
    msg.setStepId(parent.getStepId());
    msg.setTopicGuid(TOPIC_MSG_PROCESSING_SUCCESS);

    messageDao.publish(msg);
  }
View Full Code Here


    ByteArrayOutputStream stackTrace = new ByteArrayOutputStream();
    PrintStream ps = new PrintStream(stackTrace);
    reason.printStackTrace(ps);
    ps.flush();

    Message msg = new Message();
    msg.setParentMessage(parent.getGuid());
    msg.setPublisherGuid(responderId);
    msg.setResultSetId(parent.getResultSetId());
    msg.setStepId(parent.getStepId());
    msg.setTopicGuid(TOPIC_MSG_PROCESSING_FAILURE);
    msg.getContent().put("Stack trace", new String(stackTrace.toByteArray()));

    messageDao.publish(msg);
  }
View Full Code Here

   * appropriate timestamp.
   */
  protected Message createMessage(
      Message parent, String topicId, String stepId, String userDescription)
  {
    Message msg = Message.createMessageFromExisting(parent);
    msg.setStepId(stepId);
    msg.setPublisherGuid(responderGuid);
    msg.setTopicGuid(topicId);
    msg.setUserDescription(userDescription);
    return msg;
  }
View Full Code Here

TOP

Related Classes of uk.org.microbase.notification.db.data.Message

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.