001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)AdminServiceMBean.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.management.system;
030:
031: import javax.management.ObjectName;
032: import javax.management.MBeanServerConnection;
033:
034: /**
035: * AdminServiceMBean defines the Sun Extentions to AdminServiceMBean.
036: *
037: * The AdminService is responsible for bootstrapping the
038: * JBI Framework management layer for all other system services,
039: * starting and stoping the system, and providing information
040: * that remote clients can use to access other JBI Framework
041: * system services and installed components.
042: *
043: * @author Sun Microsystems, Inc.
044: */
045: public interface AdminServiceMBean extends
046: javax.jbi.management.AdminServiceMBean {
047: /**
048: * Get the DeployerMBean for the <CODE>componentName</CODE> associated with
049: * <code>artifactUrl</code>.
050: *
051: * @return JMX object name of Component's DeployerMBean or null
052: */
053: ObjectName[] getDeployerMBeanNames(String componentName);
054:
055: /**
056: * Return the name of this JBI Framework runtime
057: *
058: * @return the instance name of this runtime.
059: */
060: String getJbiInstanceName();
061:
062: /**
063: * Lookup all active MBeans associated with <CODE>componentName</CODE>.
064: * @param componentName - is the name of the BC or SE.
065: * @return the array of JMX object names for the component.
066: */
067: ObjectName[] getComponentMBeans(String componentName);
068:
069: /**
070: * Return URL that can be used to upload and deploy a remote
071: * Service Assembly.
072: * @return URL String
073: */
074: String getRemoteFileUploadURL() throws Exception;
075:
076: /**
077: * @return the full product name.
078: */
079: String getFullProductName();
080:
081: /**
082: * @return the short product name.
083: */
084: String getShortProductName();
085:
086: /**
087: * @return the major version number.
088: */
089: String getMajorVersion();
090:
091: /**
092: * @return the minor version number.
093: */
094: String getMinorVersion();
095:
096: /**
097: * @return the build number for this version.
098: */
099: String getBuildNumber();
100:
101: /**
102: * @return the Copyright for this version.
103: */
104: String getCopyright();
105:
106: /**
107: * Start all Management service agents
108: * @return true if successful.
109: */
110: boolean startManagementServices();
111:
112: /**
113: * Stop all Management service agents and deregister Service Mbeans.
114: * @return true if successful.
115: */
116: boolean stopManagementServices();
117:
118: /**
119: * Shutdown all Management service agents and deregister all MBeans..
120: * @return true if successful.
121: */
122: boolean shutdownManagementServices();
123: }
|