Interface Application
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
ApplicationEnd,ApplicationStart
public interface Application extends java.io.SerializableThis 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.StringgetAppID()Returns the ID of the application.java.lang.StringgetEventName()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.StringgetName()Returns the name of the application.java.lang.StringgetSparkUser()Returns the user associated with the Spark application.longgetTime()Returns the start time of the application.voidsetAppID(java.lang.String id)Sets the ID of the application.voidsetEventame(java.lang.String name)Sets the name of the event associated with the application.voidsetListOfJobs(java.util.List<Job> listOfJobs)Sets the list of jobs associated with the application.voidsetName(java.lang.String name)Sets the name of the application.voidsetSparkUser(java.lang.String user)Sets the user associated with the Spark application.voidsetStartTime(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
-
-