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 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
ConstructorDescriptionCommandServiceClient
(msocket.api.Transport<CommandServiceRequest> httpTransport, msocket.api.Transport<CommandServiceStreamRequest> websocketTransport, akka.actor.typed.ActorSystem<?> actorSystem) -
Method Summary
Modifier and TypeMethodDescriptionio.bullet.borer.Codec<Angle>
io.bullet.borer.Decoder<byte[]>
bytesDec()
io.bullet.borer.Encoder<byte[]>
bytesEnc()
io.bullet.borer.Decoder<Character>
io.bullet.borer.Encoder<Character>
io.bullet.borer.Decoder<Object>
charDec()
io.bullet.borer.Encoder<Object>
charEnc()
io.bullet.borer.Codec<Choice>
io.bullet.borer.Codec<CommandIssue>
io.bullet.borer.Codec<CommandName>
protected io.bullet.borer.Codec<CommandResponse>
msocket.api.ErrorProtocol<CommandServiceRequest>
msocket.api.ErrorProtocol<CommandServiceStreamRequest>
io.bullet.borer.Codec<ControlCommand>
io.bullet.borer.Codec<Coords.Coord>
io.bullet.borer.Codec<CurrentState>
io.bullet.borer.Codec<akka.Done>
io.bullet.borer.Codec<Event>
io.bullet.borer.Codec<EventName>
io.bullet.borer.Codec<scala.concurrent.duration.FiniteDuration>
io.bullet.borer.AdtEncodingStrategy
io.bullet.borer.Codec<CommandServiceRequest>
io.bullet.borer.Codec<Id>
idCodec()
io.bullet.borer.Decoder<Instant>
io.bullet.borer.Encoder<Instant>
io.bullet.borer.Decoder<Byte[]>
io.bullet.borer.Encoder<Byte[]>
io.bullet.borer.Codec<ObsId>
scala.concurrent.Future<CommandResponse.OnewayResponse>
oneway
(ControlCommand controlCommand) scala.concurrent.Future<CommandResponse.MatchingResponse>
onewayAndMatch
(ControlCommand controlCommand, StateMatcher stateMatcher) io.bullet.borer.Decoder<Parameter<?>>
io.bullet.borer.Encoder<Parameter<?>>
io.bullet.borer.Codec<Prefix>
io.bullet.borer.Codec<ProperMotion>
scala.concurrent.Future<CommandResponse.SubmitResponse>
scala.concurrent.Future<CommandResponse.SubmitResponse>
queryFinal
(Id commandRunId, akka.util.Timeout timeout) io.bullet.borer.Codec<Result>
io.bullet.borer.Codec<Sequence>
io.bullet.borer.Codec<SequenceCommand>
io.bullet.borer.Codec<StateName>
io.bullet.borer.Codec<StateVariable>
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>
io.bullet.borer.Codec<akka.util.Timeout>
io.bullet.borer.Codec<UTCTime>
scala.concurrent.Future<CommandResponse.ValidateResponse>
validate
(ControlCommand controlCommand) io.bullet.borer.Codec<CommandServiceStreamRequest>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface msocket.api.codecs.BasicCodecs
eitherCodec
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 Details
-
CommandServiceClient
public CommandServiceClient(msocket.api.Transport<CommandServiceRequest> httpTransport, msocket.api.Transport<CommandServiceStreamRequest> websocketTransport, akka.actor.typed.ActorSystem<?> actorSystem)
-
-
Method Details
-
CommandServiceHttpErrorProtocol
- Specified by:
CommandServiceHttpErrorProtocol
in interfaceCommandServiceCodecs
-
CommandServiceWebsocketErrorProtocol
public msocket.api.ErrorProtocol<CommandServiceStreamRequest> CommandServiceWebsocketErrorProtocol()- Specified by:
CommandServiceWebsocketErrorProtocol
in interfaceCommandServiceCodecs
-
Timestamp
-
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
- Specified by:
charDec
in interfaceParamCodecsBase
-
charEnc
- Specified by:
charEnc
in interfaceParamCodecsBase
-
characterDec
- Specified by:
characterDec
in interfaceParamCodecsBase
-
characterEnc
- Specified by:
characterEnc
in interfaceParamCodecsBase
-
choiceCodec
- Specified by:
choiceCodec
in interfaceParamCodecsBase
-
commandIssueCodecValue
- Specified by:
commandIssueCodecValue
in interfaceParamCodecsBase
-
commandNameCodec
- Specified by:
commandNameCodec
in interfaceParamCodecsBase
-
commandResponseCodecValue
- Specified by:
commandResponseCodecValue
in interfaceParamCodecsBase
-
controlCommandCodec
- Specified by:
controlCommandCodec
in interfaceParamCodecsBase
-
coordCodecValue
- Specified by:
coordCodecValue
in interfaceParamCodecsBase
-
currentStateCodecValue
- Specified by:
currentStateCodecValue
in interfaceParamCodecsBase
-
doneCodec
public io.bullet.borer.Codec<akka.Done> doneCodec()- Specified by:
doneCodec
in interfacemsocket.api.codecs.BasicCodecs
-
eventCodec
- Specified by:
eventCodec
in interfaceParamCodecsBase
-
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
- Specified by:
httpCodecsValue
in interfaceCommandServiceCodecs
-
idCodec
- Specified by:
idCodec
in interfaceParamCodecsBase
-
instantDec
- Specified by:
instantDec
in interfaceCommonCodecs
-
instantEnc
- Specified by:
instantEnc
in interfaceCommonCodecs
-
javaByteArrayDec
- Specified by:
javaByteArrayDec
in interfaceParamCodecsBase
-
javaByteArrayEnc
- Specified by:
javaByteArrayEnc
in interfaceParamCodecsBase
-
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
- Specified by:
paramDecExistential
in interfaceParamCodecsBase
-
paramEncExistential
- Specified by:
paramEncExistential
in interfaceParamCodecsBase
-
prefixCodec
- Specified by:
prefixCodec
in interfaceCommonCodecs
-
properMotionCodec
- Specified by:
properMotionCodec
in interfaceParamCodecsBase
-
query
- 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
-
resultCodec
- Specified by:
resultCodec
in interfaceParamCodecsBase
-
sequenceCodec
- Specified by:
sequenceCodec
in interfaceParamCodecsBase
-
sequenceCommandCodec
- Specified by:
sequenceCommandCodec
in interfaceParamCodecsBase
-
stateNameCodec
- Specified by:
stateNameCodec
in interfaceParamCodecsBase
-
stateVariableCodecValue
- Specified by:
stateVariableCodecValue
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
- Specified by:
tagCodec
in interfaceParamCodecsBase
-
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
- 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
- Specified by:
websocketCodecs
in interfaceCommandServiceCodecs
-