org.ow2.carol.cmi.smart.api
Interface Message

All Known Implementing Classes:
ClassAnswer, ClassNotFound, ClassRequest, FactoryNameAnswer, FactoryNameRequest, ProviderURLsAnswer, ProviderURLsRequest, ResourceAnswer, ResourceNotFound, ResourceRequest

public interface Message

All messages needs to implement this interface.

Author:
The new CMI team, Florent Benoit

Field Summary
static int HEADER_SIZE
          Header.
static int INT_BYTE_SIZE
          Size to store an int in bytes.
 
Method Summary
 java.nio.ByteBuffer getMessage()
          Gets a message to send.
 byte getOperationCode()
          Gets the OperationCode of this message.
 

Field Detail

INT_BYTE_SIZE

static final int INT_BYTE_SIZE
Size to store an int in bytes.

See Also:
Constant Field Values

HEADER_SIZE

static final int HEADER_SIZE
Header.

See Also:
Constant Field Values
Method Detail

getOperationCode

byte getOperationCode()
Gets the OperationCode of this message.

Returns:
the operation code.

getMessage

java.nio.ByteBuffer getMessage()
Gets a message to send.

Returns:
the bytebuffer to send


Copyright © 2008 OW2 Consortium. All Rights Reserved.