Revision 6714
Added by ben leinfelder over 12 years ago
HazelcastService.java | ||
---|---|---|
227 | 227 |
public IMap<Identifier,SystemMetadata> getSystemMetadataMap() { |
228 | 228 |
return systemMetadata; |
229 | 229 |
} |
230 |
|
|
231 |
/** |
|
232 |
* When Metacat changes the underlying store, we need to refresh the |
|
233 |
* in-memory representation of it. |
|
234 |
* @param guid |
|
235 |
*/ |
|
236 |
public void refreshSystemMetadataEntry(String guid) { |
|
237 |
Identifier identifier = new Identifier(); |
|
238 |
identifier.setValue(guid); |
|
239 |
// force hazelcast to update system metadata in memory from the store |
|
240 |
HazelcastService.getInstance().getSystemMetadataMap().evict(identifier); |
|
241 |
|
|
242 |
} |
|
230 | 243 |
|
231 | 244 |
public ILock getLock(String identifier) { |
232 | 245 |
|
Also available in: Unified diff
evict the HazelCast SystemMetadata entry if we update the access control rules via Metacat's legacy API, otherwise stale SystemMetadata stays in memory instead of being looked up from the backing table store.