Package org.apache.activemq.util

Examples of org.apache.activemq.util.IdGenerator


    private Map<String, AbstractPullPoint> pullPoints;

    public AbstractCreatePullPoint(String name) {
        super(name);
        idGenerator = new IdGenerator();
        pullPoints = new ConcurrentHashMap<String, AbstractPullPoint>();
    }
View Full Code Here


    private Map<String, AbstractSubscription> subscriptions;

    public AbstractNotificationBroker(String name) {
        super(name);
        idGenerator = new IdGenerator();
        subscriptions = new ConcurrentHashMap<String, AbstractSubscription>();
        publishers = new ConcurrentHashMap<String, AbstractPublisher>();
    }
View Full Code Here

        private SubscribeResponse response;

        public WSNSubscriptionEndpoint(Subscribe request) throws DeploymentException {
            this.service = new QName("http://servicemix.org/wsnotification", "Subscription");
            this.endpoint = new IdGenerator().generateSanitizedId();
            this.request = request;
        }
View Full Code Here

        private CreatePullPointResponse response;

        public WSNPullPointEndpoint(CreatePullPoint request) throws DeploymentException {
            this.service = new QName("http://servicemix.org/wsnotification", "Subscription");
            this.endpoint = new IdGenerator().generateSanitizedId();
            this.request = request;
        }
View Full Code Here

        private RegisterPublisherResponse response;

        public WSNPublisherEndpoint(RegisterPublisher request) {
            this.service = new QName("http://servicemix.org/wsnotification", "Publisher");
            this.endpoint = new IdGenerator().generateSanitizedId();
            this.request = request;
        }
View Full Code Here

    private Object createProxy() throws Exception {
        JaxWsProxyFactoryBean cf = new JaxWsProxyFactoryBean();
        cf.setServiceName(getService());
        cf.setServiceClass(type);
        cf.setAddress("jbi://" + new IdGenerator().generateSanitizedId());
        cf.setBindingId(org.apache.cxf.binding.jbi.JBIConstants.NS_JBI_BINDING);
        Bus bus = BusFactory.getDefaultBus();
        JBITransportFactory jbiTransportFactory = (JBITransportFactory) bus
                .getExtension(ConduitInitiatorManager.class)
                .getConduitInitiator(CxfSeComponent.JBI_TRANSPORT_ID);
View Full Code Here

        if (activationSpec.getId() != null) {
            this.endpoint = activationSpec.getId();
        } else if (activationSpec.getComponentName() != null) {
            this.endpoint = activationSpec.getComponentName();
        } else {
            this.endpoint = new IdGenerator().generateId();
        }
    }
View Full Code Here

    }

    protected synchronized IdGenerator getClientIdGenerator() {
        if (clientIdGenerator == null) {
            if (clientIDPrefix != null) {
                clientIdGenerator = new IdGenerator(clientIDPrefix);
            } else {
                clientIdGenerator = new IdGenerator();
            }
        }
        return clientIdGenerator;
    }
View Full Code Here

            factory = new ActiveMQConnectionFactory(broker.getVmConnectorURI());
            consumers = Collections.synchronizedMap(new HashMap<MessageConsumer, MessageIdList>());
            connections = Collections.synchronizedList(new ArrayList<Connection>());
            allMessages.setVerbose(verbose);
            id = new IdGenerator(broker.getBrokerName() + ":");
        }
View Full Code Here

          // Send the remove request
      Message remove = session.createMessage();
      remove.setStringProperty(ScheduledMessage.AMQ_SCHEDULER_ACTION,
          ScheduledMessage.AMQ_SCHEDULER_ACTION_REMOVEALL);
      remove.setStringProperty(ScheduledMessage.AMQ_SCHEDULED_ID, new IdGenerator().generateId());
      producer.send(remove);
      } catch(Exception e) {
        fail("Caught unexpected exception during remove of unscheduled message.");
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.util.IdGenerator

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.