Skip to content

Commit

Permalink
codegen admin command to remove a domain
Browse files Browse the repository at this point in the history
Signed-off-by: Emelia Lei <[email protected]>
  • Loading branch information
emelialei88 committed Dec 10, 2024
1 parent 1739af0 commit fcd0589
Show file tree
Hide file tree
Showing 5 changed files with 730 additions and 14 deletions.
9 changes: 8 additions & 1 deletion src/groups/mqb/mqbcmd/mqbcmd.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<element name='encoding' type='tns:EncodingFormat' default='TEXT'/>
</sequence>
</complexType>

<simpleType name='EncodingFormat'>
<annotation>
<documentation>
Expand Down Expand Up @@ -764,11 +764,18 @@
<complexType name="DomainsCommand">
<choice>
<element name="domain" type="tns:Domain"/>
<element name="remove" type="tns:DomainRemove"/>
<element name="resolver" type="tns:DomainResolverCommand"/>
<element name="reconfigure" type="tns:DomainReconfigure"/>
</choice>
</complexType>

<complexType name="DomainRemove">
<choice>
<element name="domain" type="xs:string"/>
</choice>
</complexType>

<complexType name="DomainResolverCommand">
<choice>
<element name="clearCache" type="tns:ClearCache"/>
Expand Down
3 changes: 3 additions & 0 deletions src/groups/mqb/mqbcmd/mqbcmd_commandlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ struct CommandDefinition {
"'count' is 'negative', print '-count' messages *preceding* the "
"specified starting position. If 'count' is 'UNLIMITED', print all "
"the messages starting at and after the specified position."},
{"DOMAINS REMOVE <domain>",
"Reject all incoming connections to all queues in domain 'name'",
"and purge them from the domain"},
{"DOMAINS RECONFIGURE <domain>",
"Reconfigure 'domain' by reloading its configuration from disk",
"Reconfigure 'domain' by reloading its configuration from disk"},
Expand Down
Loading

0 comments on commit fcd0589

Please sign in to comment.