Class StreamObject
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.restapi.server.jaxrs.management.StreamObject
-
public class StreamObject extends AbstractResource<ResourceTypeImpl>
Nuxeo Stream Introspection endpoint- Since:
- 11.5
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
NO_CONSUMER
protected static String
PUML_FORMAT
-
Constructor Summary
Constructors Constructor Description StreamObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
doGet(String format)
String
doGetPuml()
Deprecated.since 2022.21 usedoGet(String)
with format=puml instead.String
getConsumerPosition(String consumer, String stream)
protected String
getJson()
protected KeyValueStore
getKvStore()
protected String
lagAsJson(String consumer, String stream, List<LogLag> lags)
String
listConsumers(String stream)
String
listStreams()
protected String
positionChangeAsJson(String consumer, String stream, List<LogLag> before, List<LogLag> after)
String
scale()
String
setConsumerPositionAfterDate(String consumer, String stream, String dateTime)
String
setConsumerPositionToBeginning(String consumer, String stream)
String
setConsumerPositionToEnd(String consumer, String stream)
String
setConsumerPositionToOffset(String consumer, String stream, int partition, long offset)
void
startConsumer(String consumer)
void
stopConsumer(String consumer)
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isAdapter, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
-
-
-
Field Detail
-
PUML_FORMAT
protected static final String PUML_FORMAT
- See Also:
- Constant Field Values
-
NO_CONSUMER
protected static final String NO_CONSUMER
- See Also:
- Constant Field Values
-
-
Method Detail
-
doGetPuml
@Deprecated public String doGetPuml()
Deprecated.since 2022.21 usedoGet(String)
with format=puml instead.
-
listStreams
public String listStreams()
-
stopConsumer
public void stopConsumer(String consumer)
-
startConsumer
public void startConsumer(String consumer)
-
positionChangeAsJson
protected String positionChangeAsJson(String consumer, String stream, List<LogLag> before, List<LogLag> after)
-
setConsumerPositionToBeginning
public String setConsumerPositionToBeginning(String consumer, String stream)
-
setConsumerPositionToOffset
public String setConsumerPositionToOffset(String consumer, String stream, int partition, long offset)
-
setConsumerPositionAfterDate
public String setConsumerPositionAfterDate(String consumer, String stream, String dateTime)
-
scale
public String scale()
-
getJson
protected String getJson()
-
getKvStore
protected KeyValueStore getKvStore()
-
-