JobConfiguration.getJobParameters
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.hisp.dhis.scheduling.JobConfiguration.getJobParameters(Showing top 6 results out of 315)

origin: dhis2/dhis2-core

@Override
public void execute( JobConfiguration jobConfiguration )
{
  PushAnalysisJobParameters parameters = (PushAnalysisJobParameters) jobConfiguration.getJobParameters();
  pushAnalysisService.runPushAnalysis( parameters.getPushAnalysis(), jobConfiguration );
}
origin: dhis2/dhis2-core

@Override
public void execute( JobConfiguration jobConfiguration )
{
  AnalyticsJobParameters parameters = (AnalyticsJobParameters) jobConfiguration.getJobParameters();
  AnalyticsTableUpdateParams params = AnalyticsTableUpdateParams.newBuilder()
    .withLastYears( parameters.getLastYears() )
    .withJobId( jobConfiguration )
    .withSkipTableTypes( parameters.getSkipTableTypes() )
    .withSkipResourceTables( parameters.isSkipResourceTables() )
    .build();
  analyticsTableGenerator.generateTables( params );
}
origin: dhis2/dhis2-core

@Override
public void execute( JobConfiguration jobConfiguration )
  throws Exception
{
  PredictorJobParameters predictorJobParameters = ( PredictorJobParameters ) jobConfiguration.getJobParameters();
  if ( predictorJobParameters == null )
  {
    throw new Exception( "No job parameters present in predictor job" );
  }
  List<String> predictors = predictorJobParameters.getPredictors();
  Date startDate = DateUtils.getDateAfterAddition( new Date(), predictorJobParameters.getRelativeStart() );
  Date endDate = DateUtils.getDateAfterAddition( new Date(), predictorJobParameters.getRelativeEnd() );
  predictionService.predictPredictors( predictors, startDate, endDate );
}
origin: dhis2/dhis2-core

@Override
public void execute( JobConfiguration jobConfiguration )
{
  SmsJobParameters parameters = (SmsJobParameters) jobConfiguration.getJobParameters();
  OutboundSms sms = new OutboundSms( parameters.getSmsSubject(), parameters.getMessage(), parameters.getRecipientsList().toString() );
  notifier.notify( jobConfiguration, "Sending SMS" );
  OutboundMessageResponse status = smsSender.sendMessage( sms.getSubject(), sms.getMessage(), sms.getRecipients() );
  if ( status.isOk() )
  {
    notifier.notify( jobConfiguration, "Message sending successful" );
    sms.setStatus( OutboundSmsStatus.SENT );
  }
  else
  {
    notifier.notify( jobConfiguration, "Message sending failed" );
    sms.setStatus( OutboundSmsStatus.FAILED );
  }
  outboundSmsService.saveOutboundSms( sms );
}
origin: dhis2/dhis2-core

  jobConfiguration.getJobParameters() != null ? jobConfiguration.getJobParameters().validate() : null;
if ( parameterValidation != null )
origin: dhis2/dhis2-core

MonitoringJobParameters monitoringJobParameters = (MonitoringJobParameters) jobConfiguration.getJobParameters();
org.hisp.dhis.schedulingJobConfigurationgetJobParameters

Popular methods of JobConfiguration

  • <init>
  • getJobType
  • getUid
  • getCronExpression
  • getJobStatus
  • getLastExecutedStatus
  • getName
  • getNextExecutionTime
  • isContinuousExecution
  • setCronExpression
  • setJobStatus
  • setLastExecuted
  • setJobStatus,
  • setLastExecuted,
  • setLastExecutedStatus,
  • setLastRuntimeExecution,
  • setNextExecutionTime,
  • constructor,
  • getId,
  • getLastExecuted,
  • getLastRuntimeExecution

Popular classes and methods

  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
  • getSystemService (Context)
  • Window (java.awt)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • DateFormat (java.text)
    DateFormat is an abstract class for date/time formatting subclasses which formats and parses dates
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Join (org.hibernate.mapping)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)