Skip to content

Commit

Permalink
loginbroker: Restore compatibility with pcells
Browse files Browse the repository at this point in the history
Target: trunk
Request: 2.12
Require-notes: yes
Require-book: no
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: https://rb.dcache.org/r/8001/
  • Loading branch information
gbehrmann committed Mar 23, 2015
1 parent e6feacf commit 80ddd56
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public class LoginBrokerInfo implements Serializable
private final String _protocolEngine;
private final String _root;
private final List<InetAddress> _addresses;
@Deprecated
private final String[] _hosts; // Kept for compatibility with pcells
private final int _port;
private final double _load;
private final long _update;
Expand All @@ -65,6 +67,10 @@ public LoginBrokerInfo(String cellName,
_port = port;
_load = load;
_update = updateTime;
_hosts = new String[addresses.size()];
for (int i = 0; i < addresses.size(); i++) {
_hosts[i] = addresses.get(i).getHostAddress();
}
checkArgument(!addresses.isEmpty());
}

Expand Down

0 comments on commit 80ddd56

Please sign in to comment.