|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ocap.shared.dvr.RecordingSpec
org.ocap.shared.dvr.ServiceRecordingSpec
public class ServiceRecordingSpec
Specifies a recording request in terms of a 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;
Constructor Summary | |
---|---|
ServiceRecordingSpec(Service source,
Date startTime,
long duration,
RecordingProperties properties)
Constructor. |
Method Summary | |
---|---|
long |
getDuration()
Returns the duration passed as an argument to the constructor. |
Service |
getSource()
Returns the source of the recording |
Date |
getStartTime()
Returns the start time passed as an argument to the constructor. |
Methods inherited from class org.ocap.shared.dvr.RecordingSpec |
---|
getProperties |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceRecordingSpec(Service source, Date startTime, long duration, RecordingProperties properties) throws IllegalArgumentException
source
- the service to be recordedstartTime
- 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-seconds.properties
- The definition of how the recording is to be done.
IllegalArgumentException
- if the source is not a broadcast service or
if the duration is negativeMethod Detail |
---|
public Service getSource()
public Date getStartTime()
public long getDuration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |