Esempio n. 1
0
 @Override
 public String toString() {
   final StringBuilder sb =
       new StringBuilder("GatherSender:")
           .append(Utils.simpleName(groupName))
           .append(":")
           .append(Utils.simpleName(operName))
           .append(":")
           .append(version);
   return sb.toString();
 }
Esempio n. 2
0
 @Inject
 public GatherSender(
     @Parameter(CommunicationGroupName.class) final String groupName,
     @Parameter(OperatorName.class) final String operName,
     @Parameter(TaskConfigurationOptions.Identifier.class) final String selfId,
     @Parameter(DataCodec.class) final Codec<T> dataCodec,
     @Parameter(DriverIdentifier.class) final String driverId,
     @Parameter(TaskVersion.class) final int version,
     final CommGroupNetworkHandler commGroupNetworkHandler,
     final NetworkService<GroupCommunicationMessage> netService,
     final CommunicationGroupServiceClient commGroupClient) {
   LOG.finest(operName + "has CommGroupHandler-" + commGroupNetworkHandler.toString());
   this.version = version;
   this.groupName = Utils.getClass(groupName);
   this.operName = Utils.getClass(operName);
   this.dataCodec = dataCodec;
   this.netService = netService;
   this.topology =
       new OperatorTopologyImpl(
           this.groupName, this.operName, selfId, driverId, new Sender(netService), version);
   this.commGroupClient = commGroupClient;
   commGroupNetworkHandler.register(this.operName, this);
 }