// $Id: Deployment_ApplicationManager.idl 77254 2007-02-20 16:38:18Z wotte $
#ifndef DEPLOYMENT_APPLICATIONMANAGER_IDL
#define DEPLOYMENT_APPLICATIONMANAGER_IDL

#include "DAnCE/Deployment/Deployment_Core.idl"
#include "DAnCE/Deployment/Deployment.idl"

module Deployment {
  exception ResourceNotAvailable {
    string name;
    string resourceType;
    string propertyName;
    string elementName;
    string resourceName;
  };

  interface ApplicationManager {
    /// @todo Spec mentions another few exceptions in the raises cluase
    // @@changed
    Application startLaunch (in Properties configProperty,
                             out Connections providedReference,
                             in boolean start)
      raises (ResourceNotAvailable, StartError, InvalidProperty,
              InvalidNodeExecParameter, InvalidComponentExecParameter);
    void destroyApplication (in Application app)
      raises (StopError);
  };
};

#endif /* DEPLOYMENT_APPLICATIONMANAGER_IDL */
