Interface Application
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
ApplicationEnd
,ApplicationStart
public interface Application extends java.io.Serializable
This interface represents an application metrics in a Spark cluster. The implementing classes must be serializable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAppID()
Returns the ID of the application.java.lang.String
getEventName()
Returns the name of the event associated with the application.java.util.List<Job>
getListOfjobs()
Returns the list of jobs associated with the application.java.lang.String
getName()
Returns the name of the application.java.lang.String
getSparkUser()
Returns the user associated with the Spark application.long
getTime()
Returns the start time of the application.void
setAppID(java.lang.String id)
Sets the ID of the application.void
setEventame(java.lang.String name)
Sets the name of the event associated with the application.void
setListOfJobs(java.util.List<Job> listOfJobs)
Sets the list of jobs associated with the application.void
setName(java.lang.String name)
Sets the name of the application.void
setSparkUser(java.lang.String user)
Sets the user associated with the Spark application.void
setStartTime(long time)
Sets the start time of the application.
-
-
-
Method Detail
-
setEventame
void setEventame(java.lang.String name)
Sets the name of the event associated with the application.- Parameters:
name
- the name of the event
-
getEventName
java.lang.String getEventName()
Returns the name of the event associated with the application.- Returns:
- the name of the event
-
setName
void setName(java.lang.String name)
Sets the name of the application.- Parameters:
name
- the name of the application
-
getName
java.lang.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
void setAppID(java.lang.String id)
Sets the ID of the application.- Parameters:
id
- the ID of the application
-
getAppID
java.lang.String getAppID()
Returns the ID of the application.- Returns:
- the ID of the application
-
setSparkUser
void setSparkUser(java.lang.String user)
Sets the user associated with the Spark application.- Parameters:
user
- the user associated with the Spark application
-
getSparkUser
java.lang.String getSparkUser()
Returns the user associated with the Spark application.- Returns:
- the user associated with the Spark application
-
setListOfJobs
void setListOfJobs(java.util.List<Job> listOfJobs)
Sets the list of jobs associated with the application.- Parameters:
listOfJobs
- the list of jobs associated with the application
-
getListOfjobs
java.util.List<Job> getListOfjobs()
Returns the list of jobs associated with the application.- Returns:
- the list of jobs associated with the application
-
-