Package com.cloudhopper.mq.util

Source Code of com.cloudhopper.mq.util.QueueLoader

package com.cloudhopper.mq.util;

/*
* #%L
* ch-mq
* %%
* Copyright (C) 2009 - 2013 Cloudhopper by Twitter
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/

import com.cloudhopper.commons.util.HexUtil;
import com.cloudhopper.datastore.DataStore;
import com.cloudhopper.datastore.DataStoreIterator;
import com.cloudhopper.mq.message.PriorityMQMessage;
import com.cloudhopper.mq.queue.Queue;
import com.cloudhopper.mq.queue.QueueConfiguration;
import com.cloudhopper.mq.queue.impl.DefaultQueueManager;
import com.cloudhopper.mq.queue.impl.QueueInfo;
import com.cloudhopper.mq.queue.impl.RunInfo;
import com.cloudhopper.mq.queue.impl.RunInfoFileUtil;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.File;
import java.io.FileInputStream;
import java.util.Enumeration;
import org.codehaus.jackson.map.ObjectMapper;

/**
* Loads a queue from a stream
* @author garth
*/
public class QueueLoader extends QueueStringUtil {

    public QueueLoader(QueueConfiguration config, InputStream in) throws Exception {
        super(new DefaultQueueManager(config));
  this.reader = new BufferedReader(new InputStreamReader(in));
    }

    public QueueLoader(DefaultQueueManager dqm, InputStream in) throws Exception {
  super(dqm);
  this.reader = new BufferedReader(new InputStreamReader(in));
    }

    private final BufferedReader reader;

    public void load() throws Exception {

    }

    public void load(String name) throws Exception {

    }

    public void load(Queue queue) throws Exception {

    }


}
TOP

Related Classes of com.cloudhopper.mq.util.QueueLoader

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.