Class TimelineDomain
java.lang.Object
org.apache.hadoop.yarn.api.records.timelineservice.TimelineDomain
This class contains the information about a timeline service domain, which is used to a user to host a number of timeline entities, isolating them from others'. The user can also define the reader and writer users/groups for the domain, which is used to control the access to its entities.
The reader and writer users/groups pattern that the user can supply is the
same as what AccessControlList takes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the created time of the domain.Get the domain description.getId()Get the domain ID.Get the modified time of the domain.getOwner()Get the domain owner.Get the reader (and/or reader group) list string.Get the writer (and/or writer group) list string.voidsetCreatedTime(Long createdTime) Set the created time of the domain.voidsetDescription(String description) Set the domain description.voidSet the domain ID.voidsetModifiedTime(Long modifiedTime) Set the modified time of the domain.voidSet the domain owner.voidsetReaders(String readers) Set the reader (and/or reader group) list string.voidsetWriters(String writers) Set the writer (and/or writer group) list string.
-
Constructor Details
-
TimelineDomain
public TimelineDomain()
-
-
Method Details
-
getId
Get the domain ID.- Returns:
- the domain ID
-
setId
Set the domain ID.- Parameters:
id- the domain ID
-
getDescription
Get the domain description.- Returns:
- the domain description
-
setDescription
Set the domain description.- Parameters:
description- the domain description
-
getOwner
Get the domain owner.- Returns:
- the domain owner
-
setOwner
Set the domain owner. The user doesn't need to set it, which will automatically set to the user who puts the domain.- Parameters:
owner- the domain owner
-
getReaders
Get the reader (and/or reader group) list string.- Returns:
- the reader (and/or reader group) list string
-
setReaders
Set the reader (and/or reader group) list string.- Parameters:
readers- the reader (and/or reader group) list string
-
getWriters
Get the writer (and/or writer group) list string.- Returns:
- the writer (and/or writer group) list string
-
setWriters
Set the writer (and/or writer group) list string.- Parameters:
writers- the writer (and/or writer group) list string
-
getCreatedTime
Get the created time of the domain.- Returns:
- the created time of the domain
-
setCreatedTime
Set the created time of the domain.- Parameters:
createdTime- the created time of the domain
-
getModifiedTime
Get the modified time of the domain.- Returns:
- the modified time of the domain
-
setModifiedTime
Set the modified time of the domain.- Parameters:
modifiedTime- the modified time of the domain
-