Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.jacorb.notification.servant;
  
  /*
   *        JacORB - a free Java ORB
   *
   *   Copyright (C) 1999-2012 Gerald Brose / The JacORB Team.
   *
   *   This library is free software; you can redistribute it and/or
   *   modify it under the terms of the GNU Library General Public
  *   License as published by the Free Software Foundation; either
  *   version 2 of the License, or (at your option) any later version.
  *
  *   This library is distributed in the hope that it will be useful,
  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  *   Library General Public License for more details.
  *
  *   You should have received a copy of the GNU Library General Public
  *   License along with this library; if not, write to the Free
  *   Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
  */
 

Author(s):
Alphonse Bendt
Jmx.mbean:
extends ="AbstractProxyMBean"
Jboss.xmbean:
 
 
 public class StructuredProxyPullSupplierImpl extends AbstractProxySupplier implements
 {
    
undefined StructuredEvent that is returned on unsuccessful pull operations.
 
     protected static final StructuredEvent UNDEFINED_STRUCTURED_EVENT;
 
     // initialize undefinedStructuredEvent_
     static
     {
         ORB _orb = org.omg.CORBA.ORBSingleton.init();
 
          = new StructuredEvent();
         EventType _type = new EventType();
         FixedEventHeader _fixed = new FixedEventHeader(_type"");
         Property[] _variable = new Property[0];
         . = new EventHeader(_fixed_variable);
     }

    
the associated Consumer.
 
 
     // //////////////////////////////////////
 
     public StructuredProxyPullSupplierImpl(IAdmin adminORB orbPOA poaConfiguration conf,
             TaskProcessor taskProcessorOfferManager offerManager,
             SubscriptionManager subscriptionManagerConsumerAdmin consumerAdminthrows ConfigurationException
     {
         super(adminorbpoaconftaskProcessorofferManager,
                 subscriptionManagerconsumerAdmin);
     }
 
     public ProxyType MyType()
     {
         return .;
     }
 
             throws AlreadyConnected
     {
         checkIsNotConnected();
 
        connectClient(consumer);
         = consumer;
        .info("connect structured_pull_consumer");
    }
    {
        checkStillConnected();
        try
        {
            Message _message = getMessageBlocking();
            try
            {
                return _message.toStructuredEvent();
            } finally
            {
                _message.dispose();
            }
        } catch (InterruptedException e)
        {
            return ;
        }
    }
    {
        checkStillConnected();
        Message _message = getMessageNoBlock();
        if (_message != null)
        {
            try
            {
                hasEvent.value = true;
                return _message.toStructuredEvent();
            } finally
            {
                _message.dispose();
            }
        }
        hasEvent.value = false;
        return ;
    }
    {
        destroy();
    }
    protected void disconnectClient()
    {
        .info("disconnect structured_pull_consumer");
         = null;
    }
    public void disableDelivery()
    {
        // as no active deliveries are made this can be ignored
    }
    public void enableDelivery()
    {
        // as no active deliveries are made this can be ignored
    }
    public void deliverPendingData()
    {
        // as no active deliveries are made this can be ignored
    }
    public Servant newServant()
    {
        return new StructuredProxyPullSupplierPOATie(this);
    }
    protected long getCost()
    {
        return 0;
    }
New to GrepCode? Check out our FAQ X