public class DefaultMasterObserver extends Object implements MasterObserver
| Constructor and Description | 
|---|
| DefaultMasterObserver() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | applicationFailed(Exception e)If there is an error during the application. | 
| ImmutableClassesGiraphConfiguration | getConf()Return the configuration used by this object. | 
| void | postApplication()After application ends. | 
| void | postSuperstep(long superstep)After each superstep ends. | 
| void | preApplication()Before application begins. | 
| void | preSuperstep(long superstep)Before each superstep starts. | 
| void | setConf(ImmutableClassesGiraphConfiguration configuration)Set the configuration to be used by this object. | 
| void | superstepMetricsUpdate(long superstep,
                      AggregatedMetrics aggregatedMetrics,
                      List<PartitionStats> partitionStatsList)Called after each superstep with aggregated metrics from workers | 
public void setConf(ImmutableClassesGiraphConfiguration configuration)
GiraphConfigurationSettablesetConf in interface GiraphConfigurationSettableconfiguration - Set configurationpublic ImmutableClassesGiraphConfiguration getConf()
ImmutableClassesGiraphConfigurablegetConf in interface ImmutableClassesGiraphConfigurablepublic void preApplication()
MasterObserverpreApplication in interface MasterObserverpublic void postApplication()
MasterObserverpostApplication in interface MasterObserverpublic void applicationFailed(Exception e)
MasterObserverapplicationFailed in interface MasterObservere - Exception that caused failure. May be null.public void preSuperstep(long superstep)
MasterObserverpreSuperstep in interface MasterObserversuperstep - The superstep numberpublic void postSuperstep(long superstep)
MasterObserverpostSuperstep in interface MasterObserversuperstep - The superstep numberpublic void superstepMetricsUpdate(long superstep,
                                   AggregatedMetrics aggregatedMetrics,
                                   List<PartitionStats> partitionStatsList)
MasterObserversuperstepMetricsUpdate in interface MasterObserversuperstep - Supsertep numberaggregatedMetrics - MetricspartitionStatsList - List of partition statsCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.