[teiid-commits] teiid SVN: r536 - in trunk: server/src/main/java/com/metamatrix/platform/admin/apiimpl and 1 other directory.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Tue Mar 3 18:48:40 EST 2009


Author: rareddy
Date: 2009-03-03 18:48:40 -0500 (Tue, 03 Mar 2009)
New Revision: 536

Modified:
   trunk/common-internal/src/main/java/com/metamatrix/platform/admin/api/RuntimeStateAdminAPI.java
   trunk/server/src/main/java/com/metamatrix/platform/admin/apiimpl/RuntimeStateAdminAPIImpl.java
Log:
TEIID-394

Modified: trunk/common-internal/src/main/java/com/metamatrix/platform/admin/api/RuntimeStateAdminAPI.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/platform/admin/api/RuntimeStateAdminAPI.java	2009-03-03 23:23:06 UTC (rev 535)
+++ trunk/common-internal/src/main/java/com/metamatrix/platform/admin/api/RuntimeStateAdminAPI.java	2009-03-03 23:48:40 UTC (rev 536)
@@ -31,7 +31,6 @@
 import com.metamatrix.api.exception.MultipleException;
 import com.metamatrix.api.exception.security.AuthorizationException;
 import com.metamatrix.common.config.api.Configuration;
-import com.metamatrix.common.config.api.ServiceComponentDefnID;
 import com.metamatrix.common.log.LogConfiguration;
 import com.metamatrix.common.queue.WorkerPoolStats;
 import com.metamatrix.platform.admin.api.runtime.PscID;
@@ -247,25 +246,6 @@
                                             MetaMatrixComponentException;
 
     /**
-     * Start a deployed service.
-     * 
-     * @param id
-     *            ServiceComponentDefnID of service instance.
-     * @param vmID
-     *            Identifies VMController to start service in.
-     * @throws AuthorizationException
-     *             if caller is not authorized to perform this method.
-     * @throws InvalidSessionException
-     *             if the <code>callerSessionID</code> is not valid or is expired.
-     * @throws MetaMatrixComponentException
-     *             if an error occurred in communicating with a component.
-     */
-    void startDeployedService(ServiceComponentDefnID id,
-                              VMControllerID vmID) throws AuthorizationException,
-                                                  InvalidSessionException,
-                                                  MetaMatrixComponentException;
-
-    /**
      * Start up all processes and services for the host.
      * 
      * @param host

Modified: trunk/server/src/main/java/com/metamatrix/platform/admin/apiimpl/RuntimeStateAdminAPIImpl.java
===================================================================
--- trunk/server/src/main/java/com/metamatrix/platform/admin/apiimpl/RuntimeStateAdminAPIImpl.java	2009-03-03 23:23:06 UTC (rev 535)
+++ trunk/server/src/main/java/com/metamatrix/platform/admin/apiimpl/RuntimeStateAdminAPIImpl.java	2009-03-03 23:48:40 UTC (rev 536)
@@ -446,37 +446,6 @@
     }
 
     /**
-     * Start a deployed service.
-     * 
-     * @param id
-     *            ServiceComponentDefnID of service instance.
-     * @param vmID
-     *            Identifies VMController to start service in.
-     * @throws AuthorizationException
-     *             if caller is not authorized to perform this method.
-     * @throws InvalidSessionException
-     *             if the <code>callerSessionID</code> is not valid or is expired.
-     * @throws MetaMatrixComponentException
-     *             if an error occurred in communicating with a component.
-     */
-    public synchronized void startDeployedService(ServiceComponentDefnID serviceID,
-                                                  VMControllerID vmID) throws AuthorizationException,
-                                                                      InvalidSessionException,
-                                                                      MetaMatrixComponentException {
-
-        // Validate caller's session
-        SessionToken token = AdminAPIHelper.validateSession(getSessionID());
-        I18nLogManager.logInfo(LogPlatformConstants.CTX_RUNTIME_ADMIN, LogMessageKeys.ADMIN_0019, new Object[] {
-            serviceID
-        });
-
-        // Validate caller's role
-        AdminAPIHelper.checkForRequiredRole(token, AdminRoles.RoleName.ADMIN_PRODUCT, "RuntimeStateAdminAPIImpl.startDeployedService(" + serviceID + ", " + vmID + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-
-        helper.startDeployedService(serviceID, vmID);
-    }
-
-    /**
      * Start Host and all processes/services for host.
      * 
      * @param host




More information about the teiid-commits mailing list