Class RemoteIteratorRest<WI,NI extends RemoteIteratorData<WI>>

java.lang.Object
de.aristaflow.ilm.ws.rest.base.service.AbstractSubResource<AddDataTransformatorRemoteIteratorWebService<?,WI,?,?,NI>>
de.aristaflow.ilm.ws.rest.model.common.collection.RemoteIteratorRest<WI,NI>
Direct Known Subclasses:
ArchInstIdRemoteIteratorRest, ArchTemplIdRemoteIteratorRest, AsRemoteIteratorRest, DelRecRemoteIteratorRest, EcRemoteIteratorRest, EntityRemoteIteratorRest, ErrorDataRemoteIteratorRest, ExecHistEntryRemoteIteratorRest, IdUdtRemoteIteratorRest, IdvRemoteIteratorRest, InstanceRemoteIteratorRest, InstIdRemoteIteratorRest, InstRefRemoteIteratorRest, InstStatusRemoteIteratorRest, NamespaceRemoteIteratorRest, NsRemoteIteratorRest, PossAbsRemoteIteratorRest, QaRemoteIteratorRest, RaRemoteIteratorRest, ResExprEvalRemoteIteratorRest, ResInstRemoteIteratorRest, ResRemoteIteratorRest, ScRemoteIteratorRest, TemplateRemoteIteratorRest, TemplIdRemoteIteratorRest, TemplKindRemoteIteratorRest, TemplRefRemoteIteratorRest, TemplStatusRemoteIteratorRest, TtdeRemoteIteratorRest, WorkHistEntryRemoteIteratorRest

public abstract class RemoteIteratorRest<WI,NI extends RemoteIteratorData<WI>> extends AbstractSubResource<AddDataTransformatorRemoteIteratorWebService<?,WI,?,?,NI>>
See Also:
  • Constructor Details

    • RemoteIteratorRest

      protected RemoteIteratorRest(AddDataTransformatorRemoteIteratorWebService<?,WI,?,?,NI> service, de.aristaflow.adept2.base.communication.rest.RequestHandler reqHandler, de.aristaflow.adept2.base.communication.rest.ResponseHandler respHandler, de.aristaflow.adept2.base.communication.rest.ExceptionHandler excpHandler, de.aristaflow.adept2.base.communication.rest.ServiceResourceConfig srConf, Supplier<com.fasterxml.jackson.databind.ObjectMapper> objectMapper, UnaryOperator<Exception> headerDataExcpAdapter)
  • Method Details

    • initIteratorAndRespStatus

      public <RID extends InitialRemoteIteratorData<WI>> RID initIteratorAndRespStatus(RID rid, Long aliveTime)
      Initialises the remote iterator of the designated remote iterator data by setting the designated explicit alive time if required and the response status to HttpURLConnection.HTTP_CREATED. Both only applies in case the remote iterator data is not null, that is, there is no data, and the remote iterator has not been AbstractRemoteIteratorData.closed closed implicitly, e. g. after all data has been transfered.
      Parameters:
      rid - The remote iterator data for which to initially set an explicit alive time. If this is null, no alive time will be set explicitly.
      aliveTime - The alive time which to explicitly set for the designated remote iterator data. If this is null, the implicit alive time will be used, that is, no extension will be applied.
      Returns:
      The designated remote iterator data.
    • getNext

      @Valid public NI getNext(@NotNull @PathParam("iteratorId") @NotNull UUID iteratorId, @Positive @QueryParam("count") @Positive Integer count, @PositiveOrZero @QueryParam("start") @PositiveOrZero Integer start)
      This method is public to allow for inheriting the OperationResponse annotations.
      See Also:
    • getPrevious

      @Valid public NI getPrevious(@NotNull @PathParam("iteratorId") @NotNull UUID iteratorId, @Positive @QueryParam("count") @Positive Integer count)
      This method is public to allow for inheriting the OperationResponse annotations.
      See Also:
    • keepAlive

      @NotNull public @NotNull Long keepAlive(@NotNull @PathParam("iteratorId") @NotNull UUID iteratorId, @NotNull @PositiveOrZero @QueryParam("aliveTime") @NotNull @PositiveOrZero Long aliveTime)
      This method is public to allow for inheriting the OperationResponse annotations.
      See Also:
    • close

      public void close(@NotNull @PathParam("iteratorId") @NotNull UUID iteratorId)
      This method is public to allow for inheriting the OperationResponse annotations.
      See Also: