Package EDU.oswego.cs.dl.util.concurrent

Examples of EDU.oswego.cs.dl.util.concurrent.QueuedExecutor


        try {
          setWhitelistPattern(whitelistRegex);
        } catch (PatternSyntaxException pse) {
          _logger.warning("Got an invalid regular expression for conversations to whitelist: " + whitelistRegex + " results in " + pse.toString());
        }
        this.analysisQueuedExecutor = new QueuedExecutor();
        this.analysisQueuedExecutor.setThreadFactory(new QueueProcessorThreadFactory("QueueProcessor"));
        this.analysisLongRunningQueuedExecutor = new QueuedExecutor();
        this.analysisLongRunningQueuedExecutor.setThreadFactory(new QueueProcessorThreadFactory("Long Running QueueProcessor"));
    }
View Full Code Here


        ClusterInfo info = cluster.getClusterInfo();
        socket = new MulticastSocket(info.getPort());
        socket.joinGroup(info.getAddress());
        running = true;
        new Thread(new HearbeatListener()).start();
        queuedExecutor = new QueuedExecutor();
    }
View Full Code Here

  public LogFileManager(byte fileManagerId, LongSequenceGenerator sequenceGenerator, LogFile logFile) {
    this.fileManagerId = fileManagerId;
    this.sequenceGenerator = sequenceGenerator;
      this.file = logFile;   
      this.byteBufferPool = new ByteBufferPool();
    this.executor = new QueuedExecutor()
    this.executor.setThreadFactory(new ThreadFactory(){
      public Thread newThread(Runnable runnable) {
        Thread answer = new Thread(runnable, "Journal Writter");
        answer.setPriority(Thread.MAX_PRIORITY);
        answer.setDaemon(true);
View Full Code Here

    public static JournalPersistenceAdapter newInstance(File directory) throws IOException, JMSException {
        return new JournalPersistenceAdapter(directory, JdbmPersistenceAdapter.newInstance(directory), new DefaultWireFormat());
    }

    public JournalPersistenceAdapter() {
        checkpointExecutor = new QueuedExecutor(new LinkedQueue());
        checkpointExecutor.setThreadFactory(new ThreadFactory() {
            public Thread newThread(Runnable runnable) {
                Thread answer = new Thread(runnable, "Checkpoint Worker");
                answer.setDaemon(true);
                answer.setPriority(Thread.MAX_PRIORITY);
View Full Code Here

    ClockDaemon clockDaemon;
    private Object clockTicket;
    private JournalTransactionStore transactionStore;

    public JournalPersistenceAdapter() {
        checkpointExecutor = new QueuedExecutor(new LinkedQueue());
        checkpointExecutor.setThreadFactory(new ThreadFactory() {
            public Thread newThread(Runnable runnable) {
                Thread answer = new Thread(runnable, "Checkpoint Worker");
                answer.setDaemon(true);
                answer.setPriority(Thread.MAX_PRIORITY);
View Full Code Here

    }

    public JournalImpl(LogFileManager logFile) {
        this.file = logFile;
        this.packetPool = new ByteBufferPacketPool(DEFAULT_POOL_SIZE, DEFAULT_PACKET_SIZE);
        this.executor = new QueuedExecutor();
        this.executor.setThreadFactory(new ThreadFactory() {
            public Thread newThread(Runnable runnable) {
                Thread answer = new Thread(runnable, "Journal Writter");
                answer.setPriority(Thread.MAX_PRIORITY);
                answer.setDaemon(true);
View Full Code Here

      ConnectionState connectionState = (ConnectionState)sessionState.getParent();
      SessionDelegate sessionDelegate = (SessionDelegate)invocation.getTargetObject();
      ConsumerState consumerState = (ConsumerState)((DelegateSupport)consumerDelegate).getState();
      String consumerID = consumerState.getConsumerID();
      int prefetchSize = consumerState.getBufferSize();
      QueuedExecutor sessionExecutor = sessionState.getExecutor();
      int maxDeliveries = consumerState.getMaxDeliveries();
      long redeliveryDelay = consumerState.getRedeliveryDelay();
     
      //We need the queue name for recovering any deliveries after failover
      String queueName = null;
View Full Code Here

    ClockDaemon clockDaemon;
    private Object clockTicket;
    private JournalTransactionStore transactionStore;

    public JournalPersistenceAdapter() {
        checkpointExecutor = new QueuedExecutor(new LinkedQueue());
        checkpointExecutor.setThreadFactory(new ThreadFactory() {
            public Thread newThread(Runnable runnable) {
                Thread answer = new Thread(runnable, "Checkpoint Worker");
                answer.setDaemon(true);
                answer.setPriority(Thread.MAX_PRIORITY);
View Full Code Here

    private JournalTransactionStore transactionStore = new JournalTransactionStore(this);
    private int logFileSize=1024*1024*20;
    private int logFileCount=2;

    public JournalPersistenceAdapter() {
        checkpointExecutor = new QueuedExecutor(new LinkedQueue());
        checkpointExecutor.setThreadFactory(new ThreadFactory() {
            public Thread newThread(Runnable runnable) {
                Thread answer = new Thread(runnable, "Checkpoint Worker");
                answer.setDaemon(true);
                answer.setPriority(Thread.MAX_PRIORITY);
View Full Code Here

    private JournalTransactionStore transactionStore = new JournalTransactionStore(this);
    private int logFileSize=1024*1024*20;
    private int logFileCount=2;

    public JournalPersistenceAdapter() {
        checkpointExecutor = new QueuedExecutor(new LinkedQueue());
        checkpointExecutor.setThreadFactory(new ThreadFactory() {
            public Thread newThread(Runnable runnable) {
                Thread answer = new Thread(runnable, "Checkpoint Worker");
                answer.setDaemon(true);
                answer.setPriority(Thread.MAX_PRIORITY);
View Full Code Here

TOP

Related Classes of EDU.oswego.cs.dl.util.concurrent.QueuedExecutor

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.