Example #1
0
    @Override
    protected void indicatingStart(ExtendedDataInputStream in) throws IOException {
      String group = in.readString();
      connectorDescription = in.readString();
      repositoryName = in.readString();

      failoverMonitor = failoverMonitorProvider.getFailoverMonitor(group);
      if (failoverMonitor == null) {
        throw new IllegalStateException("No monitor available for fail-over group " + group);
      }

      failoverMonitor.registerAgent(this);
      super.indicatingStart(in);
    }
  @Override
  protected final void indicating(ExtendedDataInputStream in) throws Exception {
    /*
     * Receive remoteAdapterUUID
     */
    this.remoteAdapterUUID = (String) in.readObject();

    LOGGER.info("indicating(), sender: " + this.remoteAdapterUUID);

    this.doIndicating(in);
  }
 @Override
 protected void indicating(ExtendedDataInputStream in) throws Exception {
   message = in.readString();
 }
 @Override
 protected Boolean confirming(ExtendedDataInputStream in) throws Exception {
   return in.readBoolean();
 }
Example #5
0
 @Override
 protected byte[] confirming(ExtendedDataInputStream in) throws Exception {
   return in.readByteArray();
 }