Open Kilda Java Documentation
org.openkilda.messaging.command.CommandMessage Class Reference
Inheritance diagram for org.openkilda.messaging.command.CommandMessage:
org.openkilda.messaging.Message org.openkilda.messaging.BaseMessage org.openkilda.messaging.command.CommandWithReplyToMessage

Public Member Functions

 CommandMessage (@JsonProperty(PAYLOAD) final CommandData data, @JsonProperty(TIMESTAMP) final long timestamp, @JsonProperty(CORRELATION_ID) final String correlationId, @JsonProperty(DESTINATION) final Destination destination)
 
 CommandMessage (final CommandData data, final long timestamp, final String correlationId)
 
CommandData getData ()
 
void setData (final CommandData data)
 
String toString ()
 
- Public Member Functions inherited from org.openkilda.messaging.Message
 Message (@JsonProperty(TIMESTAMP) final long timestamp, @JsonProperty(CORRELATION_ID) final String correlationId, @JsonProperty(DESTINATION) final Destination destination)
 
 Message (final long timestamp, final String correlationId)
 
String getCorrelationId ()
 
Destination getDestination ()
 
void setDestination (final Destination destination)
 
String toString ()
 
- Public Member Functions inherited from org.openkilda.messaging.BaseMessage
 BaseMessage (@JsonProperty(TIMESTAMP) final long timestamp)
 
 BaseMessage ()
 
long getTimestamp ()
 
void setTimestamp (long timestamp)
 

Protected Attributes

CommandData data
 
- Protected Attributes inherited from org.openkilda.messaging.Message
String correlationId
 
Destination destination
 
- Protected Attributes inherited from org.openkilda.messaging.BaseMessage
long timestamp = 0L
 

Additional Inherited Members

- Static Public Member Functions inherited from org.openkilda.messaging.BaseMessage
static final< T extends BaseMessage > T getMessage (String json, Class< T > type) throws java.io.IOException
 
static final< T extends BaseMessage > T tryGetMessage (String json, Class< T > type)
 

Detailed Description

Class represents command message.

Definition at line 43 of file CommandMessage.java.

Constructor & Destructor Documentation

◆ CommandMessage() [1/2]

org.openkilda.messaging.command.CommandMessage.CommandMessage ( @JsonProperty(PAYLOAD) final CommandData  data,
@JsonProperty(TIMESTAMP) final long  timestamp,
@JsonProperty(CORRELATION_ID) final String  correlationId,
@JsonProperty(DESTINATION) final Destination  destination 
)

Instance constructor.

Parameters
datacommand message payload
timestamptimestamp value
correlationIdmessage correlation id
destinationmessage destination

Definition at line 64 of file CommandMessage.java.

◆ CommandMessage() [2/2]

org.openkilda.messaging.command.CommandMessage.CommandMessage ( final CommandData  data,
final long  timestamp,
final String  correlationId 
)

Definition at line 72 of file CommandMessage.java.

Member Function Documentation

◆ getData()

CommandData org.openkilda.messaging.command.CommandMessage.getData ( )

Returns payload of the command message.

Returns
command message payload

Definition at line 84 of file CommandMessage.java.

◆ setData()

void org.openkilda.messaging.command.CommandMessage.setData ( final CommandData  data)

Sets payload of the command message.

Parameters
datacommand message payload

Definition at line 93 of file CommandMessage.java.

◆ toString()

String org.openkilda.messaging.command.CommandMessage.toString ( )

Definition at line 101 of file CommandMessage.java.

Member Data Documentation

◆ data

CommandData org.openkilda.messaging.command.CommandMessage.data
protected

Data of the command message.

Definition at line 53 of file CommandMessage.java.


The documentation for this class was generated from the following file: