Examples of DefaultWireFormat


Examples of org.codehaus.activemq.io.impl.DefaultWireFormat

                chars[i] = '_';
            }
        }
        this.name = new String(chars);
        this.maxDataLength = maxDataLength;
        this.wireFormat = new DefaultWireFormat();
        this.container = new DataContainer(dir, this.name, maxBlockSize);
        //as the DataContainer is temporary, clean-up any old files
        this.container.deleteAll();
    }
View Full Code Here

Examples of org.codehaus.activemq.io.impl.DefaultWireFormat

        context.deregisterConnector(connector.getServerChannel().getUrl());
    }


    public void addConnector(String bindAddress) throws JMSException {
        addConnector(bindAddress, new DefaultWireFormat());
    }
View Full Code Here

Examples of org.codehaus.activemq.io.impl.DefaultWireFormat

     */
   
    protected void initialize() throws JMSException {
        super.initialize();
        try {
            boondocksChannel = TransportChannelProvider.create(new DefaultWireFormat(), new URI(uri));
            boondocksChannel.addTransportStatusEventListener(this);
            if (boondocksChannel instanceof CompositeTransportChannel) {
                CompositeTransportChannel composite = (CompositeTransportChannel)boondocksChannel;
                composite.setMaximumRetries(maximumRetries);
                composite.setFailureSleepTime(reconnectSleepTime);
                composite.setIncrementTimeout(false);
            }
            boondocksChannel.start();
            //create our own broker connector ...
            BrokerConnectorImpl connector = new BrokerConnectorImpl(getBrokerContainer(),"vm://uri",new DefaultWireFormat());
            connector.start();
            connector.addClient(boondocksChannel);
            sendBrokerInfo();
        }
        catch (URISyntaxException e) {
View Full Code Here

Examples of org.codehaus.activemq.io.impl.DefaultWireFormat

     * @throws JMSException
     */
    public void start() throws JMSException {
        if (started.commit(false, true)) {
            this.timeoutExpiration = this.keepAliveTimeout * timeoutCount;
            channel = new MulticastTransportChannel(new DefaultWireFormat(), uri);
            channel.setClientID(localId);
            channel.setPacketListener(this);
            try {
                channel.setTimeToLive(getTimeToLive());
            }
View Full Code Here

Examples of org.codehaus.activemq.io.impl.DefaultWireFormat

    public static PersistenceAdapter createDefault(boolean cleanup) {
        EmbeddedDataSource ds = new EmbeddedDataSource();
        ds.setDatabaseName("testdb");
        ds.setCreateDatabase("create");
    //AxionDataSource ds = new AxionDataSource("jdbc:axiondb:testdb");
        JDBCPersistenceAdapter rc = new JDBCPersistenceAdapter(ds, new DefaultWireFormat());
        rc.setDropTablesOnStartup(cleanup);
        return rc;
  }
View Full Code Here

Examples of org.codehaus.activemq.message.DefaultWireFormat

    protected BrokerContainerImpl createBroker() throws JMSException {
        BrokerContainerImpl container = new BrokerContainerImpl("DefaultBroker");

        // Start internal vm protocoll
        BrokerConnectorImpl vmConnector = new BrokerConnectorImpl(container, "vm://localhost", new DefaultWireFormat());
        BrokerConnectorImpl tcpConnector = new BrokerConnectorImpl(container, "tcp://localhost:9100", new DefaultWireFormat());

        // start activemq broker
        container.start();
        return container;
    }
View Full Code Here

Examples of org.codehaus.activemq.message.DefaultWireFormat

        return longTermPersistence.getInitialDestinations();
    }

    public MessageStore createQueueMessageStore(String destinationName) throws JMSException {
        MessageStore checkpointStore = longTermPersistence.createQueueMessageStore(destinationName);
        return new HowlMessageStore(this, checkpointStore, transactionLog, new DefaultWireFormat());
    }
View Full Code Here

Examples of org.codehaus.activemq.message.DefaultWireFormat

        return new BDbPersistenceAdapter(directory);
    }


    public BDbPersistenceAdapter() {
        this(null, new DefaultWireFormat());
    }
View Full Code Here

Examples of org.codehaus.activemq.message.DefaultWireFormat

        container.stop();
    }

    protected void setUp() throws Exception {
        container = new BrokerContainerImpl(URL);
        BrokerConnector brokerConnector = new BrokerConnectorImpl(container, URL, new DefaultWireFormat());
        container.start();

        super.setUp();
    }
View Full Code Here

Examples of org.codehaus.activemq.message.DefaultWireFormat

*/
public class JournalQueueMessageStoreTest extends JDBCQueueMessageStoreTest {
    protected PersistenceAdapter createPersistenceAdapter() throws Exception {
        File directory = new File("target/journal");
        delete(directory);
        return new JournalPersistenceAdapter(directory, super.createPersistenceAdapter(), new DefaultWireFormat());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.