JobListenerConfiguration.setFilePattern
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.tuxdevelop.spring.batch.lightmin.domain.JobListenerConfiguration.setFilePattern (Showing top 4 results out of 315)

origin: tuxdevelop/spring-batch-lightmin

  public static JobListenerConfiguration createJobListenerConfiguration(final String sourceFolder,
                                     final String pattern,
                                     final JobListenerType jobListenerType) {
    final JobListenerConfiguration jobListenerConfiguration = new JobListenerConfiguration();
    jobListenerConfiguration.setJobListenerType(jobListenerType);
    jobListenerConfiguration.setTaskExecutorType(TaskExecutorType.SYNCHRONOUS);
    jobListenerConfiguration.setSourceFolder(sourceFolder);
    jobListenerConfiguration.setFilePattern(pattern);
    jobListenerConfiguration.setPollerPeriod(1000L);
    jobListenerConfiguration.setListenerStatus(ListenerStatus.STOPPED);
    return jobListenerConfiguration;
  }
}
origin: tuxdevelop/spring-batch-lightmin

public static JobListenerConfiguration map(final Map<String, Object> values) {
  final JobListenerConfiguration jobListenerConfiguration = new JobListenerConfiguration();
  jobListenerConfiguration.setBeanName(getValueOrNull(values, JobListenerConfigurationKey.BEAN_NAME, String.class));
  jobListenerConfiguration.setFilePattern(getValueOrNull(values, JobListenerConfigurationKey.FILE_PATTERN, String.class));
  jobListenerConfiguration.setPollerPeriod(getValueOrNull(values, JobListenerConfigurationKey.POLLER_PERIOD, Long.class));
  jobListenerConfiguration.setSourceFolder(getValueOrNull(values, JobListenerConfigurationKey.SOURCE_FOLDER, String.class));
  final ListenerStatus listenerStatus = ListenerStatus.getByValue(getValueOrNull(values, JobListenerConfigurationKey.STATUS, String.class));
  jobListenerConfiguration.setListenerStatus(listenerStatus);
  final JobListenerType jobListenerType = JobListenerType.getById(getValueOrNull(values, JobListenerConfigurationKey.LISTENER_TYPE, Long.class));
  jobListenerConfiguration.setJobListenerType(jobListenerType);
  final TaskExecutorType taskExecutorType = TaskExecutorType.getById(getValueOrNull(values, JobSchedulerConfigurationKey.TASK_EXECUTOR_TYPE, Long.class));
  jobListenerConfiguration.setTaskExecutorType(taskExecutorType);
  return jobListenerConfiguration;
}
origin: tuxdevelop/spring-batch-lightmin

private static JobListenerConfiguration map(final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobListenerConfiguration jobListenerConfiguration) {
  final JobListenerConfiguration response;
  if (jobListenerConfiguration != null) {
    response = new JobListenerConfiguration();
    response.setListenerStatus(map(jobListenerConfiguration.getListenerStatus()));
    response.setTaskExecutorType(map(jobListenerConfiguration.getTaskExecutorType()));
    response.setFilePattern(jobListenerConfiguration.getFilePattern());
    response.setSourceFolder(jobListenerConfiguration.getSourceFolder());
    response.setJobListenerType(map(jobListenerConfiguration.getJobListenerType()));
    response.setPollerPeriod(jobListenerConfiguration.getPollerPeriod());
  } else {
    response = null;
  }
  return response;
}
origin: org.tuxdevelop/spring-batch-lightmin-core-service

private static JobListenerConfiguration map(final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobListenerConfiguration jobListenerConfiguration) {
  final JobListenerConfiguration response;
  if (jobListenerConfiguration != null) {
    response = new JobListenerConfiguration();
    response.setListenerStatus(map(jobListenerConfiguration.getListenerStatus()));
    response.setTaskExecutorType(map(jobListenerConfiguration.getTaskExecutorType()));
    response.setFilePattern(jobListenerConfiguration.getFilePattern());
    response.setSourceFolder(jobListenerConfiguration.getSourceFolder());
    response.setJobListenerType(map(jobListenerConfiguration.getJobListenerType()));
    response.setPollerPeriod(jobListenerConfiguration.getPollerPeriod());
  } else {
    response = null;
  }
  return response;
}
org.tuxdevelop.spring.batch.lightmin.domainJobListenerConfigurationsetFilePattern

Popular methods of JobListenerConfiguration

  • <init>
  • getFilePattern
  • getListenerStatus
  • getPollerPeriod
  • getSourceFolder
  • setBeanName
  • setJobListenerType
  • setListenerStatus
  • setPollerPeriod
  • setSourceFolder
  • setTaskExecutorType
  • getBeanName
  • setTaskExecutorType,
  • getBeanName,
  • getJobListenerType,
  • getTaskExecutorType,
  • throwExceptionAndLogError,
  • validate,
  • validateLocalFolderListener

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JList (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)