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 void indicating(ExtendedDataInputStream in) throws Exception {
   message = in.readString();
 }