Packages

abstract class AbstractSharedCacheManager extends SharedCacheManager

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractSharedCacheManager
  2. SharedCacheManager
  3. NetworkObject
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AbstractSharedCacheManager(family: String, network: Network, omc: ObjectManagementChannel, store: PacketInjectableStore)

Abstract Value Members

  1. abstract def handleRequest(requestBundle: RequestPacketBundle): Unit
    Attributes
    protected
  2. abstract def remoteCacheOpenChecks(cacheID: Int, cacheType: Class[_]): Unit
    Attributes
    protected
  3. abstract def retrieveCacheContent(cacheID: Int, behavior: CacheSearchMethod): Option[CacheContent]

    Retrieves the cache content of a given cache identifier.

    Retrieves the cache content of a given cache identifier.

    cacheID

    the identifier of a cache content that needs to be retrieved.

    behavior

    the kind of behavior to adopt when retrieving a cache content

    returns

    Some(content) if the cache content was retrieved, None if no cache has been found.

    Attributes
    protected
    Exceptions thrown

    CacheOpenException if something went wrong during the cache content retrieval (can be affected by behavior parameter)

    See also

    CacheContent

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def attachToCache[A <: SharedCache](cacheID: Int, factory: SharedCacheFactory[A], method: CacheSearchMethod)(implicit arg0: ClassTag[A]): A
  6. def attachToCache[A <: SharedCache](cacheID: Int, behavior: CacheSearchMethod)(implicit arg0: ClassTag[A], factory: SharedCacheFactory[A]): A

    Retrieves a SharedCache hosted by this SharedCacheManager.

    Retrieves a SharedCache hosted by this SharedCacheManager.
    This method will create and synchronise the current content of the cache that is placed on the cacheID :
    If no cache is opened on the cacheID, it will simply be created and have an empty content.
    If the cache was already opened by another engine, the cache instance will be created and its content will be synchronised.
    The cache will then be stored locally if it was not present in it.
    If the cache was already created and registered locally, the factory will not be called and the cached instance will then be returned.
    Note: can't be sure that every cache instances with the same cacheID are of the same type.

    cacheID

    the cache identifier

    behavior

    the kind of behavior to adopt when creating a cache

    factory

    the factory that will create the cache instance

    returns

    the cache instance.

    Definition Classes
    SharedCacheManager
    Exceptions thrown

    CacheNotAcceptedException if the cache is already created but the cache's does not equals to the given one.

    See also

    SharedCache

    SharedCacheFactory

    CacheSearchMethod

  7. def attachToCache[A <: SharedCache](cacheID: Int)(implicit arg0: ClassTag[A], factory: SharedCacheFactory[A]): A
    Definition Classes
    SharedCacheManager
  8. val channel: SimpleRequestPacketChannel
    Attributes
    protected
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  10. val currentIdentifier: String
    Attributes
    protected
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. val family: String

    Each Cache manager have a family string, it's in fact the identifier of the cache manager.

    Each Cache manager have a family string, it's in fact the identifier of the cache manager. For example, in the Network, each fr.linkit.api.gnom.network.Engine have a SharedCacheManager instance where the family string value is equals to the engine's identifier.

    Definition Classes
    AbstractSharedCacheManagerSharedCacheManager
  14. def getCacheInStore[A <: SharedCache](cacheID: Int)(implicit arg0: ClassTag[A]): A

    Get cache that is already opened and registered in the local cache.

    Get cache that is already opened and registered in the local cache. The cache content will not be retrieved, but if no cache is found in the local cache, this cache manager will not try to retrieve it on the network.

    cacheID

    the cache identifier

    returns

    the cache instance.

    Definition Classes
    AbstractSharedCacheManagerSharedCacheManager
    Exceptions thrown

    NoSuchCacheException if no cache was found locally.

  15. def getCacheTrafficNode(cacheID: Int): TrafficNode[TrafficObject[TrafficReference]]
  16. def getCachesLinker: InitialisableNetworkObjectLinker[SharedCacheReference] with TrafficInterestedNPH
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. val network: Network

    The network that hosts this cache

    The network that hosts this cache

    Definition Classes
    AbstractSharedCacheManagerSharedCacheManager
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  24. def prepareScope(factory: ScopeFactory[_ <: ChannelScope]): ChannelScope
    Attributes
    protected
  25. val reference: SharedCacheManagerReference

    The reference of this Network Object.

    The reference of this Network Object.

    Definition Classes
    AbstractSharedCacheManagerNetworkObject
    See also

    NetworkObjectReference

  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. object LocalCachesStore
    Attributes
    protected
  32. object ManagerCachesLinker extends AbstractNetworkPresenceHandler[SharedCacheReference] with InitialisableNetworkObjectLinker[SharedCacheReference] with TrafficInterestedNPH
    Attributes
    protected

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from SharedCacheManager

Inherited from AnyRef

Inherited from Any

Ungrouped