Package com.opentok
Enum Archive.Status
- java.lang.Object
-
- java.lang.Enum<Archive.Status>
-
- com.opentok.Archive.Status
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Archive.Status>
- Enclosing class:
- Archive
public static enum Archive.Status extends java.lang.Enum<Archive.Status>
Defines values returned by theArchive.getStatus()
method.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AVAILABLE
The archive file is available for download from the OpenTok cloud.DELETED
The archive file has been deleted.EXPIRED
The archive file is no longer available at the OpenTok cloud.FAILED
The recording of the archive failed.PAUSED
The archive is in progress and no clients are publishing streams to the session.STARTED
The archive recording has started and is in progress.STOPPED
The archive recording has stopped, but the file is not available.UPLOADED
The archive is available for download from the the upload target Amazon S3 bucket or Windows Azure container you set up for your OpenTok project.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static Archive.Status
valueOf​(java.lang.String name)
Returns the enum constant of this type with the specified name.static Archive.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AVAILABLE
public static final Archive.Status AVAILABLE
The archive file is available for download from the OpenTok cloud. You can get the URL of the download file by calling theArchive.getUrl()
method.
-
DELETED
public static final Archive.Status DELETED
The archive file has been deleted.
-
FAILED
public static final Archive.Status FAILED
The recording of the archive failed.
-
PAUSED
public static final Archive.Status PAUSED
The archive is in progress and no clients are publishing streams to the session. When an archive is in progress and any client publishes a stream, the status is STARTED. When an archive is PAUSED, nothing is recorded. When a client starts publishing a stream, the recording starts (or resumes). If all clients disconnect from a session that is being archived, the status changes to PAUSED, and after 60 seconds the archive recording stops (and the status changes to STOPPED).
-
STARTED
public static final Archive.Status STARTED
The archive recording has started and is in progress.
-
STOPPED
public static final Archive.Status STOPPED
The archive recording has stopped, but the file is not available.
-
UPLOADED
public static final Archive.Status UPLOADED
The archive is available for download from the the upload target Amazon S3 bucket or Windows Azure container you set up for your OpenTok project.
-
EXPIRED
public static final Archive.Status EXPIRED
The archive file is no longer available at the OpenTok cloud.
-
-
Method Detail
-
values
public static Archive.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Archive.Status c : Archive.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Archive.Status valueOf​(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Archive.Status>
-
-