Package com.attivio.sdk.server.global
Interface GlobalDataStructureFactory
-
@Deprecated public interface GlobalDataStructureFactoryDeprecated.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.CloseableaddGlobalMapListener(java.lang.String name, GlobalMapListener listener)Deprecated.GlobalLockcreateGlobalLock(java.lang.String name, BreakableLockListener lockListener)Deprecated.Creates a globalLockwith the givennameif it does not yet exist.GlobalMapcreateGlobalMap(java.lang.String name)Deprecated.Creates a persistentglobal mapwith the givennameif it does not yet exist.GlobalMembershipcreateGlobalMembership(java.lang.String name)Deprecated.Creates aglobal membershipwith the givennameif it does not yet exist.GlobalSetcreateGlobalSet(java.lang.String name, MembershipListener listener)Deprecated.Creates aglobal setwith the givennameif it does not yet exist.GlobalVariablecreateGlobalVariable(java.lang.String name)Deprecated.Creates aglobal variablewith the givennameif it does not yet exist.
-
-
-
Method Detail
-
createGlobalSet
GlobalSet createGlobalSet(java.lang.String name, MembershipListener listener) throws AttivioException
Deprecated.Creates aglobal setwith the givennameif it does not yet exist. If it already exists, this method returns an instance ofGlobalSetthat attaches to that existingglobal set. Callers must supply aMembershipListenerwhich can receive and process callbacks when elements are added or removed from theglobal set- Parameters:
name- the name of theglobal setto create or attach tolistener- aMembershipListenerwhich can receive and process callbacks when elements are added to or removed from theglobal set- Returns:
- an instance of
GlobalSetrepresenting either the newly created or pre-existingglobal setwithname - Throws:
AttivioException- if for some reason aglobal setwithnamecannot be created or attached to
-
createGlobalVariable
GlobalVariable createGlobalVariable(java.lang.String name) throws AttivioException
Deprecated.Creates aglobal variablewith the givennameif it does not yet exist. If it already exists, this method returns an instance ofGlobalVariablethat attaches to that existingglobal variable.- Parameters:
name- the name of theglobal variableto create or attach to- Returns:
- an instance of
GlobalVariablerepresenting either the newly created or pre-existingglobal variablewithname - Throws:
AttivioException- if for some reason aglobal variablewithnamecannot be created or attached to
-
createGlobalMembership
GlobalMembership createGlobalMembership(java.lang.String name) throws AttivioException
Deprecated.Creates aglobal membershipwith the givennameif it does not yet exist. If it already exists, this method returns an instance ofGlobalMembershipthat attaches to that existingglobal membership.- Parameters:
name- The name of theglobal membershipto create or attach to- Returns:
- an instance of
GlobalMembershiprepresenting either the newly created or pre-existingglobal membershipwithname - Throws:
AttivioException- if for some reason aglobal membershipwithnamecannot be created or attached to
-
createGlobalLock
GlobalLock createGlobalLock(java.lang.String name, BreakableLockListener lockListener) throws AttivioException
Deprecated.Creates a globalLockwith the givennameif it does not yet exist. If it already exists, this method returns an instance ofLockthat attaches to that existing globalLock.- Parameters:
name- the name of the globalLockto create or attach tolockListener- aBreakableLockListenerwhich can receive and process callbacks when the globalLockis broken due to network or communication issues- Returns:
- an instance of
java.util.concurrent.locks.Lock.GlobalLockrepresenting either the newly created or pre-existing globalLockwithname - Throws:
AttivioException- if for some reason a globalLockwithnamecannot be created or attached to
-
createGlobalMap
GlobalMap createGlobalMap(java.lang.String name) throws AttivioException
Deprecated.Creates a persistentglobal mapwith the givennameif it does not yet exist. If it already exists, this method returns an instance ofGlobalMapthat attaches to that existing persistentglobal map.- Parameters:
name- the name of the persistentglobal mapto create or attach to- Returns:
- an instance of
GlobalMaprepresenting either the newly created or pre-existing persistentglobal mapwithname - Throws:
AttivioException- if for some reason a persistentglobal mapwithnamecannot be created or attached to- See Also:
addGlobalMapListener(String, GlobalMapListener)
-
addGlobalMapListener
java.io.Closeable addGlobalMapListener(java.lang.String name, GlobalMapListener listener) throws AttivioExceptionDeprecated.Registers aGlobalMapListenerto listen for changes to a persistentglobal mapwithnameThe returned
Closeableshould beclosedwhen updates are no longer needed.- Parameters:
name- the name of the persistentglobal mapto register a listener forlistener- theGlobalMapListenerto register to listen for changes on the persistentglobal mapwithname- Returns:
- an instance of
Closeablethat the caller should callclose()on when updates are no longer needed - Throws:
AttivioException- if for some reasonlistenercannot be successfully registered to listen for changes on the persistentglobal mapwithname- See Also:
createGlobalMap(String)
-
-