001 package org.apache.qpid.extras.exchanges.example;
002 /*
003 *
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements. See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership. The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License. You may obtain a copy of the License at
011 *
012 * http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied. See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 *
021 */
022
023
024 import java.util.List;
025 import java.util.Map;
026
027 import org.apache.qpid.AMQException;
028 import org.apache.qpid.framing.AMQShortString;
029 import org.apache.qpid.framing.FieldTable;
030 import org.apache.qpid.server.exchange.Exchange;
031 import org.apache.qpid.server.queue.IncomingMessage;
032 import org.apache.qpid.server.queue.AMQQueue;
033 import org.apache.qpid.server.virtualhost.VirtualHost;
034
035 public class TestExchange implements Exchange
036 {
037
038 public void close() throws AMQException
039 {
040 }
041
042 public void deregisterQueue(AMQShortString routingKey, AMQQueue queue, FieldTable args) throws AMQException
043 {
044 }
045
046 public Map<AMQShortString, List<AMQQueue>> getBindings()
047 {
048 return null;
049 }
050
051 public AMQShortString getName()
052 {
053 return null;
054 }
055
056 public AMQShortString getType()
057 {
058 return null;
059 }
060
061 public boolean hasBindings()
062 {
063 return false;
064 }
065
066 public void initialise(VirtualHost host, AMQShortString name, boolean durable, boolean autoDelete)
067 throws AMQException
068 {
069 }
070
071 public boolean isAutoDelete()
072 {
073 return false;
074 }
075
076 public boolean isBound(AMQShortString routingKey, FieldTable arguments, AMQQueue queue)
077 {
078 return false;
079 }
080
081 public boolean isBound(AMQShortString routingKey, AMQQueue queue)
082 {
083 return false;
084 }
085
086 public boolean isBound(AMQShortString routingKey)
087 {
088 return false;
089 }
090
091 public boolean isBound(AMQQueue queue)
092 {
093 return false;
094 }
095
096 public boolean isDurable()
097 {
098 return false;
099 }
100
101 public void registerQueue(AMQShortString routingKey, AMQQueue queue, FieldTable args) throws AMQException
102 {
103 }
104
105 public void route(IncomingMessage message) throws AMQException
106 {
107 }
108
109 public int getTicket()
110 {
111 return 0;
112 }
113
114 public void initialise(VirtualHost arg0, AMQShortString arg1, boolean arg2, int arg3, boolean arg4)
115 throws AMQException
116 {
117 }
118 }
|