Examples of insert_boolean()


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

        // - for Any values, an Any containing a type code with a TCKind value of tk_null
        //   type and no value
        switch (typeCode.kind().value()) {
            case TCKind._tk_boolean:
                // false for boolean
                returnValue.insert_boolean(false);
                break;
            case TCKind._tk_short:
                // zero for numeric types
                returnValue.insert_short((short)0);
                break;
View Full Code Here

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()

        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);

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

        int _maxBatchSize =
            conf.getAttributeAsInteger(Attributes.MAX_BATCH_SIZE,
View Full Code Here

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

    Any userAny = orb.create_any();
    userAny.insert_string( job.userId );
    cancelEvent.filterable_data[1] = new Property("user_id ", userAny );

    Any urgentAny = orb.create_any();
    urgentAny.insert_boolean( true );
    cancelEvent.filterable_data[2] = new Property( "urgent", urgentAny );

    cancelEvent.remainder_of_body = orb.create_any();

    try
View Full Code Here

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

      // set filterable event body data
      lineEvent.filterable_data = new Property[1];

            Any urgentAny = orb.create_any();
            urgentAny.insert_boolean( false );
            lineEvent.filterable_data[0] = new Property( "urgent", urgentAny );

      lineEvent.remainder_of_body = orb.create_any();
      try
      {
View Full Code Here

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

        Any userAny = orb.create_any();
        userAny.insert_string( job.userId );
        printedEvent.filterable_data[1] = new Property("user_id", userAny );

                    Any urgentAny = orb.create_any();
                    urgentAny.insert_boolean( false );
                    printedEvent.filterable_data[2] = new Property( "urgent", urgentAny );

        // no further even data
        printedEvent.remainder_of_body = orb.create_any();
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()

    }

    public void testDisable_StopTimeSupported() throws Exception
    {
        Any falseAny = 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.