Class RecordingImpl
java.lang.Object
org.opencastproject.scheduler.api.RecordingImpl
- All Implemented Interfaces:
Recording
An in-memory construct to represent the state of a recording, and when it was last heard from.
-
Constructor Summary
ConstructorsConstructorDescriptionRecordingImpl(String recordingID, String recordingState) Builds a representation of the recording.RecordingImpl(String recordingID, String recordingState, long lastHeard) Builds a representation of the recording. -
Method Summary
-
Constructor Details
-
RecordingImpl
Builds a representation of the recording.- Parameters:
recordingID- The ID of the recording.recordingState- The state of the recording. This should be defined from RecordingState.lastHeard- The time at which the recording last checked in
-
RecordingImpl
Builds a representation of the recording.- Parameters:
recordingID- The ID of the recording.recordingState- The state of the recording. This should be defined from RecordingState.
-
-
Method Details
-
getID
Gets the ID of the recording. -
setState
Sets the state of the recording, and updates the time it was last heard from.- Specified by:
setStatein interfaceRecording- Parameters:
newState- The new state of the recording. This should be defined fromRecordingState. This can be equal to the current one if the goal is to update the timestamp.- See Also:
-
getState
Gets the state of the recording.- Specified by:
getStatein interfaceRecording- Returns:
- The state of the recording. This should be defined from
RecordingState. - See Also:
-
getLastCheckinTime
Gets the time at which the recording last checked in.- Specified by:
getLastCheckinTimein interfaceRecording- Returns:
- The number of milliseconds since 1970 when the recording last checked in.
- See Also:
-