| 1 |
/* |
| 2 |
* Licensed to the Apache Software Foundation (ASF) under one |
| 3 |
* or more contributor license agreements. See the NOTICE file |
| 4 |
* distributed with this work for additional information |
| 5 |
* regarding copyright ownership. The ASF licenses this file |
| 6 |
* to you under the Apache License, Version 2.0 (the |
| 7 |
* "License"); you may not use this file except in compliance |
| 8 |
* with the License. You may obtain a copy of the License at |
| 9 |
* |
| 10 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 11 |
* |
| 12 |
* Unless required by applicable law or agreed to in writing, |
| 13 |
* software distributed under the License is distributed on an |
| 14 |
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 |
* KIND, either express or implied. See the License for the |
| 16 |
* specific language governing permissions and limitations |
| 17 |
* under the License. |
| 18 |
*/ |
| 19 |
package org.apache.qpid.proton.systemtests; |
| 20 |
|
| 21 |
import org.apache.qpid.proton.amqp.messaging.Source; |
| 22 |
import org.apache.qpid.proton.amqp.messaging.Target; |
| 23 |
import org.apache.qpid.proton.engine.Connection; |
| 24 |
import org.apache.qpid.proton.engine.Delivery; |
| 25 |
import org.apache.qpid.proton.engine.Receiver; |
| 26 |
import org.apache.qpid.proton.engine.Sender; |
| 27 |
import org.apache.qpid.proton.engine.Session; |
| 28 |
import org.apache.qpid.proton.engine.Transport; |
| 29 |
import org.apache.qpid.proton.message.Message; |
| 30 |
|
| 31 |
/** |
| 32 |
* Simple "struct" class used to hold related Engine objects |
| 33 |
*/ |
| 34 |
public class ProtonContainer |
| 35 |
{ |
| 36 |
String containerId; |
| 37 |
Connection connection; |
| 38 |
Transport transport; |
| 39 |
Session session; |
| 40 |
Sender sender; |
| 41 |
Receiver receiver; |
| 42 |
Source source; |
| 43 |
Target target; |
| 44 |
Delivery delivery; |
| 45 |
Message message; |
| 46 |
byte[] messageData; |
| 47 |
|
| 48 |
public ProtonContainer(String containerId) |
| 49 |
{ |
| 50 |
this.containerId = containerId; |
| 51 |
} |
| 52 |
|
| 53 |
public String getContainerId() { |
| 54 |
return containerId; |
| 55 |
} |
| 56 |
|
| 57 |
public void setContainerId(String containerId) { |
| 58 |
this.containerId = containerId; |
| 59 |
} |
| 60 |
|
| 61 |
public Connection getConnection() { |
| 62 |
return connection; |
| 63 |
} |
| 64 |
|
| 65 |
public void setConnection(Connection connection) { |
| 66 |
this.connection = connection; |
| 67 |
} |
| 68 |
|
| 69 |
public Transport getTransport() { |
| 70 |
return transport; |
| 71 |
} |
| 72 |
|
| 73 |
public void setTransport(Transport transport) { |
| 74 |
this.transport = transport; |
| 75 |
} |
| 76 |
|
| 77 |
public Session getSession() { |
| 78 |
return session; |
| 79 |
} |
| 80 |
|
| 81 |
public void setSession(Session session) { |
| 82 |
this.session = session; |
| 83 |
} |
| 84 |
|
| 85 |
public Sender getSender() { |
| 86 |
return sender; |
| 87 |
} |
| 88 |
|
| 89 |
public void setSender(Sender sender) { |
| 90 |
this.sender = sender; |
| 91 |
} |
| 92 |
|
| 93 |
public Receiver getReceiver() { |
| 94 |
return receiver; |
| 95 |
} |
| 96 |
|
| 97 |
public void setReceiver(Receiver receiver) { |
| 98 |
this.receiver = receiver; |
| 99 |
} |
| 100 |
|
| 101 |
public Source getSource() { |
| 102 |
return source; |
| 103 |
} |
| 104 |
|
| 105 |
public void setSource(Source source) { |
| 106 |
this.source = source; |
| 107 |
} |
| 108 |
|
| 109 |
public Target getTarget() { |
| 110 |
return target; |
| 111 |
} |
| 112 |
|
| 113 |
public void setTarget(Target target) { |
| 114 |
this.target = target; |
| 115 |
} |
| 116 |
|
| 117 |
public Delivery getDelivery() { |
| 118 |
return delivery; |
| 119 |
} |
| 120 |
|
| 121 |
public void setDelivery(Delivery delivery) { |
| 122 |
this.delivery = delivery; |
| 123 |
} |
| 124 |
|
| 125 |
public Message getMessage() { |
| 126 |
return message; |
| 127 |
} |
| 128 |
|
| 129 |
public void setMessage(Message message) { |
| 130 |
this.message = message; |
| 131 |
} |
| 132 |
|
| 133 |
public byte[] getMessageData() { |
| 134 |
return messageData; |
| 135 |
} |
| 136 |
|
| 137 |
public void setMessageData(byte[] messageData) { |
| 138 |
this.messageData = messageData; |
| 139 |
} |
| 140 |
} |