java.io.Closeable, java.lang.AutoCloseable, CollectorNodemanagerProtocolpublic class CollectorNodemanagerProtocolPBClientImpl extends java.lang.Object implements CollectorNodemanagerProtocol, java.io.Closeable
| Constructor | Description |
|---|---|
CollectorNodemanagerProtocolPBClientImpl(long clientVersion,
java.net.InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
GetTimelineCollectorContextResponse |
getTimelineCollectorContext(GetTimelineCollectorContextRequest request) |
The collector needs to get the context information including user, flow
and flow run ID to associate with every incoming put-entity requests.
|
ReportNewCollectorInfoResponse |
reportNewCollectorInfo(ReportNewCollectorInfoRequest request) |
The
TimelineCollectorManager provides a list of mapping
between application and collector's address in
ReportNewCollectorInfoRequest to a NodeManager to
register collector's info, include: applicationId and REST URI to
access collector. |
@Private
public CollectorNodemanagerProtocolPBClientImpl(long clientVersion,
java.net.InetSocketAddress addr,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
java.io.IOExceptionpublic ReportNewCollectorInfoResponse reportNewCollectorInfo(ReportNewCollectorInfoRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, java.io.IOException
CollectorNodemanagerProtocol
The TimelineCollectorManager provides a list of mapping
between application and collector's address in
ReportNewCollectorInfoRequest to a NodeManager to
register collector's info, include: applicationId and REST URI to
access collector. NodeManager will add them into registered collectors
and register them into ResourceManager afterwards.
reportNewCollectorInfo in interface CollectorNodemanagerProtocolrequest - the request of registering a new collector or a list of
collectorsorg.apache.hadoop.yarn.exceptions.YarnException - if the request is invalidjava.io.IOException - if there are I/O errorspublic GetTimelineCollectorContextResponse getTimelineCollectorContext(GetTimelineCollectorContextRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, java.io.IOException
CollectorNodemanagerProtocolThe collector needs to get the context information including user, flow and flow run ID to associate with every incoming put-entity requests.
getTimelineCollectorContext in interface CollectorNodemanagerProtocolrequest - the request of getting the aggregator context information of
the given applicationorg.apache.hadoop.yarn.exceptions.YarnException - if the request is invalidjava.io.IOException - if there are I/O errorspublic void close()
close in interface java.lang.AutoCloseableclose in interface java.io.CloseableCopyright © 2008–2025 Apache Software Foundation. All rights reserved.