Package org.omg.PortableServer

Examples of org.omg.PortableServer.Servant


                                              ServantActivator servant_activator,
                                              org.omg.PortableServer.POA poa )
        throws org.omg.PortableServer.ForwardRequest
    {
        ByteArrayKey oidbak = new ByteArrayKey( oid );
        Servant servant = null;

        if (logger.isInfoEnabled())
        {
            logger.info( "oid: " + POAUtil.convert(oid) +
                        "incarnate");
View Full Code Here


    }


    private synchronized void actualRemove(ByteArrayKey oidbak, ServantActivator servantActivator, POA poa, boolean cleanupInProgress, final byte[] oid)
    {
        Servant servant;

        if ((servant = (Servant)objectMap.get(oidbak)) == null)
        {
            return;
        }
View Full Code Here

   * @return
   */
  public DataReader create_datareader(TopicDescription a_topic,
      DataReaderQos qos, DataReaderListener a_listener) {
    DataReader DR = null ;
    Servant impl;
   
    try{
     
      Class type = Class.forName(a_topic.get_type_name()+"DataReaderImpl") ;
      Class typehelper = Class.forName(a_topic.get_type_name()+"DataReaderHelper") ;
View Full Code Here

        if ( !isRetain() )
        {
            throw new WrongPolicy();
        }

        final Servant servant = aom.getServant(oid);
        // objectId is not active
        if (servant == null)
        {
            throw new ObjectNotActive();
        }

        /* If the object with the specified ObjectId currently active,
           a reference encapsulating  the information used to activate
           the object is returned.  */
        return getReference (oid, servant._all_interfaces (this, oid)[0], true);
    }
View Full Code Here

        }

        // servant is active
        if (isRetain())
        {
            final Servant servant = aom.getServant(oid);

            if (servant != null)
            {
                return servant;
            }
View Full Code Here

            }

            throw new ObjectNotActive();
        }

        Servant servant = null;

        /* is active servant */
        if (isRetain() && (servant = aom.getServant(objectId)) != null)
        {
            return servant;
View Full Code Here

   */
  public DataWriter create_datawriter(Topic a_topic, DataWriterQos qos,
      DataWriterListener a_listener) {
   
    DataWriter DW = null ;
    Servant impl;
    
    try{
      Class type = Class.forName(a_topic.get_type_name()+"DataWriterImpl") ;
      Class typehelper = Class.forName(a_topic.get_type_name()+"DataWriterHelper") ;
      Class type_param_constructor [] = new  Class[6] ;
View Full Code Here

     */

    private void processRequest(ServerRequest request)
        throws ShutdownInProgressException, CompletionRequestedException
    {
        Servant servant = null;
        ServantManager servantManager = null;
        boolean invalid = false;
        ByteArrayKey oid = new ByteArrayKey( request.objectId() );

        synchronized (this)
View Full Code Here

    byte[] tmpid;
    Policy[] policies;
    Test_impl def;
    Test_impl servant1;
    Test_impl servant2;
    Servant tmpservant;

    POAManager manager = root.the_POAManager();

    //
    // Create POA w/ RETAIN
View Full Code Here

    byte[] tmpid;
    Policy[] policies;
    Test_impl def;
    Test_impl servant1;
    Test_impl servant2;
    Servant tmpservant;

    POAManager manager = root.the_POAManager();

    //
    // Create POA w/ RETAIN
View Full Code Here

TOP

Related Classes of org.omg.PortableServer.Servant

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.