summaryrefslogtreecommitdiff
path: root/java/broker/src/test/java/org/apache/qpid/server/configuration/MockConnectionConfig.java
blob: 00e5cd12221e35e8dc42f9a3d8b9ff71cc569690 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/*
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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.
 *
 */
package org.apache.qpid.server.configuration;

import java.util.UUID;

public class MockConnectionConfig implements ConnectionConfig
{

    public MockConnectionConfig(UUID _qmfId, ConnectionConfigType _configType,
                    ConfiguredObject<ConnectionConfigType, ConnectionConfig> _parent, boolean _durable,
                    long _createTime, VirtualHostConfig _virtualHost, String _address, Boolean _incoming,
                    Boolean _systemConnection, Boolean _federationLink, String _authId, String _remoteProcessName,
                    Integer _remotePID, Integer _remoteParentPID, ConfigStore _configStore, Boolean _shadow)
    {
        super();
        this._qmfId = _qmfId;
        this._configType = _configType;
        this._parent = _parent;
        this._durable = _durable;
        this._createTime = _createTime;
        this._virtualHost = _virtualHost;
        this._address = _address;
        this._incoming = _incoming;
        this._systemConnection = _systemConnection;
        this._federationLink = _federationLink;
        this._authId = _authId;
        this._remoteProcessName = _remoteProcessName;
        this._remotePID = _remotePID;
        this._remoteParentPID = _remoteParentPID;
        this._configStore = _configStore;
        this._shadow = _shadow;
    }

    private UUID _qmfId;
    private ConnectionConfigType _configType;
    private ConfiguredObject<ConnectionConfigType, ConnectionConfig> _parent;
    private boolean _durable;
    private long _createTime;
    private VirtualHostConfig _virtualHost;
    private String _address;
    private Boolean _incoming;
    private Boolean _systemConnection;
    private Boolean _federationLink;
    private String _authId;
    private String _remoteProcessName;
    private Integer _remotePID;
    private Integer _remoteParentPID;
    private ConfigStore _configStore;
    private Boolean _shadow;

    @Override
    public UUID getQMFId()
    {
        return _qmfId;
    }

    @Override
    public ConnectionConfigType getConfigType()
    {
        return _configType;
    }

    @Override
    public ConfiguredObject<ConnectionConfigType, ConnectionConfig> getParent()
    {
        return _parent;
    }

    @Override
    public boolean isDurable()
    {
        return _durable;
    }

    @Override
    public long getCreateTime()
    {
        return _createTime;
    }

    @Override
    public VirtualHostConfig getVirtualHost()
    {
        return _virtualHost;
    }

    @Override
    public String getAddress()
    {
        return _address;
    }

    @Override
    public Boolean isIncoming()
    {
        return _incoming;
    }

    @Override
    public Boolean isSystemConnection()
    {
        return _systemConnection;
    }

    @Override
    public Boolean isFederationLink()
    {
        return _federationLink;
    }

    @Override
    public String getAuthId()
    {
        return _authId;
    }

    @Override
    public String getRemoteProcessName()
    {
        return _remoteProcessName;
    }

    @Override
    public Integer getRemotePID()
    {
        return _remotePID;
    }

    @Override
    public Integer getRemoteParentPID()
    {
        return _remoteParentPID;
    }

    @Override
    public ConfigStore getConfigStore()
    {
        return _configStore;
    }

    @Override
    public Boolean isShadow()
    {
        return _shadow;
    }

    @Override
    public void mgmtClose()
    {
    }

}