@Override public void writeTo(DataOutput out) throws Exception { try { Util.writeObject(task, out); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOException("Exception encountered while writing execution runnable", e); } try { Util.writeObject(result, out); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOException("Exception encountered while writing execution result", e); } } @SuppressWarnings("unchecked")
@Override public void writeTo(DataOutput out) throws Exception { out.writeUTF(_classCallable.getName()); out.writeByte(_constructorNumber); out.writeByte(_args.length); for (Object arg : _args) { try { Util.writeObject(arg, out); } catch (Exception e) { throw new IOException("failed to write arg " + arg); } } }
@Override public void writeTo(DataOutput out) throws Exception { out.writeInt(values.size()); for (T value : values) { Util.writeObject(value, out); } }
@Override public void writeTo(DataOutput out) throws Exception { try { Util.writeObject(task, out); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOException("Exception encountered while writing execution runnable", e); } try { Util.writeObject(result, out); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOException("Exception encountered while writing execution result", e); } } @SuppressWarnings("unchecked")
@Override public void writeTo(DataOutput out) throws Exception { out.writeUTF(_classCallable.getName()); out.writeByte(_constructorNumber); out.writeByte(_args.length); for (Object arg : _args) { try { Util.writeObject(arg, out); } catch (Exception e) { throw new IOException("failed to write arg " + arg); } } }
@Override public void writeTo(DataOutput out) throws Exception { if (log.isDebugEnabled()) { log.debug("HashedDaoAuthToken writeTo()"); } Util.writeObject(this.getAuthValue(), out); }
@Override public void writeTo(DataOutput out) throws Exception { if (log.isDebugEnabled()) { log.debug("HashedDaoAuthToken writeTo()"); } Util.writeObject(this.getAuthValue(), out); }