Class NMCollectorService
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.yarn.server.nodemanager.collectormanager.NMCollectorService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service,org.apache.hadoop.yarn.server.api.CollectorNodemanagerProtocol
public class NMCollectorService
extends org.apache.hadoop.service.CompositeService
implements org.apache.hadoop.yarn.server.api.CollectorNodemanagerProtocol
Service that handles collector information. It is used only if the timeline
service v.2 is enabled.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHookNested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Field Summary
Fields inherited from class org.apache.hadoop.service.CompositeService
STOP_ONLY_STARTED_SERVICES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.server.api.protocolrecords.GetTimelineCollectorContextResponsegetTimelineCollectorContext(org.apache.hadoop.yarn.server.api.protocolrecords.GetTimelineCollectorContextRequest request) org.apache.hadoop.yarn.server.api.protocolrecords.ReportNewCollectorInfoResponsereportNewCollectorInfo(org.apache.hadoop.yarn.server.api.protocolrecords.ReportNewCollectorInfoRequest request) protected voidvoidMethods inherited from class org.apache.hadoop.service.CompositeService
addIfService, addService, getServices, removeService, serviceInitMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
NMCollectorService
-
-
Method Details
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
reportNewCollectorInfo
public org.apache.hadoop.yarn.server.api.protocolrecords.ReportNewCollectorInfoResponse reportNewCollectorInfo(org.apache.hadoop.yarn.server.api.protocolrecords.ReportNewCollectorInfoRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
reportNewCollectorInfoin interfaceorg.apache.hadoop.yarn.server.api.CollectorNodemanagerProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getTimelineCollectorContext
public org.apache.hadoop.yarn.server.api.protocolrecords.GetTimelineCollectorContextResponse getTimelineCollectorContext(org.apache.hadoop.yarn.server.api.protocolrecords.GetTimelineCollectorContextRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Specified by:
getTimelineCollectorContextin interfaceorg.apache.hadoop.yarn.server.api.CollectorNodemanagerProtocol- Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-