Examples of register()


Examples of com.alibaba.dubbo.registry.Registry.register()

     * @return
     */
    private Registry doRegister(final Invoker<?> originInvoker){
        final Registry registry = getRegistry(originInvoker);
        final URL registedProviderUrl = getRegistedProviderUrl(originInvoker);
        registry.register(registedProviderUrl);
        // 订阅override数据
        // FIXME 提供者订阅时,会影响同一JVM即暴露服务,又引用同一服务的的场景,因为subscribed以服务名为缓存的key,导致订阅信息覆盖。
        registry.subscribe(registedProviderUrl.setProtocol(Constants.PROVIDER_PROTOCOL)
                .addParameters(Constants.CATEGORY_KEY, Constants.CONFIGURATORS_CATEGORY,
                        Constants.CHECK_KEY, String.valueOf(false)), listener);

Examples of com.arjuna.ats.arjuna.tools.osb.mbean.common.BasicBean.register()

                        return null;
                    }
                }

                // TODO make sure all the parent beans are registered
                action.register();

                return action;
            } catch (Exception e) {
                if (tsLogger.arjLoggerI18N.isDebugEnabled())
                    tsLogger.arjLoggerI18N.debug("com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreTypeBean.m_7",

Examples of com.arjuna.wsc.Registrar.register()

                final AddressingContext responseAddressingContext ;
                try
                {
                    final EndpointReferenceType participantProtocolService = register.getParticipantProtocolService() ;
                    final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
                    coordinationProtocolService = registrar.register(participantProtocolService, protocolIdentifier, instanceIdentifier) ;
                   
                    responseAddressingContext = AddressingContext.createResponseContext(addressingContext, MessageId.getMessageId()) ;
                }
                catch (final AlreadyRegisteredException alreadyRegisteredException)
                {

Examples of com.arjuna.wsc11.Registrar.register()

                try
                {
                    final W3CEndpointReference participantProtocolService = register.getParticipantProtocolService() ;
                    final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
                    final W3CEndpointReference coordinationProtocolService =
                            registrar.register(participantProtocolService, protocolIdentifier, instanceIdentifier, isSecure) ;
                    final RegisterResponseType response = new RegisterResponseType() ;

                    response.setCoordinatorProtocolService(coordinationProtocolService);
                    return response;
                }

Examples of com.avaje.ebeaninternal.server.deploy.BeanPropertyCompoundRoot.register()

          deploy.setDbRead(true);
         
          BeanPropertyCompoundScalar bp = new BeanPropertyCompoundScalar(rootProperty, deploy, ctProp, typeConverter);
          beanPropertyList.add(bp);
         
          rootProperty.register(bp);
      }
     
      rootProperty.setNonScalarProperties(ctMeta.getNonScalarProperties());
      return rootProperty;
  }

Examples of com.bazaarvoice.ostrich.registry.zookeeper.ZooKeeperServiceRegistry.register()

        env.manage(new Managed() {
            ZooKeeperServiceRegistry registry = new ZooKeeperServiceRegistry(curator);

            @Override
            public void start() throws Exception {
                registry.register(endPoint);
            }

            @Override
            public void stop() throws Exception {
                registry.unregister(endPoint);

Examples of com.captiveimagination.jgn.synchronization.SynchronizationManager.register()

    JGN.createThread(server).start(); //create a new thread for the server and start it
    JGN.createThread(syncManager).start(); //create and start a thread for the synchronization manager
   
    //register our sphere and make sure ot include its color
    try {
      syncManager.register(localSphere, new ColoredSynchronizeCreateMessage(localSphere.getColor()), 50);
    } catch (IOException e) {
      System.err.println("Could not register the local PlayerSphere:");
      e.printStackTrace();
      return;
    }

Examples of com.codahale.metrics.MetricRegistry.register()

        throw new RuntimeException(t);       
      }
    };
   
    MetricRegistry metricRegistry = new MetricRegistry();
    metricRegistry.register("myCounter", new Counter());
   
    HealthCheckRegistry healthChecks = new HealthCheckRegistry();
    healthChecks.register("foo", new HealthCheck() {     
      @Override
      protected Result check() throws Exception {

Examples of com.codahale.metrics.health.HealthCheckRegistry.register()

   
    MetricRegistry metricRegistry = new MetricRegistry();
    metricRegistry.register("myCounter", new Counter());
   
    HealthCheckRegistry healthChecks = new HealthCheckRegistry();
    healthChecks.register("foo", new HealthCheck() {     
      @Override
      protected Result check() throws Exception {
        return Result.healthy("flawless");
      }
    });

Examples of com.commafeed.backend.service.UserService.register()

    // Create a user
    User user = new User();
   
    // Create UserService mock
    UserService service = mock(UserService.class);
    when(service.register(any(String.class), any(String.class), any(String.class), Matchers.anyListOf(Role.class))).thenReturn(user);
    when(service.login(any(String.class), any(String.class))).thenReturn(Optional.of(user));
   
    RegistrationRequest req = new RegistrationRequest();
    req.setName("user");
    req.setPassword("password");
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.