use of org.dcache.vehicles.XrootdDoorAdressInfoMessage in project dcache by dCache.
the class XrootdTransferService method sendAddressToDoor.
/**
* Sends our address to the door. Copied from the old xrootd mover.
*/
@Override
protected void sendAddressToDoor(NettyMover<XrootdProtocolInfo> mover, int port) throws SocketException, CacheException {
XrootdProtocolInfo protocolInfo = mover.getProtocolInfo();
InetAddress localIP = NetworkUtils.getLocalAddress(protocolInfo.getSocketAddress().getAddress());
CellPath cellpath = protocolInfo.getXrootdDoorCellPath();
XrootdDoorAdressInfoMessage doorMsg = new XrootdDoorAdressInfoMessage(protocolInfo.getXrootdFileHandle(), new InetSocketAddress(localIP, port));
doorStub.notify(cellpath, doorMsg);
LOGGER.debug("sending redirect {} to Xrootd-door {}", localIP, cellpath);
}
Aggregations