/** * Returns a snapshot of keys for the giver ServerTCMap * * @param map ServerTCMap * @return set Set return snapshot of keys */ @Override public Set keySet(final TCServerMap map) throws AbortedOperationException { final TCObject tcObject = map.__tc_managed(); if (tcObject == null) { throw new UnsupportedOperationException("keySet is not supported in a non-shared ServerMap"); } final ObjectID mapID = tcObject.getObjectID(); if (!createdOnServer) { return Collections.emptySet(); } else { return this.serverMapManager.getAllKeys(mapID); } }
/** * Returns a snapshot of keys for the giver ServerTCMap * * @param map ServerTCMap * @return set Set return snapshot of keys */ @Override public Set keySet(final TCServerMap map) throws AbortedOperationException { final TCObject tcObject = map.__tc_managed(); if (tcObject == null) { throw new UnsupportedOperationException("keySet is not supported in a non-shared ServerMap"); } final ObjectID mapID = tcObject.getObjectID(); if (!createdOnServer) { return Collections.emptySet(); } else { return this.serverMapManager.getAllKeys(mapID); } }
/** * Returns a snapshot of keys for the giver ServerTCMap * * @param map ServerTCMap * @return set Set return snapshot of keys */ @Override public Set keySet(final TCServerMap map) throws AbortedOperationException { final TCObject tcObject = map.__tc_managed(); if (tcObject == null) { throw new UnsupportedOperationException("keySet is not supported in a non-shared ServerMap"); } final ObjectID mapID = tcObject.getObjectID(); if (!createdOnServer) { return Collections.emptySet(); } else { return this.serverMapManager.getAllKeys(mapID); } }
/** * Returns total size of an array of ServerTCMap. * <P> * The list of TCServerMaps passed in need not contain this TCServerMap, this is only a pass thru method that calls * getAllSize on the RemoteServerMapManager and is provided as a convenient way of batching the size calls at the * higher level. * * @param maps ServerTCMap[] * @return long for size of map. * @throws AbortedOperationException */ @Override public long getAllSize(final TCServerMap[] maps) throws AbortedOperationException { final ObjectID[] mapIDs = new ObjectID[maps.length]; for (int i = 0; i < maps.length; ++i) { TCServerMap map = maps[i]; final TCObject tcObject = map.__tc_managed(); if (tcObject == null) { throw new UnsupportedOperationException( "getSize is not supported in a non-shared ServerMap"); } mapIDs[i] = tcObject.getObjectID(); } if (!createdOnServer) { return 0; } else { return this.serverMapManager.getAllSize(mapIDs); } }
@Override public <K> Map<K, Set<NodeID>> getNodesWithKeys(final TCServerMap tcMap, final Collection<? extends K> keys) { waitUntilRunning(); final ObjectID mapObjectID = tcMap.__tc_managed().getObjectID(); return getNodesWithKeys(keys, mapObjectID); }
@Override public <K> Map<K, Set<NodeID>> getNodesWithKeys(final TCServerMap tcMap, final Collection<? extends K> keys) { waitUntilRunning(); final ObjectID mapObjectID = tcMap.__tc_managed().getObjectID(); return getNodesWithKeys(keys, mapObjectID); }
@Override public <K> Map<K, Set<NodeID>> getNodesWithKeys(final TCServerMap tcMap, final Collection<? extends K> keys) { waitUntilRunning(); final ObjectID mapObjectID = tcMap.__tc_managed().getObjectID(); return getNodesWithKeys(keys, mapObjectID); }
/** * Returns total size of an array of ServerTCMap. * <P> * The list of TCServerMaps passed in need not contain this TCServerMap, this is only a pass thru method that calls * getAllSize on the RemoteServerMapManager and is provided as a convenient way of batching the size calls at the * higher level. * * @param maps ServerTCMap[] * @return long for size of map. * @throws AbortedOperationException */ @Override public long getAllSize(final TCServerMap[] maps) throws AbortedOperationException { final ObjectID[] mapIDs = new ObjectID[maps.length]; for (int i = 0; i < maps.length; ++i) { TCServerMap map = maps[i]; final TCObject tcObject = map.__tc_managed(); if (tcObject == null) { throw new UnsupportedOperationException( "getSize is not supported in a non-shared ServerMap"); } mapIDs[i] = tcObject.getObjectID(); } if (!createdOnServer) { return 0; } else { return this.serverMapManager.getAllSize(mapIDs); } }
/** * Returns total size of an array of ServerTCMap. * <P> * The list of TCServerMaps passed in need not contain this TCServerMap, this is only a pass thru method that calls * getAllSize on the RemoteServerMapManager and is provided as a convenient way of batching the size calls at the * higher level. * * @param maps ServerTCMap[] * @return long for size of map. * @throws AbortedOperationException */ @Override public long getAllSize(final TCServerMap[] maps) throws AbortedOperationException { final ObjectID[] mapIDs = new ObjectID[maps.length]; for (int i = 0; i < maps.length; ++i) { TCServerMap map = maps[i]; final TCObject tcObject = map.__tc_managed(); if (tcObject == null) { throw new UnsupportedOperationException( "getSize is not supported in a non-shared ServerMap"); } mapIDs[i] = tcObject.getObjectID(); } if (!createdOnServer) { return 0; } else { return this.serverMapManager.getAllSize(mapIDs); } }
@Override public <K> Map<K, Set<NodeID>> getNodesWithKeys(final TCServerMap tcMap, final Collection<? extends K> keys) { final ObjectID mapObjectID = tcMap.__tc_managed().getObjectID(); GroupID groupID = getGroupID(mapObjectID); return getClusterMetaDataManager(groupID).getNodesWithKeys(tcMap, keys); }
@Override public <K> Map<K, Set<NodeID>> getNodesWithKeys(final TCServerMap tcMap, final Collection<? extends K> keys) { final ObjectID mapObjectID = tcMap.__tc_managed().getObjectID(); GroupID groupID = getGroupID(mapObjectID); return getClusterMetaDataManager(groupID).getNodesWithKeys(tcMap, keys); }
private Object getValueForKeyFromServer(final TCServerMap map, final Object key, final boolean retry) throws AbortedOperationException { final TCObject tcObject = map.__tc_managed(); if (tcObject == null) { throw new UnsupportedOperationException(
private Object getValueForKeyFromServer(final TCServerMap map, final Object key, final boolean retry, final boolean versionRequired) throws AbortedOperationException { final TCObject tcObject = map.__tc_managed(); if (tcObject == null) { throw new UnsupportedOperationException( "getValueForKeyInMap is not supported in a non-shared ServerMap"); }
private Object getValueForKeyFromServer(final TCServerMap map, final Object key, final boolean retry, final boolean versionRequired) throws AbortedOperationException { final TCObject tcObject = map.__tc_managed(); if (tcObject == null) { throw new UnsupportedOperationException( "getValueForKeyInMap is not supported in a non-shared ServerMap"); }