Package csw.command.api.client
Class CommandServiceClient
- java.lang.Object
-
- csw.command.api.client.CommandServiceClient
-
- All Implemented Interfaces:
CommandServiceCodecs
,csw.command.api.scaladsl.CommandService
,ParamCodecs
,ParamCodecsBase
,CommonCodecs
,msocket.api.codecs.BasicCodecs
public class CommandServiceClient extends java.lang.Object implements csw.command.api.scaladsl.CommandService, CommandServiceCodecs
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface csw.prefix.codecs.CommonCodecs
CommonCodecs.Timestamp, CommonCodecs.Timestamp$
-
-
Constructor Summary
Constructors Constructor Description CommandServiceClient(msocket.api.Transport<CommandServiceRequest> httpTransport, msocket.api.Transport<CommandServiceStreamRequest> websocketTransport, akka.actor.typed.ActorSystem<?> actorSystem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.bullet.borer.Codec<Angle>
angleCodec()
io.bullet.borer.Decoder<byte[]>
bytesDec()
io.bullet.borer.Encoder<byte[]>
bytesEnc()
io.bullet.borer.Decoder<java.lang.Object>
charDec()
io.bullet.borer.Encoder<java.lang.Object>
charEnc()
io.bullet.borer.Codec<Choice>
choiceCodec()
io.bullet.borer.Codec<CommandIssue>
commandIssueCodecValue()
io.bullet.borer.Codec<CommandName>
commandNameCodec()
io.bullet.borer.Codec<CommandResponse>
commandResponseCodecValue()
msocket.api.ErrorProtocol<CommandServiceRequest>
CommandServiceHttpErrorProtocol()
msocket.api.ErrorProtocol<CommandServiceStreamRequest>
CommandServiceWebsocketErrorProtocol()
io.bullet.borer.Codec<ControlCommand>
controlCommandCodec()
io.bullet.borer.Codec<Coords.Coord>
coordCodecValue()
io.bullet.borer.Codec<CurrentState>
currentStateCodecValue()
io.bullet.borer.Codec<akka.Done>
doneCodec()
io.bullet.borer.Codec<Event>
eventCodec()
io.bullet.borer.Codec<EventName>
eventNameCodec()
io.bullet.borer.Codec<scala.concurrent.duration.FiniteDuration>
finiteDurationCodec()
io.bullet.borer.AdtEncodingStrategy
flatAdtEncoding()
io.bullet.borer.Codec<CommandServiceRequest>
httpCodecsValue()
io.bullet.borer.Codec<Id>
idCodec()
io.bullet.borer.Decoder<java.time.Instant>
instantDec()
io.bullet.borer.Encoder<java.time.Instant>
instantEnc()
io.bullet.borer.Decoder<java.lang.Byte[]>
javaByteArrayDec()
io.bullet.borer.Encoder<java.lang.Byte[]>
javaByteArrayEnc()
io.bullet.borer.Codec<ObsId>
obsIdCodec()
scala.concurrent.Future<CommandResponse.OnewayResponse>
oneway(ControlCommand controlCommand)
scala.concurrent.Future<CommandResponse.MatchingResponse>
onewayAndMatch(ControlCommand controlCommand, StateMatcher stateMatcher)
io.bullet.borer.Decoder<Parameter<?>>
paramDecExistential()
io.bullet.borer.Encoder<Parameter<?>>
paramEncExistential()
io.bullet.borer.Codec<Prefix>
prefixCodec()
io.bullet.borer.Codec<ProperMotion>
properMotionCodec()
scala.concurrent.Future<CommandResponse.SubmitResponse>
query(Id commandRunId)
scala.concurrent.Future<CommandResponse.SubmitResponse>
queryFinal(Id commandRunId, akka.util.Timeout timeout)
io.bullet.borer.Codec<RaDec>
raDecCodec()
io.bullet.borer.Codec<Result>
resultCodec()
io.bullet.borer.Codec<Sequence>
sequenceCodec()
io.bullet.borer.Codec<SequenceCommand>
sequenceCommandCodec()
io.bullet.borer.Codec<StateName>
stateNameCodec()
io.bullet.borer.Codec<StateVariable>
stateVariableCodecValue()
io.bullet.borer.Codec<Struct>
structCodec()
scala.concurrent.Future<CommandResponse.SubmitResponse>
submit(ControlCommand controlCommand)
scala.concurrent.Future<scala.collection.immutable.List<CommandResponse.SubmitResponse>>
submitAllAndWait(scala.collection.immutable.List<ControlCommand> submitCommands, akka.util.Timeout timeout)
scala.concurrent.Future<CommandResponse.SubmitResponse>
submitAndWait(ControlCommand controlCommand, akka.util.Timeout timeout)
akka.stream.scaladsl.Source<CurrentState,msocket.api.Subscription>
subscribeCurrentState(scala.collection.immutable.Set<StateName> names)
msocket.api.Subscription
subscribeCurrentState(scala.collection.immutable.Set<StateName> names, scala.Function1<CurrentState,scala.runtime.BoxedUnit> callback)
msocket.api.Subscription
subscribeCurrentState(scala.Function1<CurrentState,scala.runtime.BoxedUnit> callback)
io.bullet.borer.Codec<Coords.Tag>
tagCodec()
io.bullet.borer.Codec<TAITime>
taiTimeCodec()
io.bullet.borer.Codec<akka.util.Timeout>
timeoutInSecondsCodec()
CommonCodecs.Timestamp$
Timestamp()
io.bullet.borer.Codec<UTCTime>
utcTimeCodec()
scala.concurrent.Future<CommandResponse.ValidateResponse>
validate(ControlCommand controlCommand)
io.bullet.borer.Codec<CommandServiceStreamRequest>
websocketCodecs()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface csw.command.api.scaladsl.CommandService
subscribeCurrentState$default$1
-
Methods inherited from interface csw.prefix.codecs.CommonCodecs
enumCodec
-
Methods inherited from interface csw.params.core.formats.ParamCodecs
commandResponseCodec, coordCodec
-
Methods inherited from interface csw.params.core.formats.ParamCodecsBase
arrayDataCodec, matrixDataCodec, paramCodec, paramCoreCodec, waCodec
-
-
-
-
Constructor Detail
-
CommandServiceClient
public CommandServiceClient(msocket.api.Transport<CommandServiceRequest> httpTransport, msocket.api.Transport<CommandServiceStreamRequest> websocketTransport, akka.actor.typed.ActorSystem<?> actorSystem)
-
-
Method Detail
-
CommandServiceHttpErrorProtocol
public msocket.api.ErrorProtocol<CommandServiceRequest> CommandServiceHttpErrorProtocol()
- Specified by:
CommandServiceHttpErrorProtocol
in interfaceCommandServiceCodecs
-
CommandServiceWebsocketErrorProtocol
public msocket.api.ErrorProtocol<CommandServiceStreamRequest> CommandServiceWebsocketErrorProtocol()
- Specified by:
CommandServiceWebsocketErrorProtocol
in interfaceCommandServiceCodecs
-
Timestamp
public CommonCodecs.Timestamp$ Timestamp()
-
angleCodec
public io.bullet.borer.Codec<Angle> angleCodec()
- Specified by:
angleCodec
in interfaceParamCodecsBase
-
bytesDec
public io.bullet.borer.Decoder<byte[]> bytesDec()
- Specified by:
bytesDec
in interfaceParamCodecsBase
-
bytesEnc
public io.bullet.borer.Encoder<byte[]> bytesEnc()
- Specified by:
bytesEnc
in interfaceParamCodecsBase
-
charDec
public io.bullet.borer.Decoder<java.lang.Object> charDec()
- Specified by:
charDec
in interfaceParamCodecsBase
-
charEnc
public io.bullet.borer.Encoder<java.lang.Object> charEnc()
- Specified by:
charEnc
in interfaceParamCodecsBase
-
choiceCodec
public io.bullet.borer.Codec<Choice> choiceCodec()
- Specified by:
choiceCodec
in interfaceParamCodecsBase
-
commandIssueCodecValue
public io.bullet.borer.Codec<CommandIssue> commandIssueCodecValue()
- Specified by:
commandIssueCodecValue
in interfaceParamCodecsBase
-
commandNameCodec
public io.bullet.borer.Codec<CommandName> commandNameCodec()
- Specified by:
commandNameCodec
in interfaceParamCodecsBase
-
commandResponseCodecValue
public io.bullet.borer.Codec<CommandResponse> commandResponseCodecValue()
- Specified by:
commandResponseCodecValue
in interfaceParamCodecsBase
-
controlCommandCodec
public io.bullet.borer.Codec<ControlCommand> controlCommandCodec()
- Specified by:
controlCommandCodec
in interfaceParamCodecsBase
-
coordCodecValue
public io.bullet.borer.Codec<Coords.Coord> coordCodecValue()
- Specified by:
coordCodecValue
in interfaceParamCodecsBase
-
currentStateCodecValue
public io.bullet.borer.Codec<CurrentState> currentStateCodecValue()
- Specified by:
currentStateCodecValue
in interfaceParamCodecsBase
-
doneCodec
public io.bullet.borer.Codec<akka.Done> doneCodec()
- Specified by:
doneCodec
in interfacemsocket.api.codecs.BasicCodecs
-
eventCodec
public io.bullet.borer.Codec<Event> eventCodec()
- Specified by:
eventCodec
in interfaceParamCodecsBase
-
eventNameCodec
public io.bullet.borer.Codec<EventName> eventNameCodec()
- Specified by:
eventNameCodec
in interfaceParamCodecsBase
-
finiteDurationCodec
public io.bullet.borer.Codec<scala.concurrent.duration.FiniteDuration> finiteDurationCodec()
- Specified by:
finiteDurationCodec
in interfaceCommonCodecs
-
flatAdtEncoding
public io.bullet.borer.AdtEncodingStrategy flatAdtEncoding()
- Specified by:
flatAdtEncoding
in interfaceCommonCodecs
-
httpCodecsValue
public io.bullet.borer.Codec<CommandServiceRequest> httpCodecsValue()
- Specified by:
httpCodecsValue
in interfaceCommandServiceCodecs
-
idCodec
public io.bullet.borer.Codec<Id> idCodec()
- Specified by:
idCodec
in interfaceParamCodecsBase
-
instantDec
public io.bullet.borer.Decoder<java.time.Instant> instantDec()
- Specified by:
instantDec
in interfaceCommonCodecs
-
instantEnc
public io.bullet.borer.Encoder<java.time.Instant> instantEnc()
- Specified by:
instantEnc
in interfaceCommonCodecs
-
javaByteArrayDec
public io.bullet.borer.Decoder<java.lang.Byte[]> javaByteArrayDec()
- Specified by:
javaByteArrayDec
in interfaceParamCodecsBase
-
javaByteArrayEnc
public io.bullet.borer.Encoder<java.lang.Byte[]> javaByteArrayEnc()
- Specified by:
javaByteArrayEnc
in interfaceParamCodecsBase
-
obsIdCodec
public io.bullet.borer.Codec<ObsId> obsIdCodec()
- Specified by:
obsIdCodec
in interfaceParamCodecsBase
-
oneway
public scala.concurrent.Future<CommandResponse.OnewayResponse> oneway(ControlCommand controlCommand)
- Specified by:
oneway
in interfacecsw.command.api.scaladsl.CommandService
-
onewayAndMatch
public scala.concurrent.Future<CommandResponse.MatchingResponse> onewayAndMatch(ControlCommand controlCommand, StateMatcher stateMatcher)
- Specified by:
onewayAndMatch
in interfacecsw.command.api.scaladsl.CommandService
-
paramDecExistential
public io.bullet.borer.Decoder<Parameter<?>> paramDecExistential()
- Specified by:
paramDecExistential
in interfaceParamCodecsBase
-
paramEncExistential
public io.bullet.borer.Encoder<Parameter<?>> paramEncExistential()
- Specified by:
paramEncExistential
in interfaceParamCodecsBase
-
prefixCodec
public io.bullet.borer.Codec<Prefix> prefixCodec()
- Specified by:
prefixCodec
in interfaceCommonCodecs
-
properMotionCodec
public io.bullet.borer.Codec<ProperMotion> properMotionCodec()
- Specified by:
properMotionCodec
in interfaceParamCodecsBase
-
query
public scala.concurrent.Future<CommandResponse.SubmitResponse> query(Id commandRunId)
- Specified by:
query
in interfacecsw.command.api.scaladsl.CommandService
-
queryFinal
public scala.concurrent.Future<CommandResponse.SubmitResponse> queryFinal(Id commandRunId, akka.util.Timeout timeout)
- Specified by:
queryFinal
in interfacecsw.command.api.scaladsl.CommandService
-
raDecCodec
public io.bullet.borer.Codec<RaDec> raDecCodec()
- Specified by:
raDecCodec
in interfaceParamCodecsBase
-
resultCodec
public io.bullet.borer.Codec<Result> resultCodec()
- Specified by:
resultCodec
in interfaceParamCodecsBase
-
sequenceCodec
public io.bullet.borer.Codec<Sequence> sequenceCodec()
- Specified by:
sequenceCodec
in interfaceParamCodecsBase
-
sequenceCommandCodec
public io.bullet.borer.Codec<SequenceCommand> sequenceCommandCodec()
- Specified by:
sequenceCommandCodec
in interfaceParamCodecsBase
-
stateNameCodec
public io.bullet.borer.Codec<StateName> stateNameCodec()
- Specified by:
stateNameCodec
in interfaceParamCodecsBase
-
stateVariableCodecValue
public io.bullet.borer.Codec<StateVariable> stateVariableCodecValue()
- Specified by:
stateVariableCodecValue
in interfaceParamCodecsBase
-
structCodec
public io.bullet.borer.Codec<Struct> structCodec()
- Specified by:
structCodec
in interfaceParamCodecsBase
-
submit
public scala.concurrent.Future<CommandResponse.SubmitResponse> submit(ControlCommand controlCommand)
- Specified by:
submit
in interfacecsw.command.api.scaladsl.CommandService
-
submitAllAndWait
public scala.concurrent.Future<scala.collection.immutable.List<CommandResponse.SubmitResponse>> submitAllAndWait(scala.collection.immutable.List<ControlCommand> submitCommands, akka.util.Timeout timeout)
- Specified by:
submitAllAndWait
in interfacecsw.command.api.scaladsl.CommandService
-
submitAndWait
public scala.concurrent.Future<CommandResponse.SubmitResponse> submitAndWait(ControlCommand controlCommand, akka.util.Timeout timeout)
- Specified by:
submitAndWait
in interfacecsw.command.api.scaladsl.CommandService
-
subscribeCurrentState
public akka.stream.scaladsl.Source<CurrentState,msocket.api.Subscription> subscribeCurrentState(scala.collection.immutable.Set<StateName> names)
- Specified by:
subscribeCurrentState
in interfacecsw.command.api.scaladsl.CommandService
-
subscribeCurrentState
public msocket.api.Subscription subscribeCurrentState(scala.Function1<CurrentState,scala.runtime.BoxedUnit> callback)
- Specified by:
subscribeCurrentState
in interfacecsw.command.api.scaladsl.CommandService
-
subscribeCurrentState
public msocket.api.Subscription subscribeCurrentState(scala.collection.immutable.Set<StateName> names, scala.Function1<CurrentState,scala.runtime.BoxedUnit> callback)
- Specified by:
subscribeCurrentState
in interfacecsw.command.api.scaladsl.CommandService
-
tagCodec
public io.bullet.borer.Codec<Coords.Tag> tagCodec()
- Specified by:
tagCodec
in interfaceParamCodecsBase
-
taiTimeCodec
public io.bullet.borer.Codec<TAITime> taiTimeCodec()
- Specified by:
taiTimeCodec
in interfaceParamCodecsBase
-
timeoutInSecondsCodec
public io.bullet.borer.Codec<akka.util.Timeout> timeoutInSecondsCodec()
- Specified by:
timeoutInSecondsCodec
in interfacemsocket.api.codecs.BasicCodecs
-
utcTimeCodec
public io.bullet.borer.Codec<UTCTime> utcTimeCodec()
- Specified by:
utcTimeCodec
in interfaceParamCodecsBase
-
validate
public scala.concurrent.Future<CommandResponse.ValidateResponse> validate(ControlCommand controlCommand)
- Specified by:
validate
in interfacecsw.command.api.scaladsl.CommandService
-
websocketCodecs
public io.bullet.borer.Codec<CommandServiceStreamRequest> websocketCodecs()
- Specified by:
websocketCodecs
in interfaceCommandServiceCodecs
-
-