-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move check of number of pool groups returned from server to client
Per https://rb.dcache.org/r/14316/#comment29381 N.B. The MigrationModule itself appears to have no access to the `poolList` upon job completion to verify its parameters, so the size check on the map is currently implemented in `PoolListByPoolGroupOfPool.success()`. Please advise if this is incorrect.
- Loading branch information
1 parent
8f6e24a
commit eafa09c
Showing
6 changed files
with
88 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 27 additions & 2 deletions
29
...les/src/main/java/diskCacheV111/vehicles/PoolManagerGetPoolsByPoolGroupOfPoolMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,44 @@ | ||
package diskCacheV111.vehicles; | ||
|
||
import java.util.Collection; | ||
import java.util.Collections; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import static java.util.Objects.requireNonNull; | ||
|
||
public class PoolManagerGetPoolsByPoolGroupOfPoolMessage | ||
extends PoolManagerGetPoolsMessage { | ||
extends Message { | ||
|
||
private static final long serialVersionUID = 4423670920097918847L; | ||
private static final long serialVersionUID = -4022990392097610436L; | ||
|
||
private final String _poolName; | ||
private Map<String, List<PoolManagerPoolInformation>> _poolsMap; | ||
private Collection<String> _offlinePools; | ||
|
||
public PoolManagerGetPoolsByPoolGroupOfPoolMessage(String poolName) { | ||
super(true); | ||
_poolName = requireNonNull(poolName); | ||
} | ||
|
||
public String getPoolName() { | ||
return _poolName; | ||
} | ||
|
||
public void setPoolsMap(Map<String, List<PoolManagerPoolInformation>> poolsMap) { | ||
_poolsMap = new HashMap<>(poolsMap); | ||
} | ||
|
||
public void setOfflinePools(Collection<String> _offlinePools) { | ||
this._offlinePools = _offlinePools; | ||
} | ||
|
||
public Map<String, List<PoolManagerPoolInformation>> getPoolsMap() { | ||
return _poolsMap; | ||
} | ||
|
||
public Collection<String> getOfflinePools() { | ||
return (_offlinePools == null) ? Collections.emptyList() : _offlinePools; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters