Package org.omg.Messaging

Examples of org.omg.Messaging.RoutingTypeRange


        return ROUTING_POLICY_TYPE.value;
    }

    public Policy copy()
    {
        RoutingTypeRange copy_range =
                                new RoutingTypeRange (routing_range.min,
                                                      routing_range.max);
        return new RoutingPolicy (copy_range);
    }
View Full Code Here


    }

    @Test
    public void testRoutingPolicy()
    {
        RoutingTypeRange rtr = new RoutingTypeRange ((short)10, (short)20);
        Any value = create_any();
        RoutingTypeRangeHelper.insert (value, rtr);
        RoutingPolicy p = (RoutingPolicy)create_policy
        (
            ROUTING_POLICY_TYPE.value,
            value
        );
        assertEquals (ROUTING_POLICY_TYPE.value, p.policy_type());
        RoutingTypeRange outRTR = p.routing_range();
        assertEquals (rtr.min, outRTR.min);
        assertEquals (rtr.max, outRTR.max);

        RoutingPolicy p2 = (RoutingPolicy)p.copy();
        RoutingTypeRange otherRTR = p2.routing_range();
        assertEquals (outRTR.min, otherRTR.min);
        assertEquals (outRTR.max, otherRTR.max);

        p.destroy();
        p2.destroy();
View Full Code Here

        return ROUTING_POLICY_TYPE.value;
    }

    public Policy copy()
    {
        RoutingTypeRange copy_range =
                                new RoutingTypeRange (routing_range.min,
                                                      routing_range.max);
        return new RoutingPolicy (copy_range);
    }
View Full Code Here

TOP

Related Classes of org.omg.Messaging.RoutingTypeRange

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.