public class VirtServerRegistry extends Object implements VirtServerRegistryMBean
| Constructor and Description |
|---|
VirtServerRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeJmxRmiConnection() |
String |
getAccessFile()
Gets access "role" file used by virt server
|
String |
getPasswordFile()
Gets password file used to access virt server
|
String |
getVirtServerFQDN() |
Integer |
getVirtServerHttpPort() |
String |
getVirtServerJmxUrl() |
void |
initialize() |
protected boolean |
jmxRmiWebappNotification(String action,
int version,
String pathToWebapp,
boolean isRecursive) |
boolean |
pingVirtServer()
Fast check of the accessibility of the virtualization server.
|
void |
registerVirtServerInfo(String virtServerJmxUrl,
String virtServerFQDN,
Integer virtServerHttpPort)
Accepts the registration of a remote virtualization server's
JMXServiceURL, FQDN, and HTTP port.
|
boolean |
removeAllWebapps(int version,
String path,
boolean isRecursive)
Notifies remote listener that a AVM-based webapp has been removed.
|
boolean |
removeWebapp(int version,
String pathToWebapp,
boolean isRecursive)
Notifies remote listener that a AVM-based webapp has been removed.
|
void |
setAccessFile(String path)
Sets access "role" file used by virt server
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setPasswordFile(String path)
Sets password file used to access virt server
|
boolean |
updateAllWebapps(int version,
String path,
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.
|
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.
|
boolean |
verifyJmxRmiConnection() |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic void initialize()
initialize in interface VirtServerRegistryMBeanpublic void setPasswordFile(String path)
VirtServerRegistryMBeansetPasswordFile in interface VirtServerRegistryMBeanpublic String getPasswordFile()
VirtServerRegistryMBeangetPasswordFile in interface VirtServerRegistryMBeanpublic void setAccessFile(String path)
VirtServerRegistryMBeansetAccessFile in interface VirtServerRegistryMBeanpublic String getAccessFile()
VirtServerRegistryMBeangetAccessFile in interface VirtServerRegistryMBeanpublic Integer getVirtServerHttpPort()
getVirtServerHttpPort in interface VirtServerRegistryMBeanpublic String getVirtServerFQDN()
getVirtServerFQDN in interface VirtServerRegistryMBeanpublic void registerVirtServerInfo(String virtServerJmxUrl, String virtServerFQDN, Integer virtServerHttpPort)
registerVirtServerInfo in interface VirtServerRegistryMBeanpublic String getVirtServerJmxUrl()
getVirtServerJmxUrl in interface VirtServerRegistryMBeanpublic boolean updateWebapp(int version,
String pathToWebapp,
boolean isRecursive)
updateWebapp in interface VirtServerRegistryMBeanversion - 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.
pathToWebapp - The full AVM path to the webapp being updated.
For example: storeName:/www/avm_webapps/your_webapp
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)
updateAllWebapps in interface VirtServerRegistryMBeanversion - 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.
path - The full AVM path to the webapp(s) being updated.
For example: storeName:/www/avm_webapps/your_webapp
or: storeName:/www/avm_webapps
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 removeWebapp(int version,
String pathToWebapp,
boolean isRecursive)
removeWebapp in interface VirtServerRegistryMBeanversion - 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.
pathToWebapp - The full AVM path to the webapp being removed.
For example: storeName:/www/avm_webapps/your_webapp
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)
removeAllWebapps in interface VirtServerRegistryMBeanversion - 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.
path - The full AVM path to the webapp(s) being removed.
For example: storeName:/www/avm_webapps/your_webapp
or: storeName:/www/avm_webapps
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 verifyJmxRmiConnection()
public boolean pingVirtServer()
org.alfresco.linkvalidation.LinkValidationServiceImplprotected boolean jmxRmiWebappNotification(String action, int version, String pathToWebapp, boolean isRecursive)
public void closeJmxRmiConnection()
Copyright © 2005–2014 Alfresco Software. All rights reserved.