Brooklyn

brooklyn.internal.storage
[Java] Interface DataGrid


public interface DataGrid

Method Summary
java.util.concurrent.ConcurrentMap getMap(java.lang.String id)

If a map already exists with this id, returns it; otherwise creates a new map stored in the datagrid.

void remove(java.lang.String id)

Deletes the map for this id, if it exists; otherwise a no-op.

void terminate()

Terminates the DataGrid.

 

Method Detail

getMap

public java.util.concurrent.ConcurrentMap getMap(java.lang.String id)
If a map already exists with this id, returns it; otherwise creates a new map stored in the datagrid.


remove

public void remove(java.lang.String id)
Deletes the map for this id, if it exists; otherwise a no-op.


terminate

public void terminate()
Terminates the DataGrid. If there is a real datagrid with multiple machines running, it doesn't mean that the datagrid is going to be terminated; it only means that all local resources of the datagrid are released.


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.