Package com.attivio.sdk.server.global
Interface GlobalDataStructureFactory
-
@Deprecated public interface GlobalDataStructureFactory
Deprecated.This API should no longer be used and is scheduled for removal in a future releaseFactory for creating new or attaching to existing global data structures that are accessible from all AIE Nodes. An instance of this factory will be provided by an AIE Node during initialization to components that implementGlobalDataStructureFactoryAware
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.io.Closeable
addGlobalMapListener(java.lang.String name, GlobalMapListener listener)
Deprecated.GlobalLock
createGlobalLock(java.lang.String name, BreakableLockListener lockListener)
Deprecated.Creates a globalLock
with the givenname
if it does not yet exist.GlobalMap
createGlobalMap(java.lang.String name)
Deprecated.Creates a persistentglobal map
with the givenname
if it does not yet exist.GlobalMembership
createGlobalMembership(java.lang.String name)
Deprecated.Creates aglobal membership
with the givenname
if it does not yet exist.GlobalSet
createGlobalSet(java.lang.String name, MembershipListener listener)
Deprecated.Creates aglobal set
with the givenname
if it does not yet exist.GlobalVariable
createGlobalVariable(java.lang.String name)
Deprecated.Creates aglobal variable
with the givenname
if it does not yet exist.
-
-
-
Method Detail
-
createGlobalSet
GlobalSet createGlobalSet(java.lang.String name, MembershipListener listener) throws AttivioException
Deprecated.Creates aglobal set
with the givenname
if it does not yet exist. If it already exists, this method returns an instance ofGlobalSet
that attaches to that existingglobal set
. Callers must supply aMembershipListener
which can receive and process callbacks when elements are added or removed from theglobal set
- Parameters:
name
- the name of theglobal set
to create or attach tolistener
- aMembershipListener
which can receive and process callbacks when elements are added to or removed from theglobal set
- Returns:
- an instance of
GlobalSet
representing either the newly created or pre-existingglobal set
withname
- Throws:
AttivioException
- if for some reason aglobal set
withname
cannot be created or attached to
-
createGlobalVariable
GlobalVariable createGlobalVariable(java.lang.String name) throws AttivioException
Deprecated.Creates aglobal variable
with the givenname
if it does not yet exist. If it already exists, this method returns an instance ofGlobalVariable
that attaches to that existingglobal variable
.- Parameters:
name
- the name of theglobal variable
to create or attach to- Returns:
- an instance of
GlobalVariable
representing either the newly created or pre-existingglobal variable
withname
- Throws:
AttivioException
- if for some reason aglobal variable
withname
cannot be created or attached to
-
createGlobalMembership
GlobalMembership createGlobalMembership(java.lang.String name) throws AttivioException
Deprecated.Creates aglobal membership
with the givenname
if it does not yet exist. If it already exists, this method returns an instance ofGlobalMembership
that attaches to that existingglobal membership
.- Parameters:
name
- The name of theglobal membership
to create or attach to- Returns:
- an instance of
GlobalMembership
representing either the newly created or pre-existingglobal membership
withname
- Throws:
AttivioException
- if for some reason aglobal membership
withname
cannot be created or attached to
-
createGlobalLock
GlobalLock createGlobalLock(java.lang.String name, BreakableLockListener lockListener) throws AttivioException
Deprecated.Creates a globalLock
with the givenname
if it does not yet exist. If it already exists, this method returns an instance ofLock
that attaches to that existing globalLock
.- Parameters:
name
- the name of the globalLock
to create or attach tolockListener
- aBreakableLockListener
which can receive and process callbacks when the globalLock
is broken due to network or communication issues- Returns:
- an instance of
java.util.concurrent.locks.Lock.GlobalLock
representing either the newly created or pre-existing globalLock
withname
- Throws:
AttivioException
- if for some reason a globalLock
withname
cannot be created or attached to
-
createGlobalMap
GlobalMap createGlobalMap(java.lang.String name) throws AttivioException
Deprecated.Creates a persistentglobal map
with the givenname
if it does not yet exist. If it already exists, this method returns an instance ofGlobalMap
that attaches to that existing persistentglobal map
.- Parameters:
name
- the name of the persistentglobal map
to create or attach to- Returns:
- an instance of
GlobalMap
representing either the newly created or pre-existing persistentglobal map
withname
- Throws:
AttivioException
- if for some reason a persistentglobal map
withname
cannot be created or attached to- See Also:
addGlobalMapListener(String, GlobalMapListener)
-
addGlobalMapListener
java.io.Closeable addGlobalMapListener(java.lang.String name, GlobalMapListener listener) throws AttivioException
Deprecated.Registers aGlobalMapListener
to listen for changes to a persistentglobal map
withname
The returned
Closeable
should beclosed
when updates are no longer needed.- Parameters:
name
- the name of the persistentglobal map
to register a listener forlistener
- theGlobalMapListener
to register to listen for changes on the persistentglobal map
withname
- Returns:
- an instance of
Closeable
that the caller should callclose()
on when updates are no longer needed - Throws:
AttivioException
- if for some reasonlistener
cannot be successfully registered to listen for changes on the persistentglobal map
withname
- See Also:
createGlobalMap(String)
-
-