Package org.omg.TimeBase

Examples of org.omg.TimeBase.UtcT


        }
    }

    private TimingServer setReplyStartTime (TimingServer server, long unixTime)
    {
        UtcT corbaTime = Time.corbaTime (unixTime);

        org.omg.CORBA.ORB orb = setup.getClientOrb();
        org.omg.CORBA.Any any = orb.create_any();
        UtcTHelper.insert (any, corbaTime);
        try
View Full Code Here


        }
    }

    private TimingServer setReplyEndTime (TimingServer server, long unixTime)
    {
        UtcT corbaTime = Time.corbaTime (unixTime);

        org.omg.CORBA.ORB orb = setup.getClientOrb();
        org.omg.CORBA.Any any = orb.create_any();
        UtcTHelper.insert (any, corbaTime);
        try
View Full Code Here

            currentCtxt = new HashMap<INVOCATION_KEY, UtcT>();

            invocationStack.push (currentCtxt);
        }

        UtcT requestEndTime = currentCtxt.get (INVOCATION_KEY.REQUEST_END_TIME);
        UtcT replyEndTime = currentCtxt.get (INVOCATION_KEY.REPLY_END_TIME);

        if (!disableClientOrbPolicies)
        {
            // Compute the deadlines for this request based on any absolute or
            // relative timing policies that have been specified.  Compute this
View Full Code Here

        /**
         * We must just peek as we do not want to remove the context from
         * the ArrayDeque
         */
        Map<INVOCATION_KEY, UtcT> currentCtxt = invocationStack.peek();
        UtcT reqET = null;
        UtcT repET = null;

        if (currentCtxt != null)
        {
            reqET = currentCtxt.get (INVOCATION_KEY.REQUEST_END_TIME);
            repET = currentCtxt.get (INVOCATION_KEY.REPLY_END_TIME);
View Full Code Here

    }


    private TimingServer setReplyEndTime (TimingServer server, long unixTime)
    {
        UtcT corbaTime = Time.corbaTime (unixTime);

        org.omg.CORBA.ORB orb = setup.getClientOrb();
        org.omg.CORBA.Any any = orb.create_any();
        UtcTHelper.insert (any, corbaTime);
        try
View Full Code Here

     * Converts the given unixTime into a CORBA UtcT.
     * @param unixTime the number of milliseconds since 1970/01/01 00:00 UTC.
     */
    public static UtcT corbaTime(long unixTime)
    {
        UtcT result = new UtcT();

        result.time = (unixTime * 10000) + UNIX_OFFSET;

        // unixTime is always UTC.
        // Therefore, no time zone offset.
View Full Code Here

        if (corbaUnits < 0)
        {
            return null;
        }

        UtcT result = corbaTime();
        result.time = result.time + corbaUnits;
        return result;
    }
View Full Code Here

        structuredEvent_.header.variable_header = new Property[1];

        Date _now = new Date();

        Any _startTimeAny = getORB().create_any();
        UtcT _startTime = Time.corbaTime(_now);
        UtcTHelper.insert(_startTimeAny, _startTime);

        structuredEvent_.header.variable_header[0] = new Property(StartTime.value, _startTimeAny);

        Message _event = messageFactory_.newMessage(structuredEvent_, proxyConsumerMock_);
View Full Code Here

        testStructured_.header.variable_header = new Property[1];

        Date _now = new Date();

        Any _any = getORB().create_any();
        UtcT _utc = Time.corbaTime(_now);
        UtcTHelper.insert(_any, _utc);

        testStructured_.header.variable_header[0] = new Property(StopTime.value, _any);

        MockControl proxyConsumerControl = MockControl.createNiceControl(IProxyConsumer.class);
View Full Code Here

        return REQUEST_END_TIME_POLICY_TYPE.value;
    }

    public Policy copy()
    {
        UtcT copy_time = new UtcT (end_time.time,
                                   end_time.inacclo,
                                   end_time.inacchi,
                                   end_time.tdf);

        return new RequestEndTimePolicy (copy_time);
View Full Code Here

TOP

Related Classes of org.omg.TimeBase.UtcT

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.