Class ServiceSingleNodeDeploymentResult
- java.lang.Object
-
- org.apache.ignite.internal.processors.service.ServiceSingleNodeDeploymentResult
-
- All Implemented Interfaces:
Serializable,Message
public class ServiceSingleNodeDeploymentResult extends Object implements Message
Service single node deployment result. Contains count of deployed service instances on single node and deployment errors if exist.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description ServiceSingleNodeDeploymentResult()Empty constructor for marshalling purposes.ServiceSingleNodeDeploymentResult(int cnt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount()voidcount(int cnt)shortdirectType()Gets message type.@NotNull Collection<byte[]>errors()voiderrors(Collection<byte[]> errors)bytefieldsCount()Gets fields count.voidonAckReceived()Method called when ack message received.booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.StringtoString()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Method Detail
-
count
public int count()
- Returns:
- Count of service's instances.
-
count
public void count(int cnt)
- Parameters:
cnt- Count of service's instances.
-
errors
@NotNull public @NotNull Collection<byte[]> errors()
- Returns:
- Serialized exceptions.
-
errors
public void errors(Collection<byte[]> errors)
- Parameters:
errors- Serialized exceptions.
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.
-
directType
public short directType()
Gets message type.- Specified by:
directTypein interfaceMessage- Returns:
- Message type.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Returns:
- Fields count.
-
onAckReceived
public void onAckReceived()
Method called when ack message received.- Specified by:
onAckReceivedin interfaceMessage
-
-