Examples of insert_boolean()


Examples of org.omg.CORBA.Any.insert_boolean()

        TSSConfig config = server.getTssConfig();
        TSSTransportMechConfig transportMech = config.getTransport_mech();
        if (transportMech != null) {
            if (transportMech instanceof TSSSSLTransportConfig) {
                Any any = orb.create_any();
                any.insert_boolean(true);

                try {
                    Policy portPolicy = orb.create_policy(ZERO_PORT_POLICY_ID.value, any);
                    Policy[] overrides = new Policy [] { portPolicy };
                    server.setPolicyOverrides(overrides);
View Full Code Here

Examples of org.omg.CORBA.Any.insert_boolean()

        {
            if (ri.received_exception_id().equals(NO_PERMISSIONHelper.id()))
            {
                Current current = getPICurrent(orb);
                Any flag = orb.create_any();
                flag.insert_boolean(true);
                current.set_slot(this.slot, flag);
                TestUtils.getLogger().debug("doing ForwardRequest: " + ri.operation());
                throw new ForwardRequest(ri.target());
            }
        }
View Full Code Here

Examples of org.omg.CORBA.Any.insert_boolean()

          boolean _rejectNewEvents =
             config.getAttribute(Attributes.REJECT_NEW_EVENTS,
                                 Default.DEFAULT_REJECT_NEW_EVENTS).equals("on");

          Any _rejectNewEventsAny = sORB.create_any();
          _rejectNewEventsAny.insert_boolean(_rejectNewEvents);

          //////////////////////////////

          defaultProperties_ = new Property[] {
                   new Property(MaxConsumers.value, _maxConsumersDefaultAny),
View Full Code Here

Examples of org.omg.CORBA.Any.insert_boolean()

        }
        else if( op.equals("_non_existent") )
        {
            Any s = orb.create_any();
            s.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_boolean ));
            s.insert_boolean( _non_existent());
            request.set_result( s );
        }
        /**
         * the following operations would also have to be implemented
         * by delegating to the superclass DynamicImplementation or Servant
View Full Code Here

Examples of org.omg.CORBA.Any.insert_boolean()

            boolean result = is.read_boolean();
            is.close();
            // End

            Any nameAny = orb.create_any();
            nameAny.insert_boolean(result);

            ri.set_slot(SInitializer.slotID, nameAny);
        }
        catch (Exception e)
        {
View Full Code Here

Examples of org.omg.CORBA.Any.insert_boolean()

            is.close();
            // End
        }

        Any nameAny = orb.create_any();
        nameAny.insert_boolean(result);

        try
        {
            ri.set_slot(SInitializer.slotID, nameAny);
        }
View Full Code Here

Examples of org.omg.CORBA.Any.insert_boolean()

        boolean _isStartTimeSupported =
            conf.getAttribute(Attributes.START_TIME_SUPPORTED,
                              Default.DEFAULT_START_TIME_SUPPORTED).
            equalsIgnoreCase("on");

        _isStartTimeSupportedDefault.insert_boolean(_isStartTimeSupported);

        ////////////////////

        Any _isStopTimeSupportedDefault = sORB.create_any();
View Full Code Here

Examples of org.omg.CORBA.Any.insert_boolean()

        boolean _isStopTimeSupported =
            conf.getAttribute(Attributes.STOP_TIME_SUPPORTED,
                              Default.DEFAULT_STOP_TIME_SUPPORTED).
            equalsIgnoreCase("on");
        _isStopTimeSupportedDefault.insert_boolean(_isStopTimeSupported);

        ////////////////////

        Any _maxBatchSizeDefault = sORB.create_any();
        _maxBatchSizeDefault.insert_long(_maxBatchSize);
View Full Code Here

Examples of org.omg.CORBA.Any.insert_boolean()

    public void test_boolean()
        throws Exception
    {
        boolean testValue = true;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_boolean(testValue);
        assertEquals(testValue, outAny.extract_boolean());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_boolean());
View Full Code Here

Examples of org.omg.CORBA.Any.insert_boolean()

    @Test
    public void testDisable_StopTimeSupported() throws Exception
    {
        Any falseAny = setup.getClientOrb().create_any();
        falseAny.insert_boolean(false);

        Property[] props = new Property[] { new Property(StopTimeSupported.value, falseAny) };
        EventChannel channel = getEventChannelFactory().create_channel(props, new Property[0], new IntHolder());

        sendEvent(channel, 1000, 500, true);
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.