[
https://issues.apache.org/jira/browse/METRON-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16547798#comment-16547798
]
ASF GitHub Bot commented on METRON-1674:
----------------------------------------
Github user merrimanr commented on a diff in the pull request:
https://github.com/apache/metron/pull/1109#discussion_r203370393
--- Diff:
metron-interface/metron-rest-client/src/main/java/org/apache/metron/rest/model/pcap/PcapRequest.java
---
@@ -17,75 +17,65 @@
*/
package org.apache.metron.rest.model.pcap;
-public class PcapRequest {
+import org.apache.commons.collections4.map.AbstractMapDecorator;
+import org.apache.metron.pcap.config.PcapOptions;
- private String baseOutputPath;
- private String basePath;
- private Long startTime = 0L;
- private Long endTime = System.currentTimeMillis();
- private Integer numReducers = 1;
+import java.util.HashMap;
- public String getBaseOutputPath() {
- return baseOutputPath;
- }
+public class PcapRequest extends AbstractMapDecorator<String, Object> {
- public void setBaseOutputPath(String baseOutputPath) {
- this.baseOutputPath = baseOutputPath;
+ public PcapRequest() {
+ super(new HashMap<>());
+ setStartTimeMs(0L);
+ setEndTimeMs(System.currentTimeMillis());
+ setNumReducers(1);
--- End diff --
Default is now 10.
> Create REST endpoint for job status abstraction
> -----------------------------------------------
>
> Key: METRON-1674
> URL: https://issues.apache.org/jira/browse/METRON-1674
> Project: Metron
> Issue Type: Sub-task
> Reporter: Ryan Merriman
> Priority: Major
>
> We need a REST endpoint that will enable us to get the status of a running
> job.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)