Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

oracle.odi.domain.runtime.ess.support
Class SchedulingServiceImpl

java.lang.Object
  extended by oracle.odi.domain.runtime.ess.support.SchedulingServiceImpl
All Implemented Interfaces:
ISchedulingService

public class SchedulingServiceImpl
extends java.lang.Object
implements ISchedulingService

Default ISchedulingService implementation, querying ESS runtime according connection information from provided OdiEnterpriseScheduler.

This implementation makes every methods participate in surrounding ODI transaction, if one exists, using transaction synchronization mechanism.


Constructor Summary
SchedulingServiceImpl(OdiInstance pOdiInstance, OdiEnterpriseScheduler pEnterpriseScheduler)
          Constructs a SchedulingServiceImpl object.
 
Method Summary
 void cancelJobRequest(long pRequestId, boolean pDeleteRequest)
          Submit an cancel an ESS Job.
 long submitJobRequest(oracle.as.scheduler.MetadataObjectId pJobDefinitionId, oracle.as.scheduler.MetadataObjectId pScheduleId, java.util.Calendar pStart, java.util.Calendar pEnd)
          Submit an ESS Job for execution.
 long submitJobRequest(oracle.as.scheduler.MetadataObjectId pJobDefinitionId, oracle.as.scheduler.MetadataObjectId pScheduleId, java.util.Calendar pStart, java.util.Calendar pEnd, java.lang.String pLogicalAgentName, java.lang.String pContextCode, java.lang.String pWorkRepositoryName, java.lang.String pLogLevel, StartupParameters pVariables)
          Submit an ESS Job for execution.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulingServiceImpl

public SchedulingServiceImpl(OdiInstance pOdiInstance,
                             OdiEnterpriseScheduler pEnterpriseScheduler)
Constructs a SchedulingServiceImpl object.

Parameters:
pOdiInstance - an OdiInstance object
pEnterpriseScheduler - an OdiEnterpriseScheduler object
Method Detail

cancelJobRequest

public void cancelJobRequest(long pRequestId,
                             boolean pDeleteRequest)
                      throws JobRequestCancellationException
Description copied from interface: ISchedulingService
Submit an cancel an ESS Job.

Specified by:
cancelJobRequest in interface ISchedulingService
Parameters:
pRequestId - the ESS requestId
pDeleteRequest - pDeleteRequest
Throws:
JobRequestCancellationException - for any problem cancelling the job

submitJobRequest

public long submitJobRequest(oracle.as.scheduler.MetadataObjectId pJobDefinitionId,
                             oracle.as.scheduler.MetadataObjectId pScheduleId,
                             java.util.Calendar pStart,
                             java.util.Calendar pEnd)
                      throws JobRequestSubmissionException
Description copied from interface: ISchedulingService
Submit an ESS Job for execution.

Specified by:
submitJobRequest in interface ISchedulingService
Parameters:
pJobDefinitionId - the ESS job name
pScheduleId - the ODI scenario to be executed
pStart - time to start the schedule
pEnd - time to end the schedule
Returns:
ess job id
Throws:
JobRequestSubmissionException - for any problem submitting the job
See Also:
#submitJobRequest(pJobDefinitionId, pScheduleId, pStart, pEnd, pLogicalAgentName, pContextCode, pWorkRepositoryName, pLogLevel, pVariables)

submitJobRequest

public long submitJobRequest(oracle.as.scheduler.MetadataObjectId pJobDefinitionId,
                             oracle.as.scheduler.MetadataObjectId pScheduleId,
                             java.util.Calendar pStart,
                             java.util.Calendar pEnd,
                             java.lang.String pLogicalAgentName,
                             java.lang.String pContextCode,
                             java.lang.String pWorkRepositoryName,
                             java.lang.String pLogLevel,
                             StartupParameters pVariables)
                      throws JobRequestSubmissionException
Description copied from interface: ISchedulingService
Submit an ESS Job for execution.

Specified by:
submitJobRequest in interface ISchedulingService
Parameters:
pJobDefinitionId - the ESS jobDefinitionId
pScheduleId - the ESS scheduleId
pStart - time to start the schedule
pEnd - time to end the schedule
pLogicalAgentName - the ESS job name. If set, context code must also be set. Ignored if null
pContextCode - the ODI context code. Ignored if null
pWorkRepositoryName - work repository name. Ignored if null
pLogLevel - logging level. Ignored if null
pVariables - startup variables. Ignored if null
Returns:
ess requestId
Throws:
JobRequestSubmissionException - for any problem submitting the job

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.