Tabnine Logo
DeploymentFileData.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.apache.axis2.deployment.repository.util.DeploymentFileData

Best Java code snippets using org.apache.axis2.deployment.repository.util.DeploymentFileData.getName (Showing top 20 results out of 315)

origin: org.wso2.carbon.business-process/org.wso2.carbon.humantask.deployer

public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException {
  log.info("Deploying HumanTask archive [ " + deploymentFileData.getName() + " ]");
  try {
    humanTaskStore.deploy(deploymentFileData.getFile());
  } catch (Exception e) {
    String errorMessage = "Error deploying HumanTask package : " + deploymentFileData.getName();
    log.error(errorMessage, e);
    throw new DeploymentException(errorMessage, e);
  }
}
origin: org.wso2.carbon.event-processing/org.wso2.carbon.event.processor.core

/**
 * Reads the query-plan.siddhiql and deploys it.
 *
 * @param deploymentFileData information about query plan
 * @throws org.apache.axis2.deployment.DeploymentException
 */
public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException {
  try {
    String path = deploymentFileData.getAbsolutePath();
    if (!deployedExecutionPlanFilePaths.contains(path)) {
      try {
        processDeploy(deploymentFileData);
      } catch (ExecutionPlanConfigurationException e) {
        throw new DeploymentException("Execution plan not deployed properly.", e);
      }
    } else {
      log.debug("Execution plan file is already deployed :" + path);
      deployedExecutionPlanFilePaths.remove(path);
    }
  } catch (Throwable t) {
    log.error("Can't deploy the execution plan: " + deploymentFileData.getName(), t);
    throw new DeploymentException("Can't deploy the execution plan: " + deploymentFileData.getName(), t);
  }
}
origin: org.wso2.carbon.analytics/org.wso2.carbon.analytics.eventsink

public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException {
  if (AnalyticsEventSinkServerStartupObserver.getInstance().isServerStarted()) {
    log.info("Deploying analytics event store: " + deploymentFileData.getName());
    int tenantId = CarbonContext.getThreadLocalCarbonContext().getTenantId();
    try {
      AnalyticsEventStore eventStoreConfiguration = AnalyticsEventStoreManager.getInstance()
          .getAnalyticsEventStore(deploymentFileData.getFile());
      if (AnalyticsEventSinkUtil.getAnalyticsEventStoreName(deploymentFileData.getName()).
          equalsIgnoreCase(eventStoreConfiguration.getName())) {
        addEventStore(tenantId, eventStoreConfiguration);
      } else {
        throw new AnalyticsEventStoreDeploymentException("Invalid configuration provided! File name: " +
            AnalyticsEventSinkUtil.getAnalyticsEventStoreName(deploymentFileData.getName() + " should be " +
                "matched with deduced table name: " + eventStoreConfiguration.getName() + " for the streams"));
      }
    } catch (AnalyticsEventStoreException e) {
      String errMsg = "Error while deploying file: " + deploymentFileData.getName() + " for tenant id: " + tenantId;
      log.error(errMsg, e);
      throw new AnalyticsEventStoreDeploymentException(errMsg, e);
    } catch (Exception e) {
      String errorMsg = "Unable to deploy the event store: " + deploymentFileData.getName() + ". " + e.getMessage();
      log.error(errorMsg, e);
      throw new AnalyticsEventStoreDeploymentException(errorMsg, e);
    }
    log.info("Deployed successfully analytics event store: " + deploymentFileData.getName());
  } else {
    pausedDeployments.add(deploymentFileData);
  }
}
origin: org.apache.axis2/axis2-kernel

module.setModuleClassLoader(deploymentClassLoader);
module.setParent(axisConfig);
module.setArchiveName(DescriptionBuilder.getShortFileName(deploymentFileData.getName()));
populateModule(module, fileUrl);
module.setFileName(fileUrl);
log.error(
    Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
        deploymentFileData.getName(), e.getMessage()), e);
PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
e.printStackTrace(error_ptintWriter);
log.error(
    Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
        deploymentFileData.getName(), axisFault.getMessage()), axisFault);
PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
axisFault.printStackTrace(error_ptintWriter);
log.error(
    Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
        deploymentFileData.getName(), t.getMessage()), t);
PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
t.printStackTrace(error_ptintWriter);
if (moduleStatus.startsWith("Error:")) {
  axisConfig.getFaultyModules().put(
      DeploymentEngine.getAxisServiceName(deploymentFileData.getName()),
      moduleStatus);
origin: apache/axis2-java

module.setModuleClassLoader(deploymentClassLoader);
module.setParent(axisConfig);
module.setArchiveName(DescriptionBuilder.getShortFileName(deploymentFileData.getName()));
populateModule(module, fileUrl);
module.setFileName(fileUrl);
log.error(
    Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
        deploymentFileData.getName(), e.getMessage()), e);
PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
e.printStackTrace(error_ptintWriter);
log.error(
    Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
        deploymentFileData.getName(), axisFault.getMessage()), axisFault);
PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
axisFault.printStackTrace(error_ptintWriter);
log.error(
    Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
        deploymentFileData.getName(), t.getMessage()), t);
PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
t.printStackTrace(error_ptintWriter);
if (moduleStatus.startsWith("Error:")) {
  axisConfig.getFaultyModules().put(
      DeploymentEngine.getAxisServiceName(deploymentFileData.getName()),
      moduleStatus);
origin: org.apache.axis2/axis2-kernel

if (isDirectory && deploymentFileData.getName().startsWith(".")) {  // Ignore special meta directories starting with .
  return;
} catch (DeploymentException e) {
  log.error(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
                 deploymentFileData.getName(),
                 e.getMessage()),
       e);
} catch (AxisFault axisFault) {
  log.error(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
                 deploymentFileData.getName(),
                 axisFault.getMessage()),
       axisFault);
} catch (MalformedURLException e) {
  log.error(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
                 deploymentFileData.getName(),
                 e.getMessage()),
       e);
  t.printStackTrace(pw);
  log.error(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
      deploymentFileData.getName(),
      t.getMessage()),
      t);
  if (moduleStatus.startsWith("Error:")) {
    axisConfig.getFaultyModules().put(DeploymentEngine.getAxisServiceName(
origin: apache/axis2-java

if (isDirectory && deploymentFileData.getName().startsWith(".")) {  // Ignore special meta directories starting with .
  return;
} catch (DeploymentException e) {
  log.error(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
                 deploymentFileData.getName(),
                 e.getMessage()),
       e);
} catch (AxisFault axisFault) {
  log.error(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
                 deploymentFileData.getName(),
                 axisFault.getMessage()),
       axisFault);
} catch (MalformedURLException e) {
  log.error(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
                 deploymentFileData.getName(),
                 e.getMessage()),
       e);
  t.printStackTrace(pw);
  log.error(Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE,
      deploymentFileData.getName(),
      t.getMessage()),
      t);
  if (moduleStatus.startsWith("Error:")) {
    axisConfig.getFaultyModules().put(DeploymentEngine.getAxisServiceName(
origin: org.apache.axis2/axis2-kernel

public ArrayList<AxisService> processServiceGroup(OMElement serviceMetaData,
    DeploymentFileData currentFile, AxisServiceGroup axisServiceGroup,
    boolean extractService, Map<String, AxisService> wsdlServices, 
    ConfigurationContext configCtx)
    throws AxisFault {
  Object serviceMetaDataObject;
  try {
    if (serviceMetaData == null) {
      serviceMetaDataObject = currentFile.getServiceMetaData();
      if (serviceMetaDataObject != null && serviceMetaDataObject instanceof OMElement) {
        serviceMetaData = (OMElement) serviceMetaDataObject;
      }
    }
    if (serviceMetaData != null) {
      if(!extractService){
        axisServiceGroup.setServiceGroupName(
            DescriptionBuilder.getShortFileName(currentFile.getName()));                    
      } else {
        axisServiceGroup.setServiceGroupName(currentFile.getName());                    
      }
      return buildServiceGroup(serviceMetaData, currentFile, axisServiceGroup,
          wsdlServices, configCtx);
    }
    throw new DeploymentException("Can not find service meta data file");
  } catch (XMLStreamException e) {
    throw new DeploymentException(e);
  }
}
origin: org.apache.axis2/axis2-kernel

populateService(serviceGroup,
servicesURL,
DescriptionBuilder.getShortFileName(deploymentFileData.getName()));
try {
 DeploymentEngine.addServiceGroup(serviceGroup, servicelist, servicesURL, null,
 log.error(
     Messages.getMessage(DeploymentErrorMsgs.INVALID_SERVICE,
         deploymentFileData.getName(), axisFault.getMessage()), axisFault);
 PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
 axisFault.printStackTrace(error_ptintWriter);
origin: apache/axis2-java

public ArrayList<AxisService> processServiceGroup(OMElement serviceMetaData,
    DeploymentFileData currentFile, AxisServiceGroup axisServiceGroup,
    boolean extractService, Map<String, AxisService> wsdlServices, 
    ConfigurationContext configCtx)
    throws AxisFault {
  Object serviceMetaDataObject;
  try {
    if (serviceMetaData == null) {
      serviceMetaDataObject = currentFile.getServiceMetaData();
      if (serviceMetaDataObject != null && serviceMetaDataObject instanceof OMElement) {
        serviceMetaData = (OMElement) serviceMetaDataObject;
      }
    }
    if (serviceMetaData != null) {
      if(!extractService){
        axisServiceGroup.setServiceGroupName(
            DescriptionBuilder.getShortFileName(currentFile.getName()));                    
      } else {
        axisServiceGroup.setServiceGroupName(currentFile.getName());                    
      }
      return buildServiceGroup(serviceMetaData, currentFile, axisServiceGroup,
          wsdlServices, configCtx);
    }
    throw new DeploymentException("Can not find service meta data file");
  } catch (XMLStreamException e) {
    throw new DeploymentException(e);
  }
}
origin: org.wso2.carbon.analytics/org.wso2.carbon.analytics.eventsink

  public void run() {
    try {
      AnalyticsEventStoreDeployer deployer = (AnalyticsEventStoreDeployer)
          CarbonUtils.getDeployer(AnalyticsEventStoreDeployer.class.getName());
      if (AnalyticsEventStoreDeployer.getPausedDeployments() != null) {
        List<DeploymentFileData> pausedDeployment = AnalyticsEventStoreDeployer.getPausedDeployments();
        started.set(true);
        PrivilegedCarbonContext.startTenantFlow();
        PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantId(MultitenantConstants.SUPER_TENANT_ID);
        for (DeploymentFileData deploymentFileData : pausedDeployment) {
          try {
            deployer.deploy(deploymentFileData);
          } catch (DeploymentException e) {
            log.error("Error while  deploying analytics event store the file : "
                + deploymentFileData.getName(), e);
          }
        }
        AnalyticsEventStoreDeployer.clearPausedDeployments();
        PrivilegedCarbonContext.endTenantFlow();
      }
    } catch (CarbonException e) {
      log.error("Error when getting the deployer for evn store to proceed the initialization of deployments. ", e);
    }
  }
}
origin: apache/axis2-java

populateService(serviceGroup,
servicesURL,
DescriptionBuilder.getShortFileName(deploymentFileData.getName()));
try {
 DeploymentEngine.addServiceGroup(serviceGroup, servicelist, servicesURL, null,
 log.error(
     Messages.getMessage(DeploymentErrorMsgs.INVALID_SERVICE,
         deploymentFileData.getName(), axisFault.getMessage()), axisFault);
 PrintWriter error_ptintWriter = new PrintWriter(errorWriter);
 axisFault.printStackTrace(error_ptintWriter);
origin: org.apache.axis2/axis2-kernel

String serviceName = DescriptionBuilder.getShortFileName(currentFile.getName());
if (serviceName != null) {
  axisService = wsdlServices.get(serviceName);
      DescriptionBuilder.getShortFileName(currentFile.getName()));
origin: apache/axis2-java

String serviceName = DescriptionBuilder.getShortFileName(currentFile.getName());
if (serviceName != null) {
  axisService = wsdlServices.get(serviceName);
      DescriptionBuilder.getShortFileName(currentFile.getName()));
origin: org.apache.axis2/axis2-kernel

String shortFileName = DescriptionBuilder.getShortFileName(deploymentFile.getName());
if (!explodedDir) {
  ZipInputStream zin;
origin: apache/axis2-java

String shortFileName = DescriptionBuilder.getShortFileName(deploymentFile.getName());
if (!explodedDir) {
  ZipInputStream zin;
origin: wso2/carbon-identity-framework

if (deploymentFileData.getName().startsWith("FEDERATED")) {
  throw new DeploymentException("'FEDERATED' is a reserved user store domain prefix. "
      + "Please start the file name with a different domain name.");
origin: org.apache.axis2/axis2-kernel

public static void addServiceGroup(AxisServiceGroup serviceGroup,
                  ArrayList<AxisService> serviceList,
                  URL serviceLocation,
                  DeploymentFileData currentDeploymentFile,
                  AxisConfiguration axisConfiguration) throws AxisFault {
  if (isServiceGroupReadyToDeploy(serviceGroup, serviceList, serviceLocation,
      currentDeploymentFile, axisConfiguration)) {
    fillServiceGroup(serviceGroup, serviceList, serviceLocation, axisConfiguration);
    axisConfiguration.addServiceGroup(serviceGroup);
    if (currentDeploymentFile != null) {
      addAsWebResources(currentDeploymentFile.getFile(),
          serviceGroup.getServiceGroupName(), serviceGroup);
      // let the system have hidden services
      if (!JavaUtils.isTrueExplicitly(serviceGroup.getParameterValue(
          Constants.HIDDEN_SERVICE_PARAM_NAME))) {
        log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS,
            currentDeploymentFile.getName(),
            serviceLocation.toString()));
      }
    } else if (!JavaUtils.isTrueExplicitly(serviceGroup.getParameterValue(
            Constants.HIDDEN_SERVICE_PARAM_NAME))) {
      log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS,
          serviceGroup.getServiceGroupName(), ""));
    }
  }
}
origin: apache/axis2-java

public static void addServiceGroup(AxisServiceGroup serviceGroup,
                  ArrayList<AxisService> serviceList,
                  URL serviceLocation,
                  DeploymentFileData currentDeploymentFile,
                  AxisConfiguration axisConfiguration) throws AxisFault {
  if (isServiceGroupReadyToDeploy(serviceGroup, serviceList, serviceLocation,
      currentDeploymentFile, axisConfiguration)) {
    fillServiceGroup(serviceGroup, serviceList, serviceLocation, axisConfiguration);
    axisConfiguration.addServiceGroup(serviceGroup);
    if (currentDeploymentFile != null) {
      addAsWebResources(currentDeploymentFile.getFile(),
          serviceGroup.getServiceGroupName(), serviceGroup);
      // let the system have hidden services
      if (!JavaUtils.isTrueExplicitly(serviceGroup.getParameterValue(
          Constants.HIDDEN_SERVICE_PARAM_NAME))) {
        log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS,
            currentDeploymentFile.getName(),
            serviceLocation.toString()));
      }
    } else if (!JavaUtils.isTrueExplicitly(serviceGroup.getParameterValue(
            Constants.HIDDEN_SERVICE_PARAM_NAME))) {
      log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS,
          serviceGroup.getServiceGroupName(), ""));
    }
  }
}
origin: org.wso2.carbon.event-processing/org.wso2.carbon.event.processor.core

executionPlanConfigurationFile.setStatus(ExecutionPlanConfigurationFile.Status.DEPLOYED);
executionPlanConfigurationFile.setExecutionPlanName(executionPlanName);
executionPlanConfigurationFile.setFileName(deploymentFileData.getName());
executionPlanConfigurationFile.setFilePath(deploymentFileData.getAbsolutePath());
carbonEventProcessorService.addExecutionPlanConfigurationFile(executionPlanConfigurationFile);
executionPlanConfigurationFile.setStatus(ExecutionPlanConfigurationFile.Status.WAITING_FOR_DEPENDENCY);
executionPlanConfigurationFile.setExecutionPlanName(executionPlanName);
executionPlanConfigurationFile.setFileName(deploymentFileData.getName());
executionPlanConfigurationFile.setFilePath(deploymentFileData.getAbsolutePath());
carbonEventProcessorService.addExecutionPlanConfigurationFile(executionPlanConfigurationFile);
  executionPlanConfigurationFile.setStatus(ExecutionPlanConfigurationFile.Status.ERROR);
  executionPlanConfigurationFile.setExecutionPlanName(executionPlanName);
  executionPlanConfigurationFile.setFileName(deploymentFileData.getName());
  executionPlanConfigurationFile.setFilePath(deploymentFileData.getAbsolutePath());
  carbonEventProcessorService.addExecutionPlanConfigurationFile(executionPlanConfigurationFile);
org.apache.axis2.deployment.repository.utilDeploymentFileDatagetName

Javadoc

Get the name of the file.

Popular methods of DeploymentFileData

  • getAbsolutePath
  • getFile
  • <init>
  • getClassLoader
  • setClassLoader
  • deploy
  • getFileExtension
  • getServiceMetaData
  • getUrl
  • isModuleArchiveFile
  • isServiceArchiveFile
    Checks whether a given file is a jar or an aar file.
  • setServiceMetaData
  • isServiceArchiveFile,
  • setServiceMetaData

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now