OSGI-INF.blueprint.fabric-commands.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-commands Show documentation
Show all versions of fabric-commands Show documentation
Fuse Fabric :: Karaf Commands
The newest version!
<!-- Copyright (C) FuseSource, Inc. http://fusesource.com Licensed 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. --> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:bp="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"> <reference id="featuresService" interface="org.apache.karaf.features.FeaturesService"/> <reference id="fabricService" interface="org.fusesource.fabric.api.FabricService"/> <reference id="zooKeeperClusterService" interface="org.fusesource.fabric.api.ZooKeeperClusterService"/> <reference id="zooKeeper" interface="org.fusesource.fabric.zookeeper.IZKClient"/> <reference id="configurationAdmin" interface="org.osgi.service.cm.ConfigurationAdmin" availability="optional"/> <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0"> <command name="fabric/ensemble-add"> <action class="org.fusesource.fabric.commands.EnsembleAdd"> <property name="service" ref="zooKeeperClusterService"/> </action> <completers> <ref component-id="containerCompleter"/> </completers> </command> <command name="fabric/ensemble-remove"> <action class="org.fusesource.fabric.commands.EnsembleRemove"> <property name="service" ref="zooKeeperClusterService"/> </action> <completers> <ref component-id="containerCompleter"/> </completers> </command> <command name="fabric/ensemble-list"> <action class="org.fusesource.fabric.commands.EnsembleList"> <property name="service" ref="zooKeeperClusterService"/> </action> </command> <command name="fabric/ensemble-password"> <action class="org.fusesource.fabric.commands.EnsemblePassword"> <property name="fabricService" ref="fabricService"/> </action> </command> <command name="fabric/container-create-child"> <action class="org.fusesource.fabric.commands.ContainerCreateChild"> <property name="fabricService" ref="fabricService"/> </action> <completers> <ref component-id="rootContainerCompleter"/> <null/> </completers> <optional-completers> <entry key="--profile" value-ref="profileCompleter"/> <entry key="--resolver" value-ref="resolverCompleter"/> </optional-completers> </command> <command name="fabric/container-delete"> <action class="org.fusesource.fabric.commands.ContainerDelete"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="containerCompleter"/> <null/> </completers> </command> <command name="fabric/container-list"> <action class="org.fusesource.fabric.commands.ContainerList"> <property name="fabricService" ref="fabricService"/> </action> <optional-completers> <entry key="--version" value-ref="versionCompleter"/> </optional-completers> </command> <command name="fabric/container-info"> <action class="org.fusesource.fabric.commands.ContainerInfo"> <property name="fabricService" ref="fabricService"/> </action> <completers> <ref component-id="containerCompleter"/> </completers> </command> <command name="fabric/container-resolver-list"> <action class="org.fusesource.fabric.commands.ContainerResolverList"> <property name="fabricService" ref="fabricService"/> </action> <completers> <ref component-id="containerCompleter"/> </completers> </command> <command name="fabric/container-resolver-set"> <action class="org.fusesource.fabric.commands.ContainerResolverSet"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="resolverCompleter"/> <null/> </completers> <optional-completers> <entry key="--container" value-ref="containerCompleter"/> </optional-completers> </command> <command name="fabric/container-connect"> <action class="org.fusesource.fabric.commands.ContainerConnect"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> <property name="sshClientId"> <bp:idref component-id="sshClient"/> </property> </action> <completers> <ref component-id="containerCompleter"/> <null/> </completers> </command> <command name="fabric/container-start"> <action class="org.fusesource.fabric.commands.ContainerStart"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="stoppedContainerCompleter" /> <null/> </completers> </command> <command name="fabric/container-stop"> <action class="org.fusesource.fabric.commands.ContainerStop"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="startedContainerCompleter" /> <null/> </completers> </command> <command name="fabric/container-upgrade"> <action class="org.fusesource.fabric.commands.ContainerUpgrade"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="versionCompleter"/> <ref component-id="containerCompleter"/> </completers> </command> <command name="fabric/container-rollback"> <action class="org.fusesource.fabric.commands.ContainerRollback"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="versionCompleter"/> <ref component-id="containerCompleter"/> </completers> </command> <command name="fabric/container-default-jvm-options"> <action class="org.fusesource.fabric.commands.ContainerDefaultJvmOptions"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> </command> <command name="fabric/container-domains"> <action class="org.fusesource.fabric.commands.ContainerDomains"> <property name="fabricService" ref="fabricService"/> </action> <completers> <ref component-id="containerCompleter"/> <null/> </completers> </command> <command name="fabric/container-change-profile"> <action class="org.fusesource.fabric.commands.ContainerChangeProfile"> <property name="fabricService" ref="fabricService"/> </action> <completers> <ref component-id="containerCompleter"/> <ref component-id="profileCompleter"/> </completers> </command> <command name="fabric/container-add-profile"> <action class="org.fusesource.fabric.commands.ContainerAddProfile"> <property name="fabricService" ref="fabricService"/> </action> <completers> <ref component-id="containerCompleter"/> <ref component-id="addProfileCompleter"/> </completers> </command> <command name="fabric/container-remove-profile"> <action class="org.fusesource.fabric.commands.ContainerRemoveProfile"> <property name="fabricService" ref="fabricService"/> </action> <completers> <ref component-id="containerCompleter"/> <ref component-id="removeProfileCompleter"/> </completers> </command> <command name="fabric/cluster-list"> <action class="org.fusesource.fabric.commands.ClusterList"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="clusterCompleter"/> <null/> </completers> </command> <command name="fabric/status"> <action class="org.fusesource.fabric.commands.Status"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> </command> <command name="fabric/require-profile-set"> <action class="org.fusesource.fabric.commands.RequireProfileSet"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="profileCompleter"/> <null/> </completers> <optional-completers> <entry key="--dependsOn" value-ref="profileCompleter"/> </optional-completers> </command> <command name="fabric/require-profile-delete"> <action class="org.fusesource.fabric.commands.RequireProfileDelete"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="profileCompleter"/> <null/> </completers> </command> <command name="fabric/require-profile-list"> <action class="org.fusesource.fabric.commands.RequireProfileList"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> </command> <command name="fabric/profile-create"> <action class="org.fusesource.fabric.commands.ProfileCreate"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <optional-completers> <entry key="--parents" value-ref="profileCompleter"/> <entry key="--version" value-ref="versionCompleter"/> </optional-completers> </command> <command name="fabric/profile-list"> <action class="org.fusesource.fabric.commands.ProfileList"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> </command> <command name="fabric/profile-display"> <action class="org.fusesource.fabric.commands.ProfileDisplay"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="profileCompleter"/> <null/> </completers> <optional-completers> <entry key="--version" value-ref="versionCompleter"/> </optional-completers> </command> <command name="fabric/profile-delete"> <action class="org.fusesource.fabric.commands.ProfileDelete"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="profileCompleter"/> <null/> </completers> <optional-completers> <entry key="--version" value-ref="versionCompleter"/> </optional-completers> </command> <command name="fabric/profile-edit"> <action class="org.fusesource.fabric.commands.ProfileEdit"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> <property name="configurationAdmin" ref="configurationAdmin"/> <property name="editorFactory" ref="editorFactory"/> </action> <completers> <ref component-id="profileCompleter"/> <ref component-id="versionCompleter"/> <null/> </completers> <optional-completers> <entry key="-f" value-ref="allFeatureCompleter"/> <entry key="-r" value-ref="featureUrlCompleter"/> <entry key="-b" value-ref="bundleCompleter"/> <entry key="-p" value-ref="delimitedConfigWithKeysCompleter"/> </optional-completers> </command> <command name="fabric/profile-refresh"> <action class="org.fusesource.fabric.commands.ProfileRefresh"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="profileCompleter"/> <ref component-id="versionCompleter"/> <null/> </completers> </command> <command name="fabric/profile-change-parents"> <action class="org.fusesource.fabric.commands.ProfileChangeParents"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> <property name="configurationAdmin" ref="configurationAdmin"/> </action> <completers> <ref component-id="profileCompleter"/> <ref component-id="profileCompleter"/> </completers> <optional-completers> <entry key="--version" value-ref="versionCompleter"/> </optional-completers> </command> <command name="fabric/version-create"> <action class="org.fusesource.fabric.commands.VersionCreate"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <optional-completers> <entry key="--parent" value-ref="versionCompleter"/> </optional-completers> </command> <command name="fabric/version-list"> <action class="org.fusesource.fabric.commands.VersionList"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> </command> <command name="fabric/version-delete"> <action class="org.fusesource.fabric.commands.VersionDelete"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="versionCompleter"/> </completers> </command> <command name="fabric/version-set-default"> <action class="org.fusesource.fabric.commands.VersionSetDefault"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <completers> <ref component-id="versionCompleter"/> </completers> </command> <command name="fabric/mq-create"> <action class="org.fusesource.fabric.commands.MQCreate"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </action> <optional-completers> <entry key="--version" value-ref="versionCompleter"/> </optional-completers> </command> <command name="fabric/import"> <action class="org.fusesource.fabric.commands.Import"> <property name="zooKeeper" ref="zooKeeper"/> </action> </command> <command name="fabric/export"> <action class="org.fusesource.fabric.commands.Export"> <property name="zooKeeper" ref="zooKeeper"/> </action> </command> <!-- <command name="fabric/patch-list-upgrades"> <action class="org.fusesource.fabric.commands.PatchListUpgrades"> <property name="fabricService" ref="fabricService"/> </action> </command> <command name="fabric/patch-apply-upgrades"> <action class="org.fusesource.fabric.commands.PatchApplyUpgrades"> <property name="fabricService" ref="fabricService"/> </action> </command> --> </command-bundle> <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.1.0"> <command name="hadoop/create"> <action class="org.fusesource.fabric.commands.hadoop.Create"> <property name="service" ref="fabricService"/> </action> <optional-completers> <entry key="--name-node" value-ref="containerCompleter"/> <entry key="--data-node" value-ref="containerCompleter"/> </optional-completers> </command> </command-bundle> <bean id="currentContainerCompleter" class="org.fusesource.fabric.boot.commands.support.CurrentContainerCompleter"/> <bean id="containerCompleter" class="org.fusesource.fabric.boot.commands.support.ContainerCompleter"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </bean> <bean id="rootContainerCompleter" class="org.fusesource.fabric.commands.support.RootContainerCompleter"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </bean> <bean id="startedContainerCompleter" class="org.fusesource.fabric.commands.support.StartedContainerCompleter"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </bean> <bean id="stoppedContainerCompleter" class="org.fusesource.fabric.commands.support.StoppedContainerCompleter"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </bean> <bean id="clusterCompleter" class="org.fusesource.fabric.commands.support.ZNodeCompleter"> <property name="zooKeeper" ref="zooKeeper"/> </bean> <bean id="profileCompleter" class="org.fusesource.fabric.boot.commands.support.ProfileCompleter"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </bean> <bean id="versionCompleter" class="org.fusesource.fabric.boot.commands.support.VersionCompleter"> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </bean> <bean id="allFeatureCompleter" class="org.fusesource.fabric.commands.support.DelimitedListCompleter"> <argument index="0"> <ref component-id="karafAllFeatureCompleter"/> </argument> </bean> <bean id="featureUrlCompleter" class="org.fusesource.fabric.commands.support.DelimitedListCompleter"> <argument index="0"> <ref component-id="karafFeatureUrlCompleter"/> </argument> </bean> <bean id="bundleCompleter" class="org.fusesource.fabric.commands.support.DelimitedListCompleter"> <argument index="0"> <ref component-id="bundleLocationCompleter"/> </argument> </bean> <bean id="delimitedConfigWithKeysCompleter" class="org.fusesource.fabric.commands.support.DelimitedListCompleter"> <argument index="0"> <bean class="org.fusesource.fabric.commands.support.ConfigWithKeyCompleter" init-method="init"> <property name="admin" ref="configurationAdmin"/> </bean> </argument> </bean> <bean id="configCompleter" class="org.apache.karaf.shell.config.completers.ConfigurationCompleter"> <property name="admin" ref="configurationAdmin"/> </bean> <bean id="addProfileCompleter" class="org.fusesource.fabric.boot.commands.support.ContainerAwareProfileCompleter"> <argument index="0" value="1"/> <argument index="1" value="false"/> <argument index="2" value="true"/> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </bean> <bean id="removeProfileCompleter" class="org.fusesource.fabric.boot.commands.support.ContainerAwareProfileCompleter"> <argument index="0" value="1"/> <argument index="1" value="true"/> <argument index="2" value="false"/> <property name="fabricService" ref="fabricService"/> <property name="zooKeeper" ref="zooKeeper"/> </bean> <bean id="bundleLocationCompleter" class="org.fusesource.fabric.commands.support.BundleLocationCompleter"> <property name="featuresService" ref="featuresService" /> </bean> <!-- Karaf Completers --> <bean id="karafAllFeatureCompleter" class="org.apache.karaf.features.command.completers.AllFeatureCompleter"> <property name="featuresService" ref="featuresService" /> </bean> <bean id="karafFeatureUrlCompleter" class="org.apache.karaf.features.command.completers.FeatureRepositoryCompleter"> <property name="featuresService" ref="featuresService" /> </bean> <bean id="resolverCompleter" class="org.fusesource.fabric.boot.commands.support.ResolverCompleter"/> <!-- Container Connect --> <bean id="agentFactory" class="org.apache.karaf.shell.ssh.KarafAgentFactory" /> <reference-list id="agents" interface="org.apache.sshd.agent.SshAgent" availability="optional" activation="eager"> <reference-listener ref="agentFactory" bind-method="registerAgent" unbind-method="unregisterAgent" /> </reference-list> <bean id="sshClient" class="org.apache.sshd.SshClient" factory-method="setUpDefaultClient" scope="prototype"> <property name="agentFactory" ref="agentFactory" /> </bean> <reference id="editorFactory" interface="org.jledit.EditorFactory"/> </blueprint>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy