Пример #1
0
 @Override
 public synchronized void destroy() {
   try {
     _endpointPublisher.stop();
   } catch (Exception ex) {
     SCALogger.ROOT_LOGGER.failedToDestroyRemoteEndpointPublisher(ex);
   }
 }
Пример #2
0
 private void initEndpointPublisher() {
   _endpointPublisher = ProviderRegistry.getProvider(RemoteEndpointPublisher.class);
   // if we couldn't find a provider, default to NOP implementation
   if (_endpointPublisher == null) {
     _endpointPublisher = new NOPEndpointPublisher();
     SCALogger.ROOT_LOGGER.noEndpointPublisherRegistered();
   }
   _endpointPublisher.init(CONTEXT_PATH);
 }