Interface SchedulerSessionComp
-
- All Known Subinterfaces:
SchedulerSession
public interface SchedulerSessionComp
This class is only required in order to be able to provide binary compatibility with older releases. You should never access this class directly.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Iterator
executeObjectQuery(String sql, Object[] variables)
Deprecated.This method is only here to provide binary compatibility with old releases of the software.Iterator
executeObjectQuery(String sql, Object[] variables, long rowLimit)
Deprecated.This method is only here to provide binary compatibility with old releases of the software.Iterator<SchedulerEntity>
getChangedObjects(Iterator<ObjectDefinition> objectDefinitions, DateTimeZone start, DateTimeZone end, Subject[] users)
Deprecated.This method is only here to provide binary compatibility with old releases of the software.Iterator<LicenseKey>
getLicenseKeysByContractName(String contractName)
Deprecated.This method is only here to provide binary compatibility with old releases of the software.Iterator<MonitorAlertSource>
getMonitorAlertSourcesByLinkableMonitor(LinkableMonitor linkableMonitor)
Deprecated.This method is only here to provide binary compatibility with old releases of the software.<T extends Partition>
Iterator<T>getPartitionSearchPath()
Deprecated.This method is only here to provide binary compatibility with old releases of the software.Iterator<RELEntryPoint>
getRELEntryPoints()
Deprecated.This method is only here to provide binary compatibility with old releases of the software.<T> Iterator<SchedulerEntity>
getSchedulerEntitiesByObjectTypeUniqueIdIterator(String objectType, Collection<T> uniqueIds, Mapping<T,Long> mapping)
Deprecated.This method is only here to provide binary compatibility with old releases of the software.
-
-
-
Method Detail
-
executeObjectQuery
@Deprecated Iterator executeObjectQuery(String sql, Object[] variables)
Deprecated.This method is only here to provide binary compatibility with old releases of the software. This should never be called directly,SchedulerSession.executeObjectQuery(String, Object[])
should always be used instead.Execute the given query, and return an iterator over the result. These objects will be from the sessions cache if they have already been retrieved in this session.For this legacy method, there is really no way to determine what the return type is. If we actually gave it a type of
<? extends SchedulerEntity>
, which is what it is, we would break existing code that knew the type and were previously assigning the result to, for example,Iterator<Job>
.- Parameters:
sql
- is the query that needs to be executedvariables
- are the objects to be replaced in the query- Returns:
- an Iterator<SchedulerEntity> over the result
- Throws:
com.redwood.scheduler.api.exception.SchedulerAPIPersistenceRuntimeException
- If an error has occurred while trying to execute the query. The underlying exception will have been set as the cause.
-
executeObjectQuery
@Deprecated Iterator executeObjectQuery(String sql, Object[] variables, long rowLimit)
Deprecated.This method is only here to provide binary compatibility with old releases of the software. This should never be called directly,SchedulerSession.executeObjectQuery(String, Object[], long)
should always be used instead.Execute the given query, and return an iterator over the result. These objects will be from the sessions cache if they have already been retrieved in this session. The size of the iterator will not exceed rowLimitFor this legacy method, there is really no way to determine what the return type is. If we actually gave it a type of
<? extends SchedulerEntity>
, which is what it is, we would break existing code that knew the type and were previously assigning the result to, for example,Iterator<Job>
.- Parameters:
sql
- is the query that needs to be executedvariables
- are the objects to be replaced in the queryrowLimit
- the maximum number of objects returned by the query- Returns:
- an Iterator<SchedulerEntity> over the result
- Throws:
com.redwood.scheduler.api.exception.SchedulerAPIPersistenceRuntimeException
- If an error has occurred while trying to execute the query. The underlying exception will have been set as the cause.
-
getChangedObjects
@Deprecated Iterator<SchedulerEntity> getChangedObjects(Iterator<ObjectDefinition> objectDefinitions, DateTimeZone start, DateTimeZone end, Subject[] users)
Deprecated.This method is only here to provide binary compatibility with old releases of the software. This should never be called directly,SchedulerSession.getChangedObjects(Iterator, DateTimeZone, DateTimeZone, Subject[])
should always be used instead.Obtain all changed SchedulerEntities after start and/or before end and/or changed by users for a given List of ObjectDefinitions.- Parameters:
objectDefinitions
- Iterator with ObjectDefinitions to search, when null all ObjectDefinitions will be searched.start
- When not null, only changes are reported after this DateTimeZoneend
- When not null, only changes are reported before this DateTimeZoneusers
- When not null, only changes are reported which were made by the Subject(s)- Returns:
RWIterable
containing all changed SchedulerEntities
-
getLicenseKeysByContractName
@Deprecated Iterator<LicenseKey> getLicenseKeysByContractName(String contractName)
Deprecated.This method is only here to provide binary compatibility with old releases of the software. This should never be called directly,SchedulerSession.getLicenseKeysByContractName(String)
should always be used instead.Get all the license keys associated with a contract.- Parameters:
contractName
- the contract to search for.- Returns:
- an iterator of the license keys for the given contract.
-
getMonitorAlertSourcesByLinkableMonitor
@Deprecated Iterator<MonitorAlertSource> getMonitorAlertSourcesByLinkableMonitor(LinkableMonitor linkableMonitor)
Deprecated.This method is only here to provide binary compatibility with old releases of the software. This should never be called directly,SchedulerSession.getMonitorAlertSourcesByLinkableMonitor(LinkableMonitor)
should always be used instead.Get an iterator of all MonitorAlertSources by LinkableMonitor.- Parameters:
linkableMonitor
- the LinkableMonitor to search by.- Returns:
- an iterator of all the MonitorAlertSources.
-
getPartitionSearchPath
@Deprecated <T extends Partition> Iterator<T> getPartitionSearchPath()
Deprecated.This method is only here to provide binary compatibility with old releases of the software. This should never be called directly,SchedulerSession.getPartitionSearchPath()
should always be used instead.Get the partition search path for this session.- Returns:
- an iterator of Partition objects.
-
getRELEntryPoints
@Deprecated Iterator<RELEntryPoint> getRELEntryPoints()
Deprecated.This method is only here to provide binary compatibility with old releases of the software. This should never be called directly,SchedulerSession.getRELEntryPoints()
should always be used instead.Get an iterator over all of theRELEntryPoint
s visible to this user.- Returns:
- an iterator over all of the
RELEntryPoint
s visible to this user
-
getSchedulerEntitiesByObjectTypeUniqueIdIterator
@Deprecated <T> Iterator<SchedulerEntity> getSchedulerEntitiesByObjectTypeUniqueIdIterator(String objectType, Collection<T> uniqueIds, Mapping<T,Long> mapping)
Deprecated.This method is only here to provide binary compatibility with old releases of the software. This should never be called directly,SchedulerSession.getSchedulerEntitiesByObjectTypeUniqueIdIterator(String, Collection, Mapping)
should always be used instead.Get a collection of objects of the same type by UniqueId. The objects that are passed in through the uniqueIds parameter can be modified by a mapping function, so that some for of container object could be passed through, and the mapping can convert from the container to the desired uniqueId.- Parameters:
objectType
- The type of object that we wish to retrieve from the databaseuniqueIds
- A list of objects that can be used to generate the UniqueIds to retrieve from the databasemapping
- a Mapping function from the objects in uniqueIds that are passed in, to the UniqueIds that are in the database. If this is null, then uniqueIds is assumed to be a collection ofLong
s.- Returns:
- an
RWIterable
over the objects that were found
-
-