Package org.omg.CORBA

Examples of org.omg.CORBA.Policy


        org.omg.CORBA.ORB orb = setup.getClientOrb();
        org.omg.CORBA.Any any = orb.create_any();
        UtcTHelper.insert (any, corbaTime);
        try
        {
            Policy policy =
                orb.create_policy (REQUEST_END_TIME_POLICY_TYPE.value, any);
            org.omg.CORBA.Object r = server._set_policy_override (new Policy[]{ policy },
                                         SetOverrideType.ADD_OVERRIDE);
            server._release();
            return TimingServerHelper.narrow (r);
View Full Code Here


        org.omg.CORBA.ORB orb = setup.getClientOrb();
        org.omg.CORBA.Any any = orb.create_any();
        any.insert_ulonglong (millis * 10000);
        try
        {
            Policy policy =
                orb.create_policy (RELATIVE_REQ_TIMEOUT_POLICY_TYPE.value, any);
            org.omg.CORBA.Object r = server._set_policy_override (new Policy[]{ policy },
                                         SetOverrideType.ADD_OVERRIDE);
            server._release();
            return TimingServerHelper.narrow (r);
View Full Code Here

        org.omg.CORBA.ORB orb = setup.getClientOrb();
        org.omg.CORBA.Any any = orb.create_any();
        UtcTHelper.insert (any, corbaTime);
        try
        {
            Policy policy =
                orb.create_policy (REPLY_START_TIME_POLICY_TYPE.value, any);
            org.omg.CORBA.Object r = server._set_policy_override (new Policy[]{ policy },
                                         SetOverrideType.ADD_OVERRIDE);
            server._release();
            return TimingServerHelper.narrow (r);
View Full Code Here

        org.omg.CORBA.ORB orb = setup.getClientOrb();
        org.omg.CORBA.Any any = orb.create_any();
        UtcTHelper.insert (any, corbaTime);
        try
        {
            Policy policy =
                orb.create_policy (REPLY_END_TIME_POLICY_TYPE.value, any);
            org.omg.CORBA.Object r = server._set_policy_override (new Policy[]{ policy },
                                         SetOverrideType.ADD_OVERRIDE);
            server._release();
            return TimingServerHelper.narrow (r);
View Full Code Here

        org.omg.CORBA.ORB orb = setup.getClientOrb();
        org.omg.CORBA.Any any = orb.create_any();
        any.insert_ulonglong (millis * 10000);
        try
        {
            Policy policy =
                orb.create_policy (RELATIVE_RT_TIMEOUT_POLICY_TYPE.value, any);
            org.omg.CORBA.Object r = server._set_policy_override (new Policy[]{ policy },
                                         SetOverrideType.ADD_OVERRIDE);
            server._release();
            return TimingServerHelper.narrow (r);
View Full Code Here

    {
        org.omg.CORBA.Any a   = setup.getClientOrb().create_any();
        a.insert_short (syncScope);
        try
        {
            Policy policy =
                setup.getClientOrb().create_policy(SYNC_SCOPE_POLICY_TYPE.value, a);
            org.omg.CORBA.Object r = server._set_policy_override (new Policy[]{ policy },
                                         SetOverrideType.ADD_OVERRIDE);
            return SyncScopeServerHelper.narrow (r);
        }
View Full Code Here

                MinorCodes.NO_SUCH_POLICY,
                CompletionStatus.COMPLETED_MAYBE
            );
        }

        Policy policy = null;
        if (policy_overrides != null)
        {
            policy = (Policy)policy_overrides.get (Integer.valueOf (type));
        }
        return (policy != null) ? policy : poa.getPolicy(type);
View Full Code Here

    @Override
    public org.omg.CORBA.Policy get_policy( org.omg.CORBA.Object self,
                                            int policy_type )
    {
        Policy result = get_client_policy(policy_type);
        if (result != null)
        {
            // TODO: "reconcile" with server-side policy
            return result;
        }
View Full Code Here

     * at the thread-level)
     */

    public org.omg.CORBA.Policy get_client_policy(int policy_type)
    {
        Policy result = null;

        if (disableClientOrbPolicies)
        {
            return null;
        }
View Full Code Here

        }
    } // get_policy

    public UtcT getRequestEndTime()
    {
        Policy policy = get_client_policy(REQUEST_END_TIME_POLICY_TYPE.value);
        if (policy != null)
        {
            return ((org.omg.Messaging.RequestEndTimePolicy)policy).end_time();
        }
        return null;
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.