com.eurotech.framework.deployment.agent
Interface DeploymentAgentService

All Known Implementing Classes:
DeploymentAgent

public interface DeploymentAgentService


Field Summary
static String EVENT_INSTALLED_TOPIC
          Event topic on which the result of the deployment package installation is posted.
static String EVENT_PACKAGE_NAME
          Event property representing the symbolic name of the deployment package.
static String EVENT_PACKAGE_URL
          Event property representing the URL of the deployment package.
static String EVENT_PACKAGE_VERSION
           
static String EVENT_SUCCESSFUL
          Event property representing the success (true or false) of the deployment package installation.
static String EVENT_UNINSTALLED_TOPIC
          Event topic on which the result of the deployment package uninstallation is posted.
 
Method Summary
 void installDeploymentPackageAsync(String url)
          Installs a Deployment Package asynchronously fetching it at the given URL.
 boolean isInstallingDeploymentPackage(String url)
          Asks if the installation of a deployment package at the given URL is pending.
 boolean isUninstallingDeploymentPackage(String name)
          Asks if the uninstallation of a deployment package with the given symbolic name is pending.
 void uninstallDeploymentPackageAsync(String name)
          Uninstalls a Deployment Package asynchronously.
 

Field Detail

EVENT_INSTALLED_TOPIC

static final String EVENT_INSTALLED_TOPIC
Event topic on which the result of the deployment package installation is posted.


EVENT_PACKAGE_URL

static final String EVENT_PACKAGE_URL
Event property representing the URL of the deployment package.

See Also:
Constant Field Values

EVENT_SUCCESSFUL

static final String EVENT_SUCCESSFUL
Event property representing the success (true or false) of the deployment package installation.

See Also:
Constant Field Values

EVENT_UNINSTALLED_TOPIC

static final String EVENT_UNINSTALLED_TOPIC
Event topic on which the result of the deployment package uninstallation is posted.


EVENT_PACKAGE_NAME

static final String EVENT_PACKAGE_NAME
Event property representing the symbolic name of the deployment package.

See Also:
Constant Field Values

EVENT_PACKAGE_VERSION

static final String EVENT_PACKAGE_VERSION
See Also:
Constant Field Values
Method Detail

installDeploymentPackageAsync

void installDeploymentPackageAsync(String url)
                                   throws Exception
Installs a Deployment Package asynchronously fetching it at the given URL. The method queues the package URL and returns immediately. The result of the package installation is notified asynchronously posting an Event on the topic EVENT_INSTALLED_TOPIC

Parameters:
url - The URL of the deployment package
Throws:
Exception - If the installation of a deployment package at the same URL is still pending
See Also:
installDeploymentPackage

uninstallDeploymentPackageAsync

void uninstallDeploymentPackageAsync(String name)
                                     throws Exception
Uninstalls a Deployment Package asynchronously. The method queues the package symbolic name and returns immediately. The result of the package uninstallation is notified asynchronously posting an Event on the topic EVENT_UNINSTALLED_TOPIC

Parameters:
name - The symbolic name of the deployment package
Throws:
Exception - If the uninstallation of a deployment package at the same symbolic name is still pending
See Also:
uninstallDeploymentPackage

isInstallingDeploymentPackage

boolean isInstallingDeploymentPackage(String url)
Asks if the installation of a deployment package at the given URL is pending.

Parameters:
url - The URL of the deployment package
Returns:
true if the installation of a deployment package at URL is pending

isUninstallingDeploymentPackage

boolean isUninstallingDeploymentPackage(String name)
Asks if the uninstallation of a deployment package with the given symbolic name is pending.

Parameters:
name - The symbolic name of the deployment package
Returns:
true if the uninstallation of a deployment package at URL is pending


Copyright © 2013. All Rights Reserved.