Examples of AddressGenerator


Examples of at.compax.bbsng.dataimport.app.source.address.AddressGenerator

    return new NameGenerator(firstNameGenerator(), lastNameGenerator());
  }

  @Bean
  public AddressGenerator addressGenerator() {
    return new AddressGenerator();
  }
View Full Code Here

Examples of org.jgroups.stack.AddressGenerator

            throw new IllegalArgumentException("\"site\" must be set");
        timer=getTransport().getTimer();
        JChannel channel=getProtocolStack().getChannel();
        if(channel == null)
            throw new IllegalStateException("channel must be set");
        channel.setAddressGenerator(new AddressGenerator() {
            public Address generateAddress() {
                return PayloadUUID.randomUUID(site);
            }
        });
    }
View Full Code Here

Examples of org.jgroups.stack.AddressGenerator

      // if we have a TopologyAwareConsistentHash, we need to set our own address generator in JGroups
      if (transportCfg.hasTopologyInfo()) {
         // We can do this only if the channel hasn't been started already
         if (startChannel) {
            ((JChannel) channel).setAddressGenerator(new AddressGenerator() {
               @Override
               public org.jgroups.Address generateAddress() {
                  return TopologyUUID.randomUUID(channel.getName(),
                        transportCfg.siteId(), transportCfg.rackId(),
                        transportCfg.machineId());
View Full Code Here

Examples of org.jgroups.stack.AddressGenerator

      channel.setOpt(Channel.LOCAL, false);

      // if we have a TopologyAwareConsistentHash, we need to set our own address generator in JGroups:
      if(configuration.hasTopologyInfo()) {
         ((JChannel)channel).setAddressGenerator(new AddressGenerator() {

            public org.jgroups.Address generateAddress() {
               return TopologyUUID.randomUUID(channel.getName(),
                     configuration.getSiteId(), configuration.getRackId(), configuration.getMachineId());
View Full Code Here

Examples of org.jgroups.stack.AddressGenerator

      // if we have a TopologyAwareConsistentHash, we need to set our own address generator in JGroups
      if (transportCfg.hasTopologyInfo()) {
         // We can do this only if the channel hasn't been started already
         if (startChannel) {
            ((JChannel) channel).setAddressGenerator(new AddressGenerator() {
               @Override
               public org.jgroups.Address generateAddress() {
                  return TopologyUUID.randomUUID(channel.getName(),
                        transportCfg.siteId(), transportCfg.rackId(),
                        transportCfg.machineId());
View Full Code Here

Examples of org.jgroups.stack.AddressGenerator

      channel.setOpt(Channel.LOCAL, false);

      // if we have a TopologyAwareConsistentHash, we need to set our own address generator in JGroups:
      if(configuration.hasTopologyInfo()) {
         ((JChannel)channel).setAddressGenerator(new AddressGenerator() {

            public org.jgroups.Address generateAddress() {
               return TopologyUUID.randomUUID(channel.getName(),
                     configuration.getSiteId(), configuration.getRackId(), configuration.getMachineId());
View Full Code Here

Examples of org.jgroups.stack.AddressGenerator

      // if we have a TopologyAwareConsistentHash, we need to set our own address generator in JGroups
      if (transportCfg.hasTopologyInfo()) {
         // We can do this only if the channel hasn't been started already
         if (connectChannel) {
            ((JChannel) channel).setAddressGenerator(new AddressGenerator() {
               @Override
               public org.jgroups.Address generateAddress() {
                  return TopologyUUID.randomUUID(channel.getName(),
                        transportCfg.siteId(), transportCfg.rackId(),
                        transportCfg.machineId());
View Full Code Here

Examples of org.jgroups.stack.AddressGenerator

            throw new IllegalArgumentException("\"site\" must be set");
        timer=getTransport().getTimer();
        JChannel channel=getProtocolStack().getChannel();
        if(channel == null)
            throw new IllegalStateException("channel must be set");
        channel.addAddressGenerator(new AddressGenerator() {
            public Address generateAddress() {
                return ExtendedUUID.randomUUID().put(SITE_ID, Util.stringToBytes(site));
            }
        });
    }
View Full Code Here

Examples of org.jgroups.stack.AddressGenerator

            log.warn(local_addr + ": " + FORWARD_TO_COORD.class.getSimpleName() + " protocol not found below; " +
                       "unable to re-submit messages to the new coordinator if the current coordinator crashes");

        if(enable_address_tagging) {
            JChannel ch=getProtocolStack().getChannel();
            ch.addAddressGenerator(new AddressGenerator() {
                public Address generateAddress() {
                    ExtendedUUID retval=ExtendedUUID.randomUUID();
                    if(can_become_site_master)
                        retval.setFlag(ExtendedUUID.can_become_site_master);
                    return retval;
View Full Code Here

Examples of org.jgroups.stack.AddressGenerator

            return;
        }
        try {
            for(RelayConfig.BridgeConfig bridge_config: bridge_configs) {
                Bridge bridge=new Bridge(bridge_config.createChannel(), bridge_config.getClusterName(), bridge_name,
                                         new AddressGenerator() {
                                             public Address generateAddress() {
                                                 UUID uuid=UUID.randomUUID();
                                                 return new SiteUUID(uuid, null, my_site_id);
                                             }
                                         });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.