private StratosManagerServiceClient(String epr) throws AxisFault {

    String ccSocketTimeout =
        System.getProperty(StratosConstants.STRATOS_MANAGER_CLIENT_SOCKET_TIMEOUT) == null
            ? StratosConstants.DEFAULT_CLIENT_SOCKET_TIMEOUT
            : System.getProperty(StratosConstants.STRATOS_MANAGER_CLIENT_SOCKET_TIMEOUT);

    String ccConnectionTimeout =
        System.getProperty(StratosConstants.STRATOS_MANAGER_CLIENT_CONNECTION_TIMEOUT) == null
            ? StratosConstants.DEFAULT_CLIENT_CONNECTION_TIMEOUT
            : System.getProperty(StratosConstants.STRATOS_MANAGER_CLIENT_CONNECTION_TIMEOUT);

    try {
      stub = new StratosManagerServiceStub(epr);
      stub._getServiceClient()
          .getOptions()
          .setProperty(HTTPConstants.SO_TIMEOUT, Integer.valueOf(ccSocketTimeout));
      stub._getServiceClient()
          .getOptions()
          .setProperty(HTTPConstants.CONNECTION_TIMEOUT, Integer.valueOf(ccConnectionTimeout));

    } catch (AxisFault axisFault) {
      String msg = "Could not initialize stratos manager service client";
      log.error(msg, axisFault);
      throw new AxisFault(msg, axisFault);
    }
  }
 /**
  * Add application signup
  *
  * @param applicationSignUp
  */
 public void addApplicationSignUp(ApplicationSignUp applicationSignUp)
     throws StratosManagerServiceApplicationSignUpExceptionException, RemoteException {
   stub.addApplicationSignUp(applicationSignUp);
 }
 /**
  * Validates whether a cartridge group can be removed.
  *
  * @param cartridgeGroupName the cartridge group name
  * @return true, if successful
  * @throws RemoteException the remote exception
  */
 public boolean canCartirdgeGroupBeRemoved(String cartridgeGroupName) throws RemoteException {
   return stub.canCartirdgeGroupBeRemoved(cartridgeGroupName);
 }
 /**
  * Removes the used cartridge groups in cartridge sub groups from cache.
  *
  * @param cartridgeSubGroupName the cartridge sub group name
  * @param cartridgeGroupNames the cartridge group names
  * @throws RemoteException the remote exception
  */
 public void removeUsedCartridgeGroupsInCartridgeSubGroups(
     String cartridgeSubGroupName, String[] cartridgeGroupNames) throws RemoteException {
   stub.removeUsedCartridgeGroupsInCartridgeSubGroups(cartridgeSubGroupName, cartridgeGroupNames);
 }
 /**
  * Removes the used cartridge groups in applications from cache.
  *
  * @param applicationName the application name
  * @param cartridgeGroupNames the cartridge group names
  * @throws RemoteException the remote exception
  */
 public void removeUsedCartridgeGroupsInApplications(
     String applicationName, String[] cartridgeGroupNames) throws RemoteException {
   stub.removeUsedCartridgeGroupsInApplications(applicationName, cartridgeGroupNames);
 }
 /**
  * Adds the used cartridges in cartridge groups to cache.
  *
  * @param cartridgeGroupName the cartridge group name
  * @param cartridgeNames the cartridge names
  * @throws RemoteException the remote exception
  */
 public void addUsedCartridgesInCartridgeGroups(String cartridgeGroupName, String[] cartridgeNames)
     throws RemoteException {
   stub.addUsedCartridgesInCartridgeGroups(cartridgeGroupName, cartridgeNames);
 }
 /**
  * Adds the used cartridges in applications to cache.
  *
  * @param applicationName the application name
  * @param cartridgeNames the cartridge names
  * @throws RemoteException the remote exception
  */
 public void addUsedCartridgesInApplications(String applicationName, String[] cartridgeNames)
     throws RemoteException {
   stub.addUsedCartridgesInApplications(applicationName, cartridgeNames);
 }
 public void removeDomainMapping(String applicationId, int tenantId, String domainName)
     throws RemoteException, StratosManagerServiceDomainMappingExceptionException {
   stub.removeDomainMapping(applicationId, tenantId, domainName);
 }
 public DomainMapping[] getDomainMappings(String applicationId, int tenantId)
     throws RemoteException, StratosManagerServiceDomainMappingExceptionException {
   return stub.getDomainMappings(applicationId, tenantId);
 }
 /**
  * Notify artifact updated event for artifact repository.
  *
  * @param repoUrl
  * @throws StratosManagerServiceArtifactDistributionCoordinatorExceptionException
  * @throws RemoteException
  */
 public void notifyArtifactUpdatedEventForRepository(String repoUrl)
     throws StratosManagerServiceArtifactDistributionCoordinatorExceptionException,
         RemoteException {
   stub.notifyArtifactUpdatedEventForRepository(repoUrl);
 }
 public void addDomainMapping(DomainMapping domainMapping)
     throws RemoteException, StratosManagerServiceDomainMappingExceptionException {
   stub.addDomainMapping(domainMapping);
 }
 /**
  * Notify artifact updated event for application signup.
  *
  * @param applicationId
  * @param tenantId
  * @throws StratosManagerServiceArtifactDistributionCoordinatorExceptionException
  * @throws RemoteException
  */
 public void notifyArtifactUpdatedEventForSignUp(String applicationId, int tenantId)
     throws StratosManagerServiceArtifactDistributionCoordinatorExceptionException,
         RemoteException {
   stub.notifyArtifactUpdatedEventForSignUp(applicationId, tenantId);
 }
 /**
  * Get application signups.
  *
  * @return
  */
 public ApplicationSignUp[] getApplicationSignUps(String applicationId)
     throws StratosManagerServiceApplicationSignUpExceptionException, RemoteException {
   return stub.getApplicationSignUps(applicationId);
 }
 /**
  * Check application signup availability
  *
  * @param applicationId
  * @return
  * @throws StratosManagerServiceApplicationSignUpExceptionException
  * @throws RemoteException
  */
 public boolean applicationSignUpsExist(String applicationId)
     throws StratosManagerServiceApplicationSignUpExceptionException, RemoteException {
   return stub.applicationSignUpsExist(applicationId);
 }
 /**
  * Get application signup.
  *
  * @param applicationId
  * @param tenantId
  * @return
  */
 public ApplicationSignUp getApplicationSignUp(String applicationId, int tenantId)
     throws StratosManagerServiceApplicationSignUpExceptionException, RemoteException {
   return stub.getApplicationSignUp(applicationId, tenantId);
 }
 /**
  * Remove application signup.
  *
  * @param applicationId
  * @param tenantId
  */
 public void removeApplicationSignUp(String applicationId, int tenantId)
     throws StratosManagerServiceApplicationSignUpExceptionException, RemoteException {
   stub.removeApplicationSignUp(applicationId, tenantId);
 }