public class LocatorRecordingSpec extends RecordingSpec
If multiple locators are contained within the source, all of them MUST be part of the same service.
When instances of this class are passed to RecordingManager.record(..), the following additional failure mode shall apply - if the end time (computed as the start time + the duration) is in the past when the record method is called, the record method shall throw an IllegalArgumentException.
When an instance of this recording spec is passed in as a parameter to the RecordingRequest.reschedule(..) method, an IllegalArgumentException shall be thrown if either of the following apply;
When instances of this class are passed to RecordingManager.record(..), if the start time is in the past and either
Constructor and Description |
---|
LocatorRecordingSpec(Locator[] source,
Date startTime,
long duration,
RecordingProperties properties)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getDuration()
Returns the duration passed as an argument to the constructor.
|
Locator[] |
getSource()
Returns the source of the recording
|
Date |
getStartTime()
Returns the start time passed as an argument to the constructor.
|
getProperties
public LocatorRecordingSpec(Locator[] source, Date startTime, long duration, RecordingProperties properties) throws InvalidServiceComponentException
source
- Source of streams to be recorded. Implementations shall
make a copy of this array before the constructor returns.startTime
- Start time of the recording. Changes to this parameter
after the constructor returns shall have no effect on the actual
start time of the recording.duration
- Length of time to record in milli-secondsproperties
- the definition of how the recording is to be doneInvalidServiceComponentException
- if all of the locators in the
source parameter are not all in the same service.IllegalArgumentException
- if duration is negative.public Locator[] getSource()
public Date getStartTime()
public long getDuration()
Copyright © 2013 CableLabs. All rights reserved.