Interface Application
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ApplicationEnd
,ApplicationStart
This interface represents an application metrics in a Spark cluster.
The implementing classes must be serializable.
-
Method Summary
Modifier and TypeMethodDescriptiongetAppID()
Returns the ID of the application.Returns the name of the event associated with the application.Returns the list of jobs associated with the application.getName()
Returns the name of the application.Returns the user associated with the Spark application.long
getTime()
Returns the start time of the application.void
Sets the ID of the application.void
setEventame
(String name) Sets the name of the event associated with the application.void
setListOfJobs
(List<Job> listOfJobs) Sets the list of jobs associated with the application.void
Sets the name of the application.void
setSparkUser
(String user) Sets the user associated with the Spark application.void
setStartTime
(long time) Sets the start time of the application.
-
Method Details
-
setEventame
Sets the name of the event associated with the application.- Parameters:
name
- the name of the event
-
getEventName
String getEventName()Returns the name of the event associated with the application.- Returns:
- the name of the event
-
setName
Sets the name of the application.- Parameters:
name
- the name of the application
-
getName
String getName()Returns the name of the application.- Returns:
- the name of the application
-
setStartTime
void setStartTime(long time) Sets the start time of the application.- Parameters:
time
- the start time of the application
-
getTime
long getTime()Returns the start time of the application.- Returns:
- the start time of the application
-
setAppID
Sets the ID of the application.- Parameters:
id
- the ID of the application
-
getAppID
String getAppID()Returns the ID of the application.- Returns:
- the ID of the application
-
setSparkUser
Sets the user associated with the Spark application.- Parameters:
user
- the user associated with the Spark application
-
getSparkUser
String getSparkUser()Returns the user associated with the Spark application.- Returns:
- the user associated with the Spark application
-
setListOfJobs
Sets the list of jobs associated with the application.- Parameters:
listOfJobs
- the list of jobs associated with the application
-
getListOfjobs
Returns the list of jobs associated with the application.- Returns:
- the list of jobs associated with the application
-