001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common Development
008: * and Distribution License("CDDL") (collectively, the "License"). You
009: * may not use this file except in compliance with the License. You can obtain
010: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
011: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
012: * language governing permissions and limitations under the License.
013: *
014: * When distributing the software, include this License Header Notice in each
015: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
016: * Sun designates this particular file as subject to the "Classpath" exception
017: * as provided by Sun in the GPL Version 2 section of the License file that
018: * accompanied this code. If applicable, add the following below the License
019: * Header, with the fields enclosed by brackets [] replaced by your own
020: * identifying information: "Portions Copyrighted [year]
021: * [name of copyright owner]"
022: *
023: * Contributor(s):
024: *
025: * If you wish your version of this file to be governed by only the CDDL or
026: * only the GPL Version 2, indicate your decision by adding "[Contributor]
027: * elects to include this software in this distribution under the [CDDL or GPL
028: * Version 2] license." If you don't indicate a single choice of license, a
029: * recipient has the option to distribute your version of this file under
030: * either the CDDL, the GPL Version 2 or to extend the choice of license to
031: * its licensees as provided above. However, if you add GPL Version 2 code
032: * and therefore, elected the GPL Version 2 license, then the option applies
033: * only if the new code is made subject to such option by the copyright
034: * holder.
035: */
036:
037: package com.sun.jbi.cli.commands;
038:
039: /**
040: * Will define the JBI Command Constants
041: * @version $Revision: 1.1 $
042: */
043: public abstract class JBICommandConstants {
044: // ------------------------------------------------------------------
045: // JBI asadmin Command Names
046: // ------------------------------------------------------------------
047: public static final String UPGRADE_JBI_COMPONENT = "upgrade-jbi-component";
048: public static final String SHOW_JBI_SERVICE_ENGINE = "show-jbi-service-engine";
049: public static final String SHOW_JBI_BINDING_COMPONENT = "show-jbi-binding-component";
050: public static final String SHOW_JBI_SHARED_LIBRARY = "show-jbi-shared-library";
051: public static final String SHOW_JBI_SERVICE_ASSEMBLY = "show-jbi-service-assembly";
052: public static final String SHOW_JBI_RUNTIME_CONFIGURATION = "show-jbi-runtime-configuration";
053: public static final String SHOW_JBI_APPLICATION_CONFIGURATION = "show-jbi-application-configuration";
054: public static final String SHOW_JBI_RUNTIME_LOGGERS = "show-jbi-runtime-loggers";
055: public static final String SHOW_JBI_STATISTICS = "show-jbi-statistics";
056: public static final String SET_JBI_RUNTIME_LOGGER = "set-jbi-runtime-logger";
057: public static final String SET_JBI_COMPONENT_LOGGER = "set-jbi-component-logger";
058: public static final String SET_JBI_RUNTIME_CONFIGURATION = "set-jbi-runtime-configuration";
059: public static final String SET_JBI_COMPONENT_CONFIGURATION = "set-jbi-component-configuration";
060: public static final String CREATE_APPLICATION_CONFIGURATION = "create-jbi-application-configuration";
061: public static final String CREATE_APPLICATION_VARIABLE = "create-jbi-application-variable";
062: public static final String UPDATE_APPLICATION_CONFIGURATION = "update-jbi-application-configuration";
063: public static final String UPDATE_APPLICATION_VARIABLE = "update-jbi-application-variable";
064: public static final String DELETE_APPLICATION_CONFIGURATION = "delete-jbi-application-configuration";
065: public static final String DELETE_APPLICATION_VARIABLE = "delete-jbi-application-variable";
066: public static final String LIST_APPLICATION_CONFIGURATIONS = "list-jbi-application-configurations";
067: public static final String LIST_APPLICATION_VARIABLES = "list-jbi-application-variables";
068: public static final String LIST_SERVICE_ENGINES = "list-jbi-service-engines";
069: public static final String LIST_BINDING_COMPONENTS = "list-jbi-binding-components";
070: public static final String LIST_SHARED_LIBRARIES = "list-jbi-shared-libraries";
071: public static final String LIST_SERVICE_ASSEMBLIES = "list-jbi-service-assemblies";
072: public static final String VERIFY_JBI_APPLICATION_ENVIRONMENT = "verify-jbi-application-environment";
073: public static final String EXPORT_JBI_APPLICATION_ENVIRONMENT = "export-jbi-application-environment";
074: public static final String INSTALL_COMPONENT = "install-jbi-component";
075: public static final String INSTALL_SHARED_LIBRARY = "install-jbi-shared-library";
076: public static final String DEPLOY_SERVICE_ASSEMBLY = "deploy-jbi-service-assembly";
077: public static final String UNINSTALL_COMPONENT = "uninstall-jbi-component";
078: public static final String UNINSTALL_SHARED_LIBRARY = "uninstall-jbi-shared-library";
079: public static final String UNDEPLOY_SERVICE_ASSEMBLY = "undeploy-jbi-service-assembly";
080: public static final String START_COMPONENT = "start-jbi-component";
081: public static final String STOP_COMPONENT = "stop-jbi-component";
082: public static final String SHUT_DOWN_COMPONENT = "shut-down-jbi-component";
083: public static final String START_SERVICE_ASSEMBLY = "start-jbi-service-assembly";
084: public static final String STOP_SERVICE_ASSEMBLY = "stop-jbi-service-assembly";
085: public static final String SHUT_DOWN_SERVICE_ASSEMBLY = "shut-down-jbi-service-assembly";
086:
087: // ------------------------------------------------------------------
088: // Command Option String Values
089: // ------------------------------------------------------------------
090: public static final String TERSE_OPTION = "terse";
091: public static final String TARGET_OPTION = "target";
092: public static final String LIBRARY_NAME_OPTION = "libraryname";
093: public static final String ASSEMBLY_NAME_OPTION = "assemblyname";
094: public static final String COMPONENT_NAME_OPTION = "componentname";
095: public static final String UPLOAD_OPTION = "upload";
096: public static final String ENABLED_OPTION = "enabled";
097: public static final String LIFECYCLE_STATE_OPTION = "lifecyclestate";
098: public static final String FORCE_OPTION = "force";
099: public static final String KEEP_ARCHIVE_OPTION = "keeparchive";
100: public static final String PROPERTIES_OPTION = "properties";
101: public static final String UPGRADE_FILE_OPTION = "upgradefile";
102: public static final String GENERAL_OPTION = "general";
103: public static final String DISPLAY_OPTION = "display";
104: public static final String LOGGERS_OPTION = "loggers";
105: public static final String CONFIGURATION_OPTION = "configuration";
106: public static final String DESCRIPTOR_OPTION = "descriptor";
107: public static final String COMPONENT_OPTION = "component";
108: public static final String CONFIG_NAME_OPTION = "configname";
109: public static final String FRAMEWORK_OPTION = "framework";
110: public static final String NMR_OPTION = "nmr";
111: public static final String ENDPOINT_OPTION = "endpoint";
112: public static final String SERVICE_ASSEMBLY_OPTION = "serviceassembly";
113: public static final String TEMPLATE_DIR_OPTION = "templatedir";
114: public static final String CONFIG_DIR_OPTION = "configdir";
115: public static final String INCLUDE_DEPLOY_OPTION = "includedeploy";
116:
117: // ------------------------------------------------------------------
118: // Application Variables Text Type Constants
119: // ------------------------------------------------------------------
120: public static final String STRING_TYPE = "[STRING]";
121: public static final String BOOLEAN_TYPE = "[BOOLEAN]";
122: public static final String NUMBER_TYPE = "[NUMBER]";
123: public static final String PASSWORD_TYPE = "[PASSWORD]";
124:
125: // ------------------------------------------------------------------
126: // Specified in JBIStatisticsMBeanImpl.java, Not parameterized so we need
127: // to define them here for our use.
128: // ------------------------------------------------------------------
129: public static final String PROVIDER_ENDPOINT_TYPE_NAME = "ProviderEndpointStats";
130: public static final String COMSUMER_ENDPOINT_TYPE_NAME = "ConsumerEndpointStats";
131:
132: }
|