VirtServerRegistryMBean.java
| Index Score | ||
|---|---|---|
![]() |
![]() |
org.alfresco.mbeans |
![]() |
![]() |
Alfresco |
View: Reasons, Metrics, Source Code
These are the metrics that contribute to the Enerjy Score for this file, ranked by impact. So the metrics listed at the top influence the score to a greater extent that the metrics listed at the bottom.
/*-----------------------------------------------------------------------------
* Copyright 2006 Alfresco Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* As a special exception to the terms and conditions of version 2.0 of
* the GPL, you may redistribute this Program in connection with Free/Libre
* and Open Source Software ("FLOSS") applications as described in Alfresco's
* FLOSS exception. You should have recieved a copy of the text describing
* the FLOSS exception, and it is also available here:
* http://www.alfresco.com/legal/licensing"
*
* Author Jon Cox <jcox@alfresco.com>
* File VirtServerRegistryMBean.java
*----------------------------------------------------------------------------*/
package org.alfresco.mbeans;
// By making the VirtServerRegistryMBean ApplicationContextAware,
// it's possible to defer loading of the server connnector bean
// until the implementation verifies there's a password file
// at runtime. By creating the server connector manually,
// it's possible to trap any errors that might have occurred
// loading the password file, and make it non-fatal to the
// webapp as a whole (though it does disable WCM functionality).
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.ApplicationContext;
public interface VirtServerRegistryMBean extends ApplicationContextAware
{
public void initialize();
// public void setVirtServerJmxUrl(String virtServerJmxUrl);
public String getVirtServerJmxUrl();
public Integer getVirtServerHttpPort();
public String getVirtServerFQDN();
public void registerVirtServerInfo( String virtServerJmxUrl,
String virtServerFQDN,
Integer virtServerHttpPort
);
/** Sets password file used to access virt server */
public void setPasswordFile(String path);
/** Gets password file used to access virt server */
public String getPasswordFile();
/** Sets access "role" file used by virt server */
public void setAccessFile(String path);
/** Gets access "role" file used by virt server */
public String getAccessFile();
/**
* Notifies remote listener that a AVM-based webapp has been updated;
* an "update" is any change to (or creation of) contents within
* WEB-INF/classes WEB-INF/lib, WEB-INF/web.xml of a webapp.
*
* @param version The version of the webapp being updated.
* Typically, this is set to -1, which corresponds
* to the very latest version ("HEAD").
* If versinon != -1, you might want to consider
* setting the 'isRecursive' parameter to false.
* <p>
*
* @param pathToWebapp The full AVM path to the webapp being updated.
* For example: repoName:/www/avm_webapps/your_webapp
* <p>
*
* @param isRecursive When true, update all webapps that depend on this one.
* For example, an author's webapps share jar/class files
* with the master version in staging; thus, the author's
* webapp "depends" on the webapp in staging. Similarly,
* webapps in an author's preview area depend on the ones
* in the "main" layer of the author's sandbox.
* You might wish to set this parameter to 'false' if
* the goal is to bring a non-HEAD version of a staging
* area online, without forcing the virtualization server
* to load all the author sandboxes for this archived
* version as well.
*/
public boolean
updateWebapp(int version, String pathToWebapp, boolean isRecursive);
/**
* Notifies remote listener that a AVM-based webapp has been updated;
* an "update" is any change to (or creation of) contents within
* WEB-INF/classes WEB-INF/lib, WEB-INF/web.xml of a webapp.
*
* @param version The version of the webapp being updated.
* Typically, this is set to -1, which corresponds
* to the very latest version ("HEAD").
* If versinon != -1, you might want to consider
* setting the 'isRecursive' parameter to false.
* <p>
*
* @param path The full AVM path to the webapp being updated.
* For example: repoName:/www/avm_webapps/your_webapp
* <p>
*
* @param isRecursive When true, update all webapps that depend on this one.
* For example, an author's webapps share jar/class files
* with the master version in staging; thus, the author's
* webapp "depends" on the webapp in staging. Similarly,
* webapps in an author's preview area depend on the ones
* in the "main" layer of the author's sandbox.
* You might wish to set this parameter to 'false' if
* the goal is to bring a non-HEAD version of a staging
* area online, without forcing the virtualization server
* to load all the author sandboxes for this archived
* version as well.
*/
public boolean
updateAllWebapps(int version, String path, boolean isRecursive);
/**
* Notifies remote listener that a AVM-based webapp has been removed.
*
* @param version The version of the webapp being removed.
* Typically, this is set to -1, which corresponds
* to the very latest version ("HEAD").
* If versinon != -1, you might want to consider
* setting the 'isRecursive' parameter to false.
* <p>
*
* @param pathToWebapp The full AVM path to the webapp being removed.
* For example: repoName:/www/avm_webapps/your_webapp
* <p>
*
* @param isRecursive When true, remove all webapps that depend on this one.
* For example, an author's webapps share jar/class files
* with the master version in staging; thus, the author's
* webapp "depends" on the webapp in staging. Similarly,
* webapps in an author's preview area depend on the ones
* in the "main" layer of the author's sandbox.
* You might wish to set this parameter to 'false' if
* the goal is to bring a non-HEAD version of a staging
* area online, without forcing the virtualization server
* to load all the author sandboxes for this archived
* version as well.
*/
public boolean
removeWebapp(int version, String pathToWebapp, boolean isRecursive );
/**
* Notifies remote listener that a AVM-based webapp has been removed.
*
* @param version The version of the webapp being removed.
* Typically, this is set to -1, which corresponds
* to the very latest version ("HEAD").
* If versinon != -1, you might want to consider
* setting the 'isRecursive' parameter to false.
* <p>
*
* @param path The full AVM path to the webapp being removed.
* For example: repoName:/www/avm_webapps/your_webapp
* <p>
*
* @param isRecursive When true, remove all webapps that depend on this one.
* For example, an author's webapps share jar/class files
* with the master version in staging; thus, the author's
* webapp "depends" on the webapp in staging. Similarly,
* webapps in an author's preview area depend on the ones
* in the "main" layer of the author's sandbox.
* You might wish to set this parameter to 'false' if
* the goal is to bring a non-HEAD version of a staging
* area online, without forcing the virtualization server
* to load all the author sandboxes for this archived
* version as well.
*/
public boolean
removeAllWebapps(int version, String path, boolean isRecursive );
}
The table below shows all metrics for VirtServerRegistryMBean.java.




