mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Added support to the UI for file server deployment
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6155 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -367,7 +367,7 @@ public final class AVMUtil
|
||||
|
||||
/**
|
||||
* Returns the default RMI registry port to use when one is not supplied
|
||||
* for target deployment servers.
|
||||
* for target Alfresco deployment servers.
|
||||
* <p>
|
||||
* This value is read from the <wcm> config section in
|
||||
* web-client-config-wcm.xml
|
||||
@@ -404,6 +404,45 @@ public final class AVMUtil
|
||||
return rmiPort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the default RMI port to use when one is not supplied
|
||||
* for target deployment receivers.
|
||||
* <p>
|
||||
* This value is read from the <wcm> config section in
|
||||
* web-client-config-wcm.xml
|
||||
* </p>
|
||||
*
|
||||
* @return The deployment receiver RMI port to use for deployments.
|
||||
* The default is 44100.
|
||||
*/
|
||||
public static int getRemoteReceiverRMIPort()
|
||||
{
|
||||
int rmiPort = 44100;
|
||||
|
||||
ConfigElement deploymentConfig = getDeploymentConfig();
|
||||
if (deploymentConfig != null)
|
||||
{
|
||||
ConfigElement elem = deploymentConfig.getChild("receiver-rmi-port");
|
||||
if (elem != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
int value = Integer.parseInt(elem.getValue());
|
||||
if (value > 0)
|
||||
{
|
||||
rmiPort = value;
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
{
|
||||
// do nothing, just use the default
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return rmiPort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the delay (in seconds) to apply to the start of a deployment
|
||||
* operation (mainly for demo and testing purposes).
|
||||
|
Reference in New Issue
Block a user