@Service public class ClusterMessagingProtocol extends Object implements DatabaseProtocolService, net.kuujo.copycat.spi.protocol.Protocol<net.kuujo.copycat.cluster.TcpMember>
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.cluster.messaging.ClusterCommunicationService |
clusterCommunicator |
protected org.onosproject.cluster.ClusterService |
clusterService |
static org.onosproject.store.cluster.messaging.MessageSubject |
COPYCAT_PING |
static org.onosproject.store.cluster.messaging.MessageSubject |
COPYCAT_POLL |
static org.onosproject.store.cluster.messaging.MessageSubject |
COPYCAT_SUBMIT |
static org.onosproject.store.cluster.messaging.MessageSubject |
COPYCAT_SYNC |
static org.onosproject.store.serializers.StoreSerializer |
DB_SERIALIZER |
| Constructor and Description |
|---|
ClusterMessagingProtocol() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
net.kuujo.copycat.spi.protocol.ProtocolClient |
createClient(net.kuujo.copycat.cluster.TcpMember member) |
net.kuujo.copycat.spi.protocol.ProtocolServer |
createServer(net.kuujo.copycat.cluster.TcpMember member) |
void |
deactivate() |
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator
public static final org.onosproject.store.cluster.messaging.MessageSubject COPYCAT_PING
public static final org.onosproject.store.cluster.messaging.MessageSubject COPYCAT_SYNC
public static final org.onosproject.store.cluster.messaging.MessageSubject COPYCAT_POLL
public static final org.onosproject.store.cluster.messaging.MessageSubject COPYCAT_SUBMIT
public static final org.onosproject.store.serializers.StoreSerializer DB_SERIALIZER
@Activate public void activate()
@Deactivate public void deactivate()
public net.kuujo.copycat.spi.protocol.ProtocolServer createServer(net.kuujo.copycat.cluster.TcpMember member)
createServer in interface net.kuujo.copycat.spi.protocol.Protocol<net.kuujo.copycat.cluster.TcpMember>public net.kuujo.copycat.spi.protocol.ProtocolClient createClient(net.kuujo.copycat.cluster.TcpMember member)
createClient in interface net.kuujo.copycat.spi.protocol.Protocol<net.kuujo.copycat.cluster.TcpMember>Copyright © 2014. All rights reserved.