Class ApplicationEnd
java.lang.Object
org.apache.wayang.spark.monitoring.metrics.ApplicationEnd
- All Implemented Interfaces:
Serializable,Application,SerializableObject
The
ApplicationEnd class represents an application that has ended. It implements
the Application interface and the SerializableObject interface, indicating
that it is an application that can be serialized and deserialized to and from a stream of bytes.
This class contains fields to store the name, time, ID, Spark user, event name, and list of jobs associated with the application. It also provides methods to set and get the values of these fields.
- See Also:
-
Constructor Summary
Constructors -
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.longgetTime()Returns the start time of the application.voidSets the ID of the application.voidsetEventame(String name) Sets the name of the event associated with the application.voidsetListOfJobs(List<Job> listOfJobs) Sets the list of jobs associated with the application.voidSets the name of the application.voidsetSparkUser(String user) Sets the user associated with the Spark application.voidsetStartTime(long time) Sets the start time of the application.
-
Constructor Details
-
ApplicationEnd
public ApplicationEnd()
-
-
Method Details
-
setEventame
Description copied from interface:ApplicationSets the name of the event associated with the application.- Specified by:
setEventamein interfaceApplication- Parameters:
name- the name of the event
-
getEventName
Description copied from interface:ApplicationReturns the name of the event associated with the application.- Specified by:
getEventNamein interfaceApplication- Returns:
- the name of the event
-
setName
Description copied from interface:ApplicationSets the name of the application.- Specified by:
setNamein interfaceApplication- Parameters:
name- the name of the application
-
getName
Description copied from interface:ApplicationReturns the name of the application.- Specified by:
getNamein interfaceApplication- Returns:
- the name of the application
-
setStartTime
public void setStartTime(long time) Description copied from interface:ApplicationSets the start time of the application.- Specified by:
setStartTimein interfaceApplication- Parameters:
time- the start time of the application
-
getTime
public long getTime()Description copied from interface:ApplicationReturns the start time of the application.- Specified by:
getTimein interfaceApplication- Returns:
- the start time of the application
-
setAppID
Description copied from interface:ApplicationSets the ID of the application.- Specified by:
setAppIDin interfaceApplication- Parameters:
id- the ID of the application
-
getAppID
Description copied from interface:ApplicationReturns the ID of the application.- Specified by:
getAppIDin interfaceApplication- Returns:
- the ID of the application
-
setSparkUser
Description copied from interface:ApplicationSets the user associated with the Spark application.- Specified by:
setSparkUserin interfaceApplication- Parameters:
user- the user associated with the Spark application
-
getSparkUser
Description copied from interface:ApplicationReturns the user associated with the Spark application.- Specified by:
getSparkUserin interfaceApplication- Returns:
- the user associated with the Spark application
-
setListOfJobs
Description copied from interface:ApplicationSets the list of jobs associated with the application.- Specified by:
setListOfJobsin interfaceApplication- Parameters:
listOfJobs- the list of jobs associated with the application
-
getListOfjobs
Description copied from interface:ApplicationReturns the list of jobs associated with the application.- Specified by:
getListOfjobsin interfaceApplication- Returns:
- the list of jobs associated with the application
-