@Override protected Callable<ClockDifference,IOException> createCallable(Computer c) { Node n = c.getNode(); if(n==null) return null; return n.getClockDifferenceCallable(); }
/** * Estimates the clock difference with this agent. * * @return * always non-null. * @throws InterruptedException * if the operation is aborted. */ public ClockDifference getClockDifference() throws IOException, InterruptedException { VirtualChannel channel = getChannel(); if(channel==null) throw new IOException(getNodeName()+" is offline"); return channel.call(getClockDifferenceCallable()); }
@Override protected Callable<ClockDifference,IOException> createCallable(Computer c) { Node n = c.getNode(); if(n==null) return null; return n.getClockDifferenceCallable(); }
/** * Estimates the clock difference with this agent. * * @return * always non-null. * @throws InterruptedException * if the operation is aborted. */ public ClockDifference getClockDifference() throws IOException, InterruptedException { VirtualChannel channel = getChannel(); if(channel==null) throw new IOException(getNodeName()+" is offline"); return channel.call(getClockDifferenceCallable()); }