Package org.omg.CORBA

Examples of org.omg.CORBA.Policy


        return null;
    }

    public UtcT getReplyStartTime()
    {
        Policy policy = get_client_policy (REPLY_START_TIME_POLICY_TYPE.value);
        if (policy != null)
        {
            return ((org.omg.Messaging.ReplyStartTimePolicy)policy).start_time();
        }
        return null;
View Full Code Here


        return null;
    }

    public long getRelativeRoundtripTimeout()
    {
        Policy policy = get_client_policy (RELATIVE_RT_TIMEOUT_POLICY_TYPE.value);
        if (policy != null)
        {
            return ((org.omg.Messaging.RelativeRoundtripTimeoutPolicy)policy)
                                                            .relative_expiry();
        }
View Full Code Here

        return -1;
    }

    public long getRelativeRequestTimeout()
    {
        Policy policy = get_client_policy (RELATIVE_REQ_TIMEOUT_POLICY_TYPE.value);
        if (policy != null)
        {
            return ((org.omg.Messaging.RelativeRequestTimeoutPolicy)policy)
                                                            .relative_expiry();
        }
View Full Code Here

        return -1;
    }

    public short getSyncScope()
    {
        Policy policy = get_client_policy (SYNC_SCOPE_POLICY_TYPE.value);
        if (policy != null)
        {
            return ((org.omg.Messaging.SyncScopePolicy)policy).synchronization();
        }
        return org.omg.Messaging.SYNC_WITH_TRANSPORT.value;
View Full Code Here

        return org.omg.Messaging.SYNC_WITH_TRANSPORT.value;
    }

    public org.omg.RTCORBA.Protocol[] getClientProtocols ()
    {
        Policy policy = get_client_policy(org.omg.RTCORBA.CLIENT_PROTOCOL_POLICY_TYPE.value);
        if (policy != null)
        {
            return ((org.omg.RTCORBA.ClientProtocolPolicy)policy).protocols ();
        }
        return null;
View Full Code Here

    {
        final Any _any = orb.create_any();

        BidirectionalPolicyValueHelper.insert(_any, BOTH.value);

        final Policy _policy = orb.create_policy(BIDIRECTIONAL_POLICY_TYPE.value, _any);

        return _policy;
    }
View Full Code Here

     */
    public static void addBiDirGiopPolicy(List policies, ORB orb, Configuration config) throws PolicyError
    {
        if (isBiDirGiopEnabled(config))
        {
            Policy policy = newBiDirGiopPolicy(orb);
            policies.add(policy);
        }
    }
View Full Code Here

    component.component_data = data;

    info.add_ior_component(component);
    info.add_ior_component_to_profile(component, 0);

    Policy p = info.get_effective_policy(SERVANT_RETENTION_POLICY_ID.value);

    policyOK =
      ((ServantRetentionPolicy) p).value() == ServantRetentionPolicyValue.RETAIN;
  }
View Full Code Here

            //activate the POA manager
            POAManager poaMgr = rootPOA_.the_POAManager();
            poaMgr.activate();
           
            //create persistent POA
      Policy policies[] = new Policy[2];
      policies[0] = rootPOA_.create_lifespan_policy(LifespanPolicyValue.PERSISTENT);
      policies[1] = rootPOA_.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID);
      persistentPOA_ = rootPOA_.create_POA("PersistentPOA", rootPOA_.the_POAManager(), policies);
      persistentPOA_.the_POAManager().activate();
View Full Code Here

            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);
                } catch (org.omg.CORBA.PolicyError e) {
                    // shouldn't happen, but we'll let things continue with no policy set.
                }
View Full Code Here

TOP

Related Classes of org.omg.CORBA.Policy

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.