|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.softamis.net.exchange.support.AbstractCommunicationProtocol<org.jgroups.Message,K,V,java.lang.String>
org.softamis.net.exchange.jgroups.JGCommunicationProtocol<K,V>
K - type of keys used to identify registry itemsV - type of values stored in the registrypublic class JGCommunicationProtocol<K extends java.io.Serializable,V extends java.io.Serializable>
Default implementation of CommunicationProtocol if
JGroups reliable multicast is used as underlying network transport protocol.
RegistryEventProcessor| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_DATAGRAM_SIGNATURE
Default signature in sent message |
protected static org.apache.commons.logging.Log |
fLog
|
| Fields inherited from class org.softamis.net.exchange.support.AbstractCommunicationProtocol |
|---|
DEFAULT_COMPRESSION_MODE, fDatagramSignature, fUseCompression, MSG_EXCEPTION_CLOSING_STREAM |
| Constructor Summary | |
|---|---|
JGCommunicationProtocol()
|
|
| Method Summary | |
|---|---|
protected MessageContent<K,V,java.lang.String> |
createMessageContent(byte aType,
java.lang.String aTo,
ItemEntry<K,V> aEntry)
Creates MessageContent which will be converted into form used by underlying network
communication based on provided parameters. |
protected org.jgroups.Message |
doCreateDataToSend(MessageContent<K,V,java.lang.String> aContent)
Converts given MessageContent to form used by underlying network communication |
protected MessageContent<K,V,java.lang.String> |
getDatagramFromReceivedData(org.jgroups.Message aReceivedData)
Constructs MessageContent from underlying network data. |
protected boolean |
isNotOwnDatagaram(MessageContent<K,V,java.lang.String> aDatagram)
Determines whether notification was obtained from external source |
| Methods inherited from class org.softamis.net.exchange.support.AbstractCommunicationProtocol |
|---|
closeStream, closeStream, createDataToSend, createMessageContentToRead, fillEntryByMessageContent, fillItemEntry, getDatagram, getDatagramSignature, getDataToSend, isUseCompression, setDatagramSignature, setUseCompression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log fLog
public static final java.lang.String DEFAULT_DATAGRAM_SIGNATURE
| Constructor Detail |
|---|
public JGCommunicationProtocol()
| Method Detail |
|---|
protected MessageContent<K,V,java.lang.String> createMessageContent(byte aType,
java.lang.String aTo,
ItemEntry<K,V> aEntry)
AbstractCommunicationProtocolMessageContent which will be converted into form used by underlying network
communication based on provided parameters.
createMessageContent in class AbstractCommunicationProtocol<org.jgroups.Message,K extends java.io.Serializable,V extends java.io.Serializable,java.lang.String>aType - type of notificationaTo - destination of notificationaEntry - Item data
protected org.jgroups.Message doCreateDataToSend(MessageContent<K,V,java.lang.String> aContent)
AbstractCommunicationProtocolMessageContent to form used by underlying network communication
doCreateDataToSend in class AbstractCommunicationProtocol<org.jgroups.Message,K extends java.io.Serializable,V extends java.io.Serializable,java.lang.String>aContent - given message content
CommunicationHelperprotected boolean isNotOwnDatagaram(MessageContent<K,V,java.lang.String> aDatagram)
AbstractCommunicationProtocol
isNotOwnDatagaram in class AbstractCommunicationProtocol<org.jgroups.Message,K extends java.io.Serializable,V extends java.io.Serializable,java.lang.String>aDatagram - data to receive
protected MessageContent<K,V,java.lang.String> getDatagramFromReceivedData(org.jgroups.Message aReceivedData)
AbstractCommunicationProtocolMessageContent from underlying network data.
getDatagramFromReceivedData in class AbstractCommunicationProtocol<org.jgroups.Message,K extends java.io.Serializable,V extends java.io.Serializable,java.lang.String>aReceivedData - raw data obtained in network notification
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||