|
@@ -265,20 +265,10 @@ public class TimelineReaderWebServices {
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metric(s) will be returned. (Optional query param).
|
|
* metric(s) will be returned. (Optional query param).
|
|
- * @param fromIdPrefix If specified, retrieve entities with an id prefix
|
|
|
|
- * greater than or equal to the specified fromIdPrefix. If fromIdPrefix
|
|
|
|
- * is same for all entities of a given entity type, then the user must
|
|
|
|
- * provide fromId as a filter to denote the start entity from which
|
|
|
|
- * further entities will be fetched. fromIdPrefix is mandatory even
|
|
|
|
- * in the case the entity id prefix is not used and should be set to 0.
|
|
|
|
- * @param fromId If specified along with fromIdPrefix, retrieve entities with
|
|
|
|
- * an id prefix greater than or equal to specified id prefix in
|
|
|
|
- * fromIdPrefix and entity id lexicographically greater than or equal
|
|
|
|
- * to entity id specified in fromId. Please note than fromIdPrefix is
|
|
|
|
- * mandatory if fromId is specified, otherwise, the filter will be
|
|
|
|
- * ignored. It is recommended to provide both fromIdPrefix and fromId
|
|
|
|
- * filters for more accurate results as id prefix may not be unique
|
|
|
|
- * for an entity.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of entities from the
|
|
|
|
+ * given fromId. The set of entities retrieved is inclusive of specified
|
|
|
|
+ * fromId. fromId should be taken from the value associated with FROM_ID
|
|
|
|
+ * info key in entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* a set of <cite>TimelineEntity</cite> instances of the given entity type
|
|
* a set of <cite>TimelineEntity</cite> instances of the given entity type
|
|
@@ -310,7 +300,6 @@ public class TimelineReaderWebServices {
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
- @QueryParam("fromidprefix") String fromIdPrefix,
|
|
|
|
@QueryParam("fromid") String fromId) {
|
|
@QueryParam("fromid") String fromId) {
|
|
String url = req.getRequestURI() +
|
|
String url = req.getRequestURI() +
|
|
(req.getQueryString() == null ? "" :
|
|
(req.getQueryString() == null ? "" :
|
|
@@ -335,7 +324,7 @@ public class TimelineReaderWebServices {
|
|
TimelineReaderWebServicesUtils.createTimelineEntityFilters(
|
|
TimelineReaderWebServicesUtils.createTimelineEntityFilters(
|
|
limit, createdTimeStart, createdTimeEnd, relatesTo, isRelatedTo,
|
|
limit, createdTimeStart, createdTimeEnd, relatesTo, isRelatedTo,
|
|
infofilters, conffilters, metricfilters, eventfilters,
|
|
infofilters, conffilters, metricfilters, eventfilters,
|
|
- fromIdPrefix, fromId),
|
|
|
|
|
|
+ fromId),
|
|
TimelineReaderWebServicesUtils.createTimelineDataToRetrieve(
|
|
TimelineReaderWebServicesUtils.createTimelineDataToRetrieve(
|
|
confsToRetrieve, metricsToRetrieve, fields, metricsLimit));
|
|
confsToRetrieve, metricsToRetrieve, fields, metricsLimit));
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@@ -418,20 +407,10 @@ public class TimelineReaderWebServices {
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metric(s) will be returned. (Optional query param).
|
|
* metric(s) will be returned. (Optional query param).
|
|
- * @param fromIdPrefix If specified, retrieve entities with an id prefix
|
|
|
|
- * greater than or equal to the specified fromIdPrefix. If fromIdPrefix
|
|
|
|
- * is same for all entities of a given entity type, then the user must
|
|
|
|
- * provide fromId as a filter to denote the start entity from which
|
|
|
|
- * further entities will be fetched. fromIdPrefix is mandatory even
|
|
|
|
- * in the case the entity id prefix is not used and should be set to 0.
|
|
|
|
- * @param fromId If specified along with fromIdPrefix, retrieve entities with
|
|
|
|
- * an id prefix greater than or equal to specified id prefix in
|
|
|
|
- * fromIdPrefix and entity id lexicographically greater than or equal
|
|
|
|
- * to entity id specified in fromId. Please note than fromIdPrefix is
|
|
|
|
- * mandatory if fromId is specified, otherwise, the filter will be
|
|
|
|
- * ignored. It is recommended to provide both fromIdPrefix and fromId
|
|
|
|
- * filters for more accurate results as id prefix may not be unique
|
|
|
|
- * for an entity.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of entities from the
|
|
|
|
+ * given fromId. The set of entities retrieved is inclusive of specified
|
|
|
|
+ * fromId. fromId should be taken from the value associated with FROM_ID
|
|
|
|
+ * info key in entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* a set of <cite>TimelineEntity</cite> instances of the given entity type
|
|
* a set of <cite>TimelineEntity</cite> instances of the given entity type
|
|
@@ -468,12 +447,11 @@ public class TimelineReaderWebServices {
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
- @QueryParam("fromidprefix") String fromIdPrefix,
|
|
|
|
@QueryParam("fromid") String fromId) {
|
|
@QueryParam("fromid") String fromId) {
|
|
return getEntities(req, res, null, appId, entityType, userId, flowName,
|
|
return getEntities(req, res, null, appId, entityType, userId, flowName,
|
|
flowRunId, limit, createdTimeStart, createdTimeEnd, relatesTo,
|
|
flowRunId, limit, createdTimeStart, createdTimeEnd, relatesTo,
|
|
isRelatedTo, infofilters, conffilters, metricfilters, eventfilters,
|
|
isRelatedTo, infofilters, conffilters, metricfilters, eventfilters,
|
|
- confsToRetrieve, metricsToRetrieve, fields, metricsLimit, fromIdPrefix,
|
|
|
|
|
|
+ confsToRetrieve, metricsToRetrieve, fields, metricsLimit,
|
|
fromId);
|
|
fromId);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -545,20 +523,10 @@ public class TimelineReaderWebServices {
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metric(s) will be returned. (Optional query param).
|
|
* metric(s) will be returned. (Optional query param).
|
|
- * @param fromIdPrefix If specified, retrieve entities with an id prefix
|
|
|
|
- * greater than or equal to the specified fromIdPrefix. If fromIdPrefix
|
|
|
|
- * is same for all entities of a given entity type, then the user must
|
|
|
|
- * provide fromId as a filter to denote the start entity from which
|
|
|
|
- * further entities will be fetched. fromIdPrefix is mandatory even
|
|
|
|
- * in the case the entity id prefix is not used and should be set to 0.
|
|
|
|
- * @param fromId If specified along with fromIdPrefix, retrieve entities with
|
|
|
|
- * an id prefix greater than or equal to specified id prefix in
|
|
|
|
- * fromIdPrefix and entity id lexicographically greater than or equal
|
|
|
|
- * to entity id specified in fromId. Please note than fromIdPrefix is
|
|
|
|
- * mandatory if fromId is specified, otherwise, the filter will be
|
|
|
|
- * ignored. It is recommended to provide both fromIdPrefix and fromId
|
|
|
|
- * filters for more accurate results as id prefix may not be unique
|
|
|
|
- * for an entity.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of entities from the
|
|
|
|
+ * given fromId. The set of entities retrieved is inclusive of specified
|
|
|
|
+ * fromId. fromId should be taken from the value associated with FROM_ID
|
|
|
|
+ * info key in entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* a set of <cite>TimelineEntity</cite> instances of the given entity type
|
|
* a set of <cite>TimelineEntity</cite> instances of the given entity type
|
|
@@ -596,7 +564,6 @@ public class TimelineReaderWebServices {
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
- @QueryParam("fromidprefix") String fromIdPrefix,
|
|
|
|
@QueryParam("fromid") String fromId) {
|
|
@QueryParam("fromid") String fromId) {
|
|
String url = req.getRequestURI() +
|
|
String url = req.getRequestURI() +
|
|
(req.getQueryString() == null ? "" :
|
|
(req.getQueryString() == null ? "" :
|
|
@@ -617,7 +584,7 @@ public class TimelineReaderWebServices {
|
|
TimelineReaderWebServicesUtils.createTimelineEntityFilters(
|
|
TimelineReaderWebServicesUtils.createTimelineEntityFilters(
|
|
limit, createdTimeStart, createdTimeEnd, relatesTo, isRelatedTo,
|
|
limit, createdTimeStart, createdTimeEnd, relatesTo, isRelatedTo,
|
|
infofilters, conffilters, metricfilters, eventfilters,
|
|
infofilters, conffilters, metricfilters, eventfilters,
|
|
- fromIdPrefix, fromId),
|
|
|
|
|
|
+ fromId),
|
|
TimelineReaderWebServicesUtils.createTimelineDataToRetrieve(
|
|
TimelineReaderWebServicesUtils.createTimelineDataToRetrieve(
|
|
confsToRetrieve, metricsToRetrieve, fields, metricsLimit));
|
|
confsToRetrieve, metricsToRetrieve, fields, metricsLimit));
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@@ -1098,9 +1065,10 @@ public class TimelineReaderWebServices {
|
|
* METRICS makes sense for flow runs hence only ALL or METRICS are
|
|
* METRICS makes sense for flow runs hence only ALL or METRICS are
|
|
* supported as fields for fetching flow runs. Other fields will lead to
|
|
* supported as fields for fetching flow runs. Other fields will lead to
|
|
* HTTP 400 (Bad Request) response. (Optional query param).
|
|
* HTTP 400 (Bad Request) response. (Optional query param).
|
|
- * @param fromId Defines the flow run id. If specified, retrieve the next
|
|
|
|
- * set of flow runs from the given id. The set of flow runs retrieved
|
|
|
|
- * is inclusive of specified fromId.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of flow run entities
|
|
|
|
+ * from the given fromId. The set of entities retrieved is inclusive of
|
|
|
|
+ * specified fromId. fromId should be taken from the value associated
|
|
|
|
+ * with FROM_ID info key in entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* set of <cite>FlowRunEntity</cite> instances for the given flow are
|
|
* set of <cite>FlowRunEntity</cite> instances for the given flow are
|
|
@@ -1145,7 +1113,7 @@ public class TimelineReaderWebServices {
|
|
entities = timelineReaderManager.getEntities(context,
|
|
entities = timelineReaderManager.getEntities(context,
|
|
TimelineReaderWebServicesUtils.createTimelineEntityFilters(
|
|
TimelineReaderWebServicesUtils.createTimelineEntityFilters(
|
|
limit, createdTimeStart, createdTimeEnd, null, null, null,
|
|
limit, createdTimeStart, createdTimeEnd, null, null, null,
|
|
- null, null, null, null, fromId),
|
|
|
|
|
|
+ null, null, null, fromId),
|
|
TimelineReaderWebServicesUtils.createTimelineDataToRetrieve(
|
|
TimelineReaderWebServicesUtils.createTimelineDataToRetrieve(
|
|
null, metricsToRetrieve, fields, null));
|
|
null, metricsToRetrieve, fields, null));
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@@ -1188,9 +1156,10 @@ public class TimelineReaderWebServices {
|
|
* METRICS makes sense for flow runs hence only ALL or METRICS are
|
|
* METRICS makes sense for flow runs hence only ALL or METRICS are
|
|
* supported as fields for fetching flow runs. Other fields will lead to
|
|
* supported as fields for fetching flow runs. Other fields will lead to
|
|
* HTTP 400 (Bad Request) response. (Optional query param).
|
|
* HTTP 400 (Bad Request) response. (Optional query param).
|
|
- * @param fromId Defines the flow run id. If specified, retrieve the next
|
|
|
|
- * set of flow runs from the given id. The set of flow runs retrieved
|
|
|
|
- * is inclusive of specified fromId.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of flow run entities
|
|
|
|
+ * from the given fromId. The set of entities retrieved is inclusive of
|
|
|
|
+ * specified fromId. fromId should be taken from the value associated
|
|
|
|
+ * with FROM_ID info key in entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* set of <cite>FlowRunEntity</cite> instances for the given flow are
|
|
* set of <cite>FlowRunEntity</cite> instances for the given flow are
|
|
@@ -1247,9 +1216,10 @@ public class TimelineReaderWebServices {
|
|
* METRICS makes sense for flow runs hence only ALL or METRICS are
|
|
* METRICS makes sense for flow runs hence only ALL or METRICS are
|
|
* supported as fields for fetching flow runs. Other fields will lead to
|
|
* supported as fields for fetching flow runs. Other fields will lead to
|
|
* HTTP 400 (Bad Request) response. (Optional query param).
|
|
* HTTP 400 (Bad Request) response. (Optional query param).
|
|
- * @param fromId Defines the flow run id. If specified, retrieve the next
|
|
|
|
- * set of flow runs from the given id. The set of flow runs retrieved
|
|
|
|
- * is inclusive of specified fromId.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of flow run entities
|
|
|
|
+ * from the given fromId. The set of entities retrieved is inclusive of
|
|
|
|
+ * specified fromId. fromId should be taken from the value associated
|
|
|
|
+ * with FROM_ID info key in entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* set of <cite>FlowRunEntity</cite> instances for the given flow are
|
|
* set of <cite>FlowRunEntity</cite> instances for the given flow are
|
|
@@ -1293,7 +1263,7 @@ public class TimelineReaderWebServices {
|
|
TimelineEntityType.YARN_FLOW_RUN.toString(), null, null),
|
|
TimelineEntityType.YARN_FLOW_RUN.toString(), null, null),
|
|
TimelineReaderWebServicesUtils.createTimelineEntityFilters(
|
|
TimelineReaderWebServicesUtils.createTimelineEntityFilters(
|
|
limit, createdTimeStart, createdTimeEnd, null, null, null,
|
|
limit, createdTimeStart, createdTimeEnd, null, null, null,
|
|
- null, null, null, null, fromId),
|
|
|
|
|
|
+ null, null, null, fromId),
|
|
TimelineReaderWebServicesUtils.createTimelineDataToRetrieve(
|
|
TimelineReaderWebServicesUtils.createTimelineDataToRetrieve(
|
|
null, metricsToRetrieve, fields, null));
|
|
null, metricsToRetrieve, fields, null));
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@@ -1423,7 +1393,7 @@ public class TimelineReaderWebServices {
|
|
DateRange range = parseDateRange(dateRange);
|
|
DateRange range = parseDateRange(dateRange);
|
|
TimelineEntityFilters entityFilters =
|
|
TimelineEntityFilters entityFilters =
|
|
TimelineReaderWebServicesUtils.createTimelineEntityFilters(
|
|
TimelineReaderWebServicesUtils.createTimelineEntityFilters(
|
|
- limit, null, null, null, null, null, null, null, null, null,
|
|
|
|
|
|
+ limit, null, null, null, null, null, null, null, null,
|
|
fromId);
|
|
fromId);
|
|
entityFilters.setCreatedTimeBegin(range.dateStart);
|
|
entityFilters.setCreatedTimeBegin(range.dateStart);
|
|
entityFilters.setCreatedTimeEnd(range.dateEnd);
|
|
entityFilters.setCreatedTimeEnd(range.dateEnd);
|
|
@@ -1744,9 +1714,10 @@ public class TimelineReaderWebServices {
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metric(s) will be returned. (Optional query param).
|
|
* metric(s) will be returned. (Optional query param).
|
|
- * @param fromId Defines the application id. If specified, retrieve the next
|
|
|
|
- * set of applications from the given id. The set of applications
|
|
|
|
- * retrieved is inclusive of specified fromId.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of applications
|
|
|
|
+ * from the given fromId. The set of applications retrieved is inclusive
|
|
|
|
+ * of specified fromId. fromId should be taken from the value associated
|
|
|
|
+ * with FROM_ID info key in entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* a set of <cite>TimelineEntity</cite> instances representing apps is
|
|
* a set of <cite>TimelineEntity</cite> instances representing apps is
|
|
@@ -1799,7 +1770,7 @@ public class TimelineReaderWebServices {
|
|
entities = timelineReaderManager.getEntities(context,
|
|
entities = timelineReaderManager.getEntities(context,
|
|
TimelineReaderWebServicesUtils.createTimelineEntityFilters(
|
|
TimelineReaderWebServicesUtils.createTimelineEntityFilters(
|
|
limit, createdTimeStart, createdTimeEnd, relatesTo, isRelatedTo,
|
|
limit, createdTimeStart, createdTimeEnd, relatesTo, isRelatedTo,
|
|
- infofilters, conffilters, metricfilters, eventfilters, null,
|
|
|
|
|
|
+ infofilters, conffilters, metricfilters, eventfilters,
|
|
fromId),
|
|
fromId),
|
|
TimelineReaderWebServicesUtils.createTimelineDataToRetrieve(
|
|
TimelineReaderWebServicesUtils.createTimelineDataToRetrieve(
|
|
confsToRetrieve, metricsToRetrieve, fields, metricsLimit));
|
|
confsToRetrieve, metricsToRetrieve, fields, metricsLimit));
|
|
@@ -1876,9 +1847,10 @@ public class TimelineReaderWebServices {
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metric(s) will be returned. (Optional query param).
|
|
* metric(s) will be returned. (Optional query param).
|
|
- * @param fromId Defines the application id. If specified, retrieve the next
|
|
|
|
- * set of applications from the given id. The set of applications
|
|
|
|
- * retrieved is inclusive of specified fromId.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of applications
|
|
|
|
+ * from the given fromId. The set of applications retrieved is inclusive
|
|
|
|
+ * of specified fromId. fromId should be taken from the value associated
|
|
|
|
+ * with FROM_ID info key in entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* a set of <cite>TimelineEntity</cite> instances representing apps is
|
|
* a set of <cite>TimelineEntity</cite> instances representing apps is
|
|
@@ -1916,7 +1888,7 @@ public class TimelineReaderWebServices {
|
|
TimelineEntityType.YARN_APPLICATION.toString(), userId, flowName,
|
|
TimelineEntityType.YARN_APPLICATION.toString(), userId, flowName,
|
|
flowRunId, limit, createdTimeStart, createdTimeEnd, relatesTo,
|
|
flowRunId, limit, createdTimeStart, createdTimeEnd, relatesTo,
|
|
isRelatedTo, infofilters, conffilters, metricfilters, eventfilters,
|
|
isRelatedTo, infofilters, conffilters, metricfilters, eventfilters,
|
|
- confsToRetrieve, metricsToRetrieve, fields, metricsLimit, null, fromId);
|
|
|
|
|
|
+ confsToRetrieve, metricsToRetrieve, fields, metricsLimit, fromId);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1980,9 +1952,10 @@ public class TimelineReaderWebServices {
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metric(s) will be returned. (Optional query param).
|
|
* metric(s) will be returned. (Optional query param).
|
|
- * @param fromId Defines the application id. If specified, retrieve the next
|
|
|
|
- * set of applications from the given id. The set of applications
|
|
|
|
- * retrieved is inclusive of specified fromId.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of applications
|
|
|
|
+ * from the given fromId. The set of applications retrieved is inclusive
|
|
|
|
+ * of specified fromId. fromId should be taken from the value associated
|
|
|
|
+ * with FROM_ID info key in entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* a set of <cite>TimelineEntity</cite> instances representing apps is
|
|
* a set of <cite>TimelineEntity</cite> instances representing apps is
|
|
@@ -2022,7 +1995,7 @@ public class TimelineReaderWebServices {
|
|
TimelineEntityType.YARN_APPLICATION.toString(), userId, flowName,
|
|
TimelineEntityType.YARN_APPLICATION.toString(), userId, flowName,
|
|
flowRunId, limit, createdTimeStart, createdTimeEnd, relatesTo,
|
|
flowRunId, limit, createdTimeStart, createdTimeEnd, relatesTo,
|
|
isRelatedTo, infofilters, conffilters, metricfilters, eventfilters,
|
|
isRelatedTo, infofilters, conffilters, metricfilters, eventfilters,
|
|
- confsToRetrieve, metricsToRetrieve, fields, metricsLimit, null, fromId);
|
|
|
|
|
|
+ confsToRetrieve, metricsToRetrieve, fields, metricsLimit, fromId);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -2083,9 +2056,10 @@ public class TimelineReaderWebServices {
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metric(s) will be returned. (Optional query param).
|
|
* metric(s) will be returned. (Optional query param).
|
|
- * @param fromId Defines the application id. If specified, retrieve the next
|
|
|
|
- * set of applications from the given id. The set of applications
|
|
|
|
- * retrieved is inclusive of specified fromId.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of applications
|
|
|
|
+ * from the given fromId. The set of applications retrieved is inclusive
|
|
|
|
+ * of specified fromId. fromId should be taken from the value associated
|
|
|
|
+ * with FROM_ID info key in entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* a set of <cite>TimelineEntity</cite> instances representing apps is
|
|
* a set of <cite>TimelineEntity</cite> instances representing apps is
|
|
@@ -2122,7 +2096,7 @@ public class TimelineReaderWebServices {
|
|
TimelineEntityType.YARN_APPLICATION.toString(), userId, flowName,
|
|
TimelineEntityType.YARN_APPLICATION.toString(), userId, flowName,
|
|
null, limit, createdTimeStart, createdTimeEnd, relatesTo, isRelatedTo,
|
|
null, limit, createdTimeStart, createdTimeEnd, relatesTo, isRelatedTo,
|
|
infofilters, conffilters, metricfilters, eventfilters,
|
|
infofilters, conffilters, metricfilters, eventfilters,
|
|
- confsToRetrieve, metricsToRetrieve, fields, metricsLimit, null, fromId);
|
|
|
|
|
|
+ confsToRetrieve, metricsToRetrieve, fields, metricsLimit, fromId);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -2184,9 +2158,10 @@ public class TimelineReaderWebServices {
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* or has a value less than 1, and metrics have to be retrieved, then
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metricsLimit will be considered as 1 i.e. latest single value of
|
|
* metric(s) will be returned. (Optional query param).
|
|
* metric(s) will be returned. (Optional query param).
|
|
- * @param fromId Defines the application id. If specified, retrieve the next
|
|
|
|
- * set of applications from the given id. The set of applications
|
|
|
|
- * retrieved is inclusive of specified fromId.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of applications
|
|
|
|
+ * from the given fromId. The set of applications retrieved is inclusive
|
|
|
|
+ * of specified fromId. fromId should be taken from the value associated
|
|
|
|
+ * with FROM_ID info key in entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing
|
|
* a set of <cite>TimelineEntity</cite> instances representing apps is
|
|
* a set of <cite>TimelineEntity</cite> instances representing apps is
|
|
@@ -2224,7 +2199,7 @@ public class TimelineReaderWebServices {
|
|
TimelineEntityType.YARN_APPLICATION.toString(), userId, flowName,
|
|
TimelineEntityType.YARN_APPLICATION.toString(), userId, flowName,
|
|
null, limit, createdTimeStart, createdTimeEnd, relatesTo, isRelatedTo,
|
|
null, limit, createdTimeStart, createdTimeEnd, relatesTo, isRelatedTo,
|
|
infofilters, conffilters, metricfilters, eventfilters,
|
|
infofilters, conffilters, metricfilters, eventfilters,
|
|
- confsToRetrieve, metricsToRetrieve, fields, metricsLimit, null, fromId);
|
|
|
|
|
|
+ confsToRetrieve, metricsToRetrieve, fields, metricsLimit, fromId);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -2295,21 +2270,11 @@ public class TimelineReaderWebServices {
|
|
* have to be retrieved, then metricsLimit will be considered as 1
|
|
* have to be retrieved, then metricsLimit will be considered as 1
|
|
* i.e. latest single value of metric(s) will be returned. (Optional
|
|
* i.e. latest single value of metric(s) will be returned. (Optional
|
|
* query param).
|
|
* query param).
|
|
- * @param fromIdPrefix If specified, retrieve entities with an id prefix
|
|
|
|
- * greater than or equal to the specified fromIdPrefix. If
|
|
|
|
- * fromIdPrefix is same for all entities of a given entity type, then
|
|
|
|
- * the user must provide fromId as a filter to denote the start
|
|
|
|
- * entity from which further entities will be fetched. fromIdPrefix
|
|
|
|
- * is mandatory even in the case the entity id prefix is not used and
|
|
|
|
- * should be set to 0.
|
|
|
|
- * @param fromId If specified along with fromIdPrefix, retrieve entities with
|
|
|
|
- * an id prefix greater than or equal to specified id prefix in
|
|
|
|
- * fromIdPrefix and entity id lexicographically greater than or equal
|
|
|
|
- * to entity id specified in fromId. Please note than fromIdPrefix is
|
|
|
|
- * mandatory if fromId is specified, otherwise, the filter will be
|
|
|
|
- * ignored. It is recommended to provide both fromIdPrefix and fromId
|
|
|
|
- * filters for more accurate results as id prefix may not be unique
|
|
|
|
- * for an entity.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of application-attempt
|
|
|
|
+ * entities from the given fromId. The set of application-attempt
|
|
|
|
+ * entities retrieved is inclusive of specified fromId. fromId should
|
|
|
|
+ * be taken from the value associated with FROM_ID info key in
|
|
|
|
+ * entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* set of <cite>TimelineEntity</cite> instances of the app-attempt
|
|
* set of <cite>TimelineEntity</cite> instances of the app-attempt
|
|
@@ -2343,13 +2308,12 @@ public class TimelineReaderWebServices {
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
- @QueryParam("fromidprefix") String fromIdPrefix,
|
|
|
|
@QueryParam("fromid") String fromId) {
|
|
@QueryParam("fromid") String fromId) {
|
|
|
|
|
|
return getAppAttempts(req, res, null, appId, userId, flowName, flowRunId,
|
|
return getAppAttempts(req, res, null, appId, userId, flowName, flowRunId,
|
|
limit, createdTimeStart, createdTimeEnd, relatesTo, isRelatedTo,
|
|
limit, createdTimeStart, createdTimeEnd, relatesTo, isRelatedTo,
|
|
infofilters, conffilters, metricfilters, eventfilters, confsToRetrieve,
|
|
infofilters, conffilters, metricfilters, eventfilters, confsToRetrieve,
|
|
- metricsToRetrieve, fields, metricsLimit, fromIdPrefix, fromId);
|
|
|
|
|
|
+ metricsToRetrieve, fields, metricsLimit, fromId);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -2421,21 +2385,11 @@ public class TimelineReaderWebServices {
|
|
* have to be retrieved, then metricsLimit will be considered as 1
|
|
* have to be retrieved, then metricsLimit will be considered as 1
|
|
* i.e. latest single value of metric(s) will be returned. (Optional
|
|
* i.e. latest single value of metric(s) will be returned. (Optional
|
|
* query param).
|
|
* query param).
|
|
- * @param fromIdPrefix If specified, retrieve entities with an id prefix
|
|
|
|
- * greater than or equal to the specified fromIdPrefix. If
|
|
|
|
- * fromIdPrefix is same for all entities of a given entity type, then
|
|
|
|
- * the user must provide fromId as a filter to denote the start
|
|
|
|
- * entity from which further entities will be fetched. fromIdPrefix
|
|
|
|
- * is mandatory even in the case the entity id prefix is not used and
|
|
|
|
- * should be set to 0.
|
|
|
|
- * @param fromId If specified along with fromIdPrefix, retrieve entities with
|
|
|
|
- * an id prefix greater than or equal to specified id prefix in
|
|
|
|
- * fromIdPrefix and entity id lexicographically greater than or equal
|
|
|
|
- * to entity id specified in fromId. Please note than fromIdPrefix is
|
|
|
|
- * mandatory if fromId is specified, otherwise, the filter will be
|
|
|
|
- * ignored. It is recommended to provide both fromIdPrefix and fromId
|
|
|
|
- * filters for more accurate results as id prefix may not be unique
|
|
|
|
- * for an entity.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of application-attempt
|
|
|
|
+ * entities from the given fromId. The set of application-attempt
|
|
|
|
+ * entities retrieved is inclusive of specified fromId. fromId should
|
|
|
|
+ * be taken from the value associated with FROM_ID info key in
|
|
|
|
+ * entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* set of <cite>TimelineEntity</cite> instances of the app-attempts
|
|
* set of <cite>TimelineEntity</cite> instances of the app-attempts
|
|
@@ -2470,7 +2424,6 @@ public class TimelineReaderWebServices {
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
- @QueryParam("fromidprefix") String fromIdPrefix,
|
|
|
|
@QueryParam("fromid") String fromId) {
|
|
@QueryParam("fromid") String fromId) {
|
|
|
|
|
|
return getEntities(req, res, clusterId, appId,
|
|
return getEntities(req, res, clusterId, appId,
|
|
@@ -2478,7 +2431,7 @@ public class TimelineReaderWebServices {
|
|
flowName, flowRunId, limit, createdTimeStart, createdTimeEnd, relatesTo,
|
|
flowName, flowRunId, limit, createdTimeStart, createdTimeEnd, relatesTo,
|
|
isRelatedTo, infofilters, conffilters, metricfilters, eventfilters,
|
|
isRelatedTo, infofilters, conffilters, metricfilters, eventfilters,
|
|
confsToRetrieve, metricsToRetrieve, fields, metricsLimit,
|
|
confsToRetrieve, metricsToRetrieve, fields, metricsLimit,
|
|
- fromIdPrefix, fromId);
|
|
|
|
|
|
+ fromId);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -2700,21 +2653,11 @@ public class TimelineReaderWebServices {
|
|
* have to be retrieved, then metricsLimit will be considered as 1
|
|
* have to be retrieved, then metricsLimit will be considered as 1
|
|
* i.e. latest single value of metric(s) will be returned. (Optional
|
|
* i.e. latest single value of metric(s) will be returned. (Optional
|
|
* query param).
|
|
* query param).
|
|
- * @param fromIdPrefix If specified, retrieve entities with an id prefix
|
|
|
|
- * greater than or equal to the specified fromIdPrefix. If
|
|
|
|
- * fromIdPrefix is same for all entities of a given entity type, then
|
|
|
|
- * the user must provide fromId as a filter to denote the start
|
|
|
|
- * entity from which further entities will be fetched. fromIdPrefix
|
|
|
|
- * is mandatory even in the case the entity id prefix is not used and
|
|
|
|
- * should be set to 0.
|
|
|
|
- * @param fromId If specified along with fromIdPrefix, retrieve entities with
|
|
|
|
- * an id prefix greater than or equal to specified id prefix in
|
|
|
|
- * fromIdPrefix and entity id lexicographically greater than or equal
|
|
|
|
- * to entity id specified in fromId. Please note than fromIdPrefix is
|
|
|
|
- * mandatory if fromId is specified, otherwise, the filter will be
|
|
|
|
- * ignored. It is recommended to provide both fromIdPrefix and fromId
|
|
|
|
- * filters for more accurate results as id prefix may not be unique
|
|
|
|
- * for an entity.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of container
|
|
|
|
+ * entities from the given fromId. The set of container
|
|
|
|
+ * entities retrieved is inclusive of specified fromId. fromId should
|
|
|
|
+ * be taken from the value associated with FROM_ID info key in
|
|
|
|
+ * entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* set of <cite>TimelineEntity</cite> instances of the containers
|
|
* set of <cite>TimelineEntity</cite> instances of the containers
|
|
@@ -2749,12 +2692,11 @@ public class TimelineReaderWebServices {
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
- @QueryParam("fromidprefix") String fromIdPrefix,
|
|
|
|
@QueryParam("fromid") String fromId) {
|
|
@QueryParam("fromid") String fromId) {
|
|
return getContainers(req, res, null, appId, appattemptId, userId, flowName,
|
|
return getContainers(req, res, null, appId, appattemptId, userId, flowName,
|
|
flowRunId, limit, createdTimeStart, createdTimeEnd, relatesTo,
|
|
flowRunId, limit, createdTimeStart, createdTimeEnd, relatesTo,
|
|
isRelatedTo, infofilters, conffilters, metricfilters, eventfilters,
|
|
isRelatedTo, infofilters, conffilters, metricfilters, eventfilters,
|
|
- confsToRetrieve, metricsToRetrieve, fields, metricsLimit, fromIdPrefix,
|
|
|
|
|
|
+ confsToRetrieve, metricsToRetrieve, fields, metricsLimit,
|
|
fromId);
|
|
fromId);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2829,21 +2771,11 @@ public class TimelineReaderWebServices {
|
|
* have to be retrieved, then metricsLimit will be considered as 1
|
|
* have to be retrieved, then metricsLimit will be considered as 1
|
|
* i.e. latest single value of metric(s) will be returned. (Optional
|
|
* i.e. latest single value of metric(s) will be returned. (Optional
|
|
* query param).
|
|
* query param).
|
|
- * @param fromIdPrefix If specified, retrieve entities with an id prefix
|
|
|
|
- * greater than or equal to the specified fromIdPrefix. If
|
|
|
|
- * fromIdPrefix is same for all entities of a given entity type, then
|
|
|
|
- * the user must provide fromId as a filter to denote the start
|
|
|
|
- * entity from which further entities will be fetched. fromIdPrefix
|
|
|
|
- * is mandatory even in the case the entity id prefix is not used and
|
|
|
|
- * should be set to 0.
|
|
|
|
- * @param fromId If specified along with fromIdPrefix, retrieve entities with
|
|
|
|
- * an id prefix greater than or equal to specified id prefix in
|
|
|
|
- * fromIdPrefix and entity id lexicographically greater than or equal
|
|
|
|
- * to entity id specified in fromId. Please note than fromIdPrefix is
|
|
|
|
- * mandatory if fromId is specified, otherwise, the filter will be
|
|
|
|
- * ignored. It is recommended to provide both fromIdPrefix and fromId
|
|
|
|
- * filters for more accurate results as id prefix may not be unique
|
|
|
|
- * for an entity.
|
|
|
|
|
|
+ * @param fromId If specified, retrieve the next set of container
|
|
|
|
+ * entities from the given fromId. The set of container
|
|
|
|
+ * entities retrieved is inclusive of specified fromId. fromId should
|
|
|
|
+ * be taken from the value associated with FROM_ID info key in
|
|
|
|
+ * entity response which was sent earlier.
|
|
*
|
|
*
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* @return If successful, a HTTP 200(OK) response having a JSON representing a
|
|
* set of <cite>TimelineEntity</cite> instances of the containers
|
|
* set of <cite>TimelineEntity</cite> instances of the containers
|
|
@@ -2880,7 +2812,6 @@ public class TimelineReaderWebServices {
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("metricstoretrieve") String metricsToRetrieve,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("fields") String fields,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
@QueryParam("metricslimit") String metricsLimit,
|
|
- @QueryParam("fromidprefix") String fromIdPrefix,
|
|
|
|
@QueryParam("fromid") String fromId) {
|
|
@QueryParam("fromid") String fromId) {
|
|
|
|
|
|
String entityType = TimelineEntityType.YARN_CONTAINER.toString();
|
|
String entityType = TimelineEntityType.YARN_CONTAINER.toString();
|
|
@@ -2899,7 +2830,7 @@ public class TimelineReaderWebServices {
|
|
return getEntities(req, res, clusterId, appId, entityType, userId, flowName,
|
|
return getEntities(req, res, clusterId, appId, entityType, userId, flowName,
|
|
flowRunId, limit, createdTimeStart, createdTimeEnd, relatesTo,
|
|
flowRunId, limit, createdTimeStart, createdTimeEnd, relatesTo,
|
|
isRelatedTo, infofilter, conffilters, metricfilters, eventfilters,
|
|
isRelatedTo, infofilter, conffilters, metricfilters, eventfilters,
|
|
- confsToRetrieve, metricsToRetrieve, fields, metricsLimit, fromIdPrefix,
|
|
|
|
|
|
+ confsToRetrieve, metricsToRetrieve, fields, metricsLimit,
|
|
fromId);
|
|
fromId);
|
|
}
|
|
}
|
|
|
|
|