コード例 #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);
 }