📄 schedulerqueue.java
字号:
/* * JORAM: Java(TM) Open Reliable Asynchronous Messaging * Copyright (C) 2005 - 2006 ScalAgent Distributed Technologies * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA. * * Initial developer(s): ScalAgent Distributed Technologies * Contributor(s): */package com.scalagent.joram.mom.dest.scheduler;import org.objectweb.joram.mom.dest.*;import org.objectweb.joram.shared.admin.*;import java.io.IOException;import java.io.ObjectInputStream;import java.io.ObjectOutputStream;import java.util.Properties;import fr.dyade.aaa.agent.Agent;import fr.dyade.aaa.agent.Channel;import fr.dyade.aaa.agent.AgentServer;import fr.dyade.aaa.agent.AgentId;import fr.dyade.aaa.agent.BagSerializer;import fr.dyade.aaa.agent.DeleteNot;import fr.dyade.aaa.agent.Notification;import fr.dyade.aaa.agent.UnknownNotificationException;public class SchedulerQueue extends Queue { public static final String QUEUE_SCHEDULER_TYPE = "queue_scheduler"; public static String getDestinationType() { return QUEUE_SCHEDULER_TYPE; } public static void init(String args, boolean firstTime) throws Exception { if (! firstTime) return; } /** * Empty constructor for newInstance(). */ public SchedulerQueue() {} // AF: To be removed.// /**// * Constructs a <code>Queue</code> agent. // *// * @param adminId Identifier of the agent which will be the administrator// * of the queue.// */ // public SchedulerQueue(AgentId adminId) {// super(adminId);// } // /**// * Constructor with parameter for fixing the queue or not.// */ // public SchedulerQueue(boolean fixed) {// super(fixed);// } /** * Creates the <tt>QueueImpl</tt>. * * @param adminId Identifier of the queue administrator. * @param prop The initial set of properties. */ public DestinationImpl createsImpl(AgentId adminId, Properties prop) { return new SchedulerQueueImpl(getId(), adminId, prop); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -