forked from apache/activemq-artemis
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add core federation and broker connections to the management console
- Loading branch information
Showing
24 changed files
with
1,230 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...rc/main/java/org/apache/activemq/artemis/api/core/management/BrokerConnectionControl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* 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.activemq.artemis.api.core.management; | ||
|
||
|
||
/** | ||
* A BrokerConnectionControl is used to manage a BrokerConnections. | ||
*/ | ||
public interface BrokerConnectionControl extends ActiveMQComponentControl { | ||
|
||
|
||
/** | ||
* Returns {@code true} if this connection is open, {@code false} else. | ||
*/ | ||
@Attribute(desc = "whether this connection is open") | ||
boolean isOpen(); | ||
|
||
/** | ||
* Returns the name of this broker connection | ||
*/ | ||
@Attribute(desc = "name of this broker connection") | ||
String getName(); | ||
|
||
/** | ||
* Returns the connection uri for this broker connection. | ||
*/ | ||
@Attribute(desc = "connection uri for this broker connection") | ||
String getUri(); | ||
|
||
/** | ||
* Returns the user this broker connection is using. | ||
*/ | ||
@Attribute(desc = "the user this broker connection is using") | ||
String getUser(); | ||
|
||
/** | ||
* Returns the protocol this broker connection is using. | ||
*/ | ||
@Attribute(desc = "protocol this broker connection is using") | ||
String getProtocol(); | ||
|
||
/** | ||
* Returns the retry interval used by this broker connection. | ||
*/ | ||
@Attribute(desc = "retry interval used by this broker connection") | ||
long getRetryInterval(); | ||
|
||
/** | ||
* Returns the number of reconnection attempts used by this broker connection. | ||
*/ | ||
@Attribute(desc = "number of reconnection attempts used by this broker connection") | ||
int getReconnectAttempts(); | ||
|
||
} |
36 changes: 36 additions & 0 deletions
36
...ient/src/main/java/org/apache/activemq/artemis/api/core/management/FederationControl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* 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.activemq.artemis.api.core.management; | ||
|
||
/** | ||
* A federationControl is used to manage a federation. | ||
*/ | ||
public interface FederationControl extends ActiveMQComponentControl { | ||
|
||
/** | ||
* Returns the name of this federation | ||
*/ | ||
@Attribute(desc = "name of this federation") | ||
String getName(); | ||
|
||
/** | ||
* Returns the name of the user the federation is associated with. | ||
*/ | ||
@Attribute(desc = "name of the user the federation is associated with") | ||
String getUser(); | ||
|
||
} |
72 changes: 72 additions & 0 deletions
72
...java/org/apache/activemq/artemis/api/core/management/FederationRemoteConsumerControl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* 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.activemq.artemis.api.core.management; | ||
|
||
/** | ||
* A BridgeControl is used to manage a federation stream. | ||
*/ | ||
public interface FederationRemoteConsumerControl { | ||
|
||
/** | ||
* Returns the name of the queue that is being federated too | ||
*/ | ||
@Attribute(desc = "name of the queue that is being federated too") | ||
String getQueueName(); | ||
|
||
/** | ||
* Returns the address this remote consumer will forward messages from. | ||
*/ | ||
@Attribute(desc = "address this remote consumer will forward messages from") | ||
String getAddress(); | ||
|
||
|
||
/** | ||
* Returns the priority of this remote consumer will consumer messages. | ||
*/ | ||
@Attribute(desc = "address this remote consumer will consumer messages") | ||
int getPriority(); | ||
|
||
/** | ||
* Returns the routing type associated with this address. | ||
* */ | ||
@Attribute(desc = "routing type for this address") | ||
String getRoutingType(); | ||
|
||
/** | ||
* Returns the filter string associated with this remote consumer. | ||
*/ | ||
@Attribute(desc = "filter string associated with this remote consumer") | ||
String getFilterString(); | ||
|
||
/** | ||
* Returns the queue filter string associated with this remote consumer. | ||
*/ | ||
@Attribute(desc = "queue filter string associated with this remote consumer") | ||
String getQueueFilterString(); | ||
|
||
/** | ||
* Returns the fully qualified queue name associated with this remote consumer. | ||
*/ | ||
@Attribute(desc = "fully qualified queue name associated with this remote consumer") | ||
String getFqqn(); | ||
|
||
/** | ||
* Returns the number of messages that have been federated for this address. | ||
*/ | ||
@Attribute(desc = "number of messages that have been federated for this address") | ||
long getFederatedMessageCount(); | ||
} |
91 changes: 91 additions & 0 deletions
91
...rc/main/java/org/apache/activemq/artemis/api/core/management/FederationStreamControl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* | ||
* 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.activemq.artemis.api.core.management; | ||
|
||
/** | ||
* A BridgeControl is used to manage a federation stream. | ||
*/ | ||
public interface FederationStreamControl extends ActiveMQComponentControl { | ||
|
||
/** | ||
* Returns the name of this federation stream | ||
*/ | ||
@Attribute(desc = "name of this federation stream") | ||
String getName(); | ||
|
||
/** | ||
* Returns any list of static connectors used by this federation stream | ||
*/ | ||
@Attribute(desc = "list of static connectors used by this federation stream") | ||
String[] getStaticConnectors() throws Exception; | ||
|
||
/** | ||
* Returns the name of the discovery group used by this federation stream. | ||
*/ | ||
@Attribute(desc = "name of the discovery group used by this federation stream") | ||
String getDiscoveryGroupName(); | ||
|
||
/** | ||
* Returns the retry interval used by this federation stream. | ||
*/ | ||
@Attribute(desc = "retry interval used by this federation stream") | ||
long getRetryInterval(); | ||
|
||
/** | ||
* Returns the retry interval multiplier used by this federation stream. | ||
*/ | ||
@Attribute(desc = "retry interval multiplier used by this federation stream") | ||
double getRetryIntervalMultiplier(); | ||
|
||
/** | ||
* Returns the max retry interval used by this federation stream. | ||
*/ | ||
@Attribute(desc = "max retry interval used by this federation stream") | ||
long getMaxRetryInterval(); | ||
|
||
/** | ||
* Returns the number of reconnection attempts used by this federation stream. | ||
*/ | ||
@Attribute(desc = "number of reconnection attempts used by this federation stream") | ||
int getReconnectAttempts(); | ||
|
||
/** | ||
* Returns {@code true} if steam allows a shared connection, {@code false} else. | ||
*/ | ||
@Attribute(desc = "whether this stream will allow the connection to be shared") | ||
boolean isSharedConnection(); | ||
|
||
/** | ||
* Returns {@code true} if this connection is configured to pull, {@code false} else. | ||
*/ | ||
@Attribute(desc = "whether this connection is configured to pull") | ||
boolean isPull(); | ||
|
||
/** | ||
* Returns {@code true} the connection is configured for HA, {@code false} else. | ||
*/ | ||
@Attribute(desc = "whether this connection is configured for HA") | ||
boolean isHA(); | ||
|
||
/** | ||
* Returns the name of the user the federation is associated with | ||
* | ||
*/ | ||
@Attribute(desc = "name of the user the federation is associated with") | ||
String getUser(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.