public abstract class AbstractHazelcastStore<E extends org.onosproject.event.Event,D extends org.onosproject.store.StoreDelegate<E>>
extends org.onosproject.store.AbstractStore<E,D>
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractHazelcastStore.RemoteCacheEventHandler<K,V>
An IMap entry listener, which reflects each remote event to the cache.
|
class |
AbstractHazelcastStore.RemoteEventHandler<K,V>
Distributed object remote event entry listener.
|
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
protected org.onosproject.store.serializers.StoreSerializer |
serializer |
protected StoreService |
storeService |
protected com.hazelcast.core.HazelcastInstance |
theInstance |
| Constructor and Description |
|---|
AbstractHazelcastStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
protected <T> T |
deserialize(byte[] bytes)
Deserializes the specified object using the backing store service.
|
protected byte[] |
serialize(Object obj)
Serializes the specified object using the backing store service.
|
protected final org.slf4j.Logger log
@Reference(cardinality=MANDATORY_UNARY) protected StoreService storeService
protected org.onosproject.store.serializers.StoreSerializer serializer
protected com.hazelcast.core.HazelcastInstance theInstance
@Activate public void activate()
protected byte[] serialize(Object obj)
obj - object to be serializedprotected <T> T deserialize(byte[] bytes)
T - type of objectbytes - bytes to be deserializedCopyright © 2015. All rights reserved.