@SuppressWarnings("unchecked") @Override public void readFrom(DataInput in) throws Exception { // We can't use Util.readObject since it's size is limited to 2^15-1 // The runner could be larger than that possibly try { task = (Runnable)Util.readObject(in); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOException("Exception encountered while reading execution runnable", e); } try { result = (T)Util.readObject(in); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOException("Exception encountered while reading execution result", e); } } }
@SuppressWarnings("unchecked") @Override public void readFrom(DataInput in) throws Exception { try { String classname=in.readUTF(); _classCallable=ClassConfigurator.get(classname); } catch (ClassNotFoundException e) { throw new IOException("failed to read class from classname", e); } _constructorNumber = in.readByte(); short numberOfArgs = in.readByte(); _args = new Object[numberOfArgs]; for (int i = 0; i < numberOfArgs; ++i) { try { _args[i] = Util.readObject(in); } catch (Exception e) { throw new IOException("failed to read arg", e); } } }
@Override public void readFrom(DataInput in) throws Exception { int size = in.readInt(); T[] buffer = (T[]) new Object[size]; for (int i = 0; i < size; i++) { buffer[i] = (T) Util.readObject(in); } values = new CopyOnWriteArrayList<>(buffer); }
@SuppressWarnings("unchecked") @Override public void readFrom(DataInput in) throws Exception { // We can't use Util.readObject since it's size is limited to 2^15-1 // The runner could be larger than that possibly try { task = (Runnable)Util.readObject(in); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOException("Exception encountered while reading execution runnable", e); } try { result = (T)Util.readObject(in); } catch (IOException e) { throw e; } catch (Exception e) { throw new IOException("Exception encountered while reading execution result", e); } } }
@SuppressWarnings("unchecked") @Override public void readFrom(DataInput in) throws Exception { try { String classname=in.readUTF(); _classCallable=ClassConfigurator.get(classname); } catch (ClassNotFoundException e) { throw new IOException("failed to read class from classname", e); } _constructorNumber = in.readByte(); short numberOfArgs = in.readByte(); _args = new Object[numberOfArgs]; for (int i = 0; i < numberOfArgs; ++i) { try { _args[i] = Util.readObject(in); } catch (Exception e) { throw new IOException("failed to read arg", e); } } }
@Override public void readFrom(DataInput in) throws Exception { if (log.isDebugEnabled()) { log.debug("HashedDaoAuthToken readFrom()"); } this.authValue = (String) Util.readObject(in); } }
@Override public void readFrom(DataInput in) throws Exception { if (log.isDebugEnabled()) { log.debug("HashedDaoAuthToken readFrom()"); } this.authValue = (String) Util.readObject(in); } }