Examples of newMessage()


Examples of org.fudgemsg.mapping.FudgeSerializer.newMessage()

  protected UniqueId locateOrStoreImpl(final TempTarget target) {
    final FudgeSerializer serializer;
    final MutableFudgeMsg msg;
    final byte[] targetNoUid;
    serializer = new FudgeSerializer(s_fudgeContext);
    msg = serializer.newMessage();
    target.toFudgeMsgImpl(serializer, msg);
    FudgeSerializer.addClassHeader(msg, target.getClass(), TempTarget.class);
    targetNoUid = toByteArray(msg);
    Generation gen = _old;
    if (gen != null) {
View Full Code Here

Examples of org.fudgemsg.mapping.FudgeSerializer.newMessage()

      final HistoricalTimeSeriesResolutionResult hts = resolve();
      if (hts == null) {
        throw new WebApplicationException(Response.Status.NOT_FOUND);
      }
      final FudgeSerializer fsc = new FudgeSerializer(getFudgeContext());
      final MutableFudgeMsg response = fsc.newMessage();
      fsc.addToMessageWithClassHeaders(response, "info", null, hts.getHistoricalTimeSeriesInfo(), ManageableHistoricalTimeSeriesInfo.class);
      if (hts.getAdjuster() != null) {
        response.add("adjustment", hts.getAdjuster().getAdjustment(_identifierBundle).toString());
      }
      return responseOk(response);
View Full Code Here

Examples of org.fudgemsg.mapping.FudgeSerializer.newMessage()

    return s_fudgeContext.deserialize(encoded).getMessage();
  }

  private static void testExpiry(final Expiry expiry) {
    final FudgeSerializer serializer = new FudgeSerializer(s_fudgeContext);
    final MutableFudgeMsg messageIn = serializer.newMessage();
    serializer.addToMessage(messageIn, "test", null, expiry);
    final FudgeMsg messageOut = cycleMessage(messageIn);
    final FudgeDeserializer dsrContext = new FudgeDeserializer(s_fudgeContext);
    final Expiry result = dsrContext.fieldValueToObject(Expiry.class, messageOut.getByName("test"));
    assertEquals(expiry, result);
View Full Code Here

Examples of org.jacorb.notification.MessageFactory.newMessage()

        final List _result = new ArrayList(events.length);
        final MessageFactory _messageFactory = getMessageFactory();

        for (int i = 0; i < events.length; ++i)
        {
            final Message _newMessage = _messageFactory.newMessage(events[i], this);
            checkMessageProperties(_newMessage);
            _result.add(_newMessage);
        }

        return (Message[]) _result.toArray(new Message[_result.size()]);
View Full Code Here

Examples of org.jacorb.notification.MessageFactory.newMessage()

        final List _result = new ArrayList(events.length);
        final MessageFactory _messageFactory = getMessageFactory();
       
        for (int i = 0; i < events.length; ++i)
        {
            final Message _newMessage = _messageFactory.newMessage(events[i], this);
            checkMessageProperties(_newMessage);
            _result.add(_newMessage);
        }
       
        return (Message[]) _result.toArray(new Message[_result.size()]);
View Full Code Here

Examples of org.jacorb.notification.MessageFactory.newMessage()

    private void runEvaluation(Any any, String expr, String expect) throws Exception
    {
        MessageFactory _notificationEventFactory = new DefaultMessageFactory(getConfiguration());

        Message _event = _notificationEventFactory.newMessage(any);
        try
        {
            runEvaluation(_event, expr, expect);
        } finally
        {
View Full Code Here

Examples of org.jacorb.notification.MessageFactory.newMessage()

    private void runEvaluation(StructuredEvent event, String expr, String expect) throws Exception
    {
        // TODO factor out MessageFactory to NotificationTestCase (all tests)
        MessageFactory _notificationEventFactory = new DefaultMessageFactory(getConfiguration());

        Message _event = _notificationEventFactory.newMessage(event);
        runEvaluation(_event, expr, expect);
    }

    private void runEvaluation(Message event, String expr, String expect) throws Exception
    {
View Full Code Here

Examples of org.jacorb.notification.MessageFactory.newMessage()

        final List _result = new ArrayList(events.length);
        final MessageFactory _messageFactory = getMessageFactory();

        for (int i = 0; i < events.length; ++i)
        {
            final Message _newMessage = _messageFactory.newMessage(events[i], this);
            checkMessageProperties(_newMessage);
            _result.add(_newMessage);
        }

        return (Message[]) _result.toArray(new Message[_result.size()]);
View Full Code Here

Examples of org.jacorb.notification.MessageFactory.newMessage()

    private void runEvaluation(Any any, String expr, String expect) throws Exception
    {
        MessageFactory _notificationEventFactory = new DefaultMessageFactory(getORB(), getConfiguration());

        Message _event = _notificationEventFactory.newMessage(any);
        try
        {
            runEvaluation(_event, expr, expect);
        } finally
        {
View Full Code Here

Examples of org.jacorb.notification.MessageFactory.newMessage()

    private void runEvaluation(StructuredEvent event, String expr, String expect) throws Exception
    {
        // TODO factor out MessageFactory to NotificationTestCase (all tests)
        MessageFactory _notificationEventFactory = new DefaultMessageFactory(getORB(), getConfiguration());

        Message _event = _notificationEventFactory.newMessage(event);
        runEvaluation(_event, expr, expect);
    }

    private void runEvaluation(Message event, String expr, String expect) throws Exception
    {
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.