Packages

  • package root
    Definition Classes
    root
  • package csw
    Definition Classes
    root
  • package params

    This project is intended to hold reusable models and params used throughout the csw source code.

    Params

    This project is intended to hold reusable models and params used throughout the csw source code.

    This also provides out of the box support to cater to the diverse communication requirements. Consumer of this library will be able to create Commands, Events, States to store ParameterSets.

    Imp Packages

    Commands and Events

    This packages contains classes, traits and models used to create *commands* and *events*. These are all based on type-safe keys and items (a set of values with optional units). Each key has a specific type and the key's values must be of that type.

    Two types of csw.params.commands.Command are supported:

    Following are the concrete commands supported by csw:

    Two types of csw.params.events.Event are supported:

    core

    This package supports serialization and deserialization of commands, events and state variables in JSON format csw.params.core.formats.JsonSupport.

    Scala and Java APIs

    All the param and event classes are immutable. The set methods return a new instance of the object with a new item added and the get methods return an Option, in case the Key is not found. There are also value methods that return a value directly, throwing an exception if the key or value is not found.

    Key Types

    A set of standard key types and matching items are defined. Each key accepts one or more values of the given type.

    Following csw.params.core.generics.KeyType are supported by csw:

    +--------------+-------------------------+---------------------------+
    |  Primitive   |      Scala KeyType      |       Java KeyType        |
    +--------------+-------------------------+---------------------------+
    | Boolean      | KeyType.BooleanKey      | JKeyTypes.BooleanKey      |
    | Character    | KeyType.CharKey         | JKeyTypes.JCharKey        |
    | Byte         | KeyType.ByteKey         | JKeyTypes.ByteKey         |
    | Short        | KeyType.ShortKey        | JKeyTypes.ShortKey        |
    | Long         | KeyType.LongKey         | JKeyTypes.LongKey         |
    | Int          | KeyType.IntKey          | JKeyTypes.IntKey          |
    | Float        | KeyType.FloatKey        | JKeyTypes.FloatKey        |
    | Double       | KeyType.DoubleKey       | JKeyTypes.DoubleKey       |
    | String       | KeyType.StringKey       | JKeyTypes.StringKey       |
    | Timestamp    | KeyType.TimestampKey    | JKeyTypes.TimestampKey    |
    | ----------   | ----------              | ----------                |
    | ByteArray    | KeyType.ByteArrayKey    | JKeyTypes.ByteArrayKey    |
    | ShortArray   | KeyType.ShortArrayKey   | JKeyTypes.ShortArrayKey   |
    | LongArray    | KeyType.LongArrayKey    | JKeyTypes.LongArrayKey    |
    | IntArray     | KeyType.IntArrayKey     | JKeyTypes.IntArrayKey     |
    | FloatArray   | KeyType.FloatArrayKey   | JKeyTypes.FloatArrayKey   |
    | DoubleArray  | KeyType.DoubleArrayKey  | JKeyTypes.DoubleArrayKey  |
    | ----------   | ----------              | ----------                |
    | ByteMatrix   | KeyType.ByteMatrixKey   | JKeyTypes.ByteMatrixKey   |
    | ShortMatrix  | KeyType.ShortMatrixKey  | JKeyTypes.ShortMatrixKey  |
    | LongMatrix   | KeyType.LongMatrixKey   | JKeyTypes.LongMatrixKey   |
    | IntMatrix    | KeyType.IntMatrixKey    | JKeyTypes.IntMatrixKey    |
    | FloatMatrix  | KeyType.FloatMatrixKey  | JKeyTypes.FloatMatrixKey  |
    | DoubleMatrix | KeyType.DoubleMatrixKey | JKeyTypes.DoubleMatrixKey |
    | ----------   | ----------              | ----------                |
    | Choice       | KeyType.ChoiceKey       | JKeyTypes.ChoiceKey       |
    | RaDec        | KeyType.RaDecKey        | JKeyTypes.RaDecKey        |
    | Struct       | KeyType.StructKey       | JKeyTypes.StructKey       |
    +--------------+-------------------------+---------------------------+

    Detailed information about creating Keys and Parameters can be found here: https://tmtsoftware.github.io/csw/services/messages/keys-parameters.html

    Detailed information about creating commands can be found here: https://tmtsoftware.github.io/csw/services/messages/commands.html

    Detailed information about creating events can be found here: https://tmtsoftware.github.io/csw/services/messages/events.html

    Definition Classes
    csw
  • package commands
    Definition Classes
    params
  • Command
  • CommandIssue
  • CommandList
  • CommandName
  • CommandResponse
  • ControlCommand
  • Keys
  • Nameable
  • Observe
  • Result
  • SequenceCommand
  • Setup
  • Wait

object CommandResponse extends Serializable

The nature of CommandResponse as an intermediate response of command execution or a final response which could be positive or negative

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CommandResponse
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Accepted(runId: Id) extends ValidateCommandResponse with ValidateResponse with OnewayResponse with Product with Serializable

    Represents a final response stating acceptance of a command received

    Represents a final response stating acceptance of a command received

    runId

    the runId of command for which this response is created

  2. case class Cancelled(runId: Id) extends SubmitResponse with Product with Serializable

    Represents a negative response that describes the cancellation of command

    Represents a negative response that describes the cancellation of command

    runId

    of command for which this response is created

  3. case class CommandNotAvailable(runId: Id) extends QueryResponse with Product with Serializable

    A negative response stating that a command with given runId is not available or cannot be located

    A negative response stating that a command with given runId is not available or cannot be located

    runId

    of command for which this response is created

  4. case class Completed(runId: Id) extends SubmitResponse with MatchingResponse with Product with Serializable

    Represents a positive response stating completion of command

    Represents a positive response stating completion of command

    runId

    of command for which this response is created

  5. case class CompletedWithResult(runId: Id, result: Result) extends SubmitResponse with Product with Serializable

    Represents a positive response stating completion of command

    Represents a positive response stating completion of command

    runId

    of command for which this response is created

    result

    describing the result of completion

  6. case class Error(runId: Id, message: String) extends SubmitResponse with MatchingResponse with Product with Serializable

    Represents a negative response that describes an error in executing the command

    Represents a negative response that describes an error in executing the command

    runId

    of command for which this response is created

    message

    describing the reason or cause or action item of the error encountered while executing the command

  7. case class Invalid(runId: Id, issue: CommandIssue) extends ValidateCommandResponse with ValidateResponse with OnewayResponse with SubmitResponse with MatchingResponse with Product with Serializable

    Represents a negative response invalidating a command received

    Represents a negative response invalidating a command received

    runId

    of command for which this response is created

    issue

    describing the cause of invalidation

  8. case class Locked(runId: Id) extends ValidateResponse with OnewayResponse with SubmitResponse with MatchingResponse with Product with Serializable

    Represents a negative response stating that a component is Locked and command was not validated or executed

    Represents a negative response stating that a component is Locked and command was not validated or executed

    runId

    of command for which this response is created

  9. sealed trait MatchingResponse extends CommandResponse

    MatchingResponse is returned by matchers.

    MatchingResponse is returned by matchers. Responses returned can be Invalid, Completed, Error, Locked

  10. sealed trait OnewayResponse extends CommandResponse

    OnewayResponse is returned by Oneway message which calls the onOneway handler Responses returned can be Accepted, Invalid, Locked

  11. sealed trait QueryResponse extends CommandResponse

    QueryResponse is returned by CommandService query Values can be Invalid, Started, Completed, CompletedWithResult, Error, Cancelled, Locked, CommandNotAvailable

  12. case class Started(runId: Id) extends SubmitResponse with Product with Serializable

    Represents an intermediate response stating a long running command has been started

    Represents an intermediate response stating a long running command has been started

    runId

    of command for which this response is created

  13. sealed trait SubmitResponse extends QueryResponse

    SubmitResponse is returned by Submit message which calls the onSubmit handler Responses returned can be Invalid, Started, Completed, CompletedWithResult, Error, Cancelled, Locked

  14. sealed trait ValidateCommandResponse extends CommandResponse

    ValidationResponse is returned by validateCommand handler.

    ValidationResponse is returned by validateCommand handler. Values can only be Invalid, Accepted

  15. sealed trait ValidateResponse extends CommandResponse

    ValidateOnlyResponse is returned by Validate message, which calls validateCommand handler Values can be Invalid, Accepted, Locked.

    ValidateOnlyResponse is returned by Validate message, which calls validateCommand handler Values can be Invalid, Accepted, Locked. Since the component can be locked, it is ValidationResponse with Locked

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def isFinal(qr: QueryResponse): Boolean

    Tests a response to determine if it is a final command state

    Tests a response to determine if it is a final command state

    qr

    response for testing

    returns

    true if it is final

  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def isIntermediate(qr: QueryResponse): Boolean

    Tests a response to determine if it is an intermediate response

    Tests a response to determine if it is an intermediate response

    qr

    response for testing

    returns

    returns true if it is intermediate

  14. def isNegative(qr: QueryResponse): Boolean

    Tests a response to determine if it is a negative response

    Tests a response to determine if it is a negative response

    qr

    response for testing

    returns

    true if it is negative

  15. def isPositive(or: OnewayResponse): Boolean

    Test a OnewayResponse to determine if it is a positive response

    Test a OnewayResponse to determine if it is a positive response

    or

    a OnewayResponse for testing

    returns

    true if positive, false otherwise

  16. def isPositive(qr: QueryResponse): Boolean

    Test a QueryResponse to determine if it is a positive response

    Test a QueryResponse to determine if it is a positive response

    qr

    response for testing

    returns

    true if it is positive

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  25. def withRunId(id: Id, response: SubmitResponse): SubmitResponse

    Transform a given CommandResponse to a response with the provided Id

    Transform a given CommandResponse to a response with the provided Id

    id

    the RunId for the new CommandResponse

    response

    the CommandResponse to be transformed

    returns

    a CommandResponse that has runId as provided id

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped