Package java.util

Examples of java.util.UUID


        assertNotNull("Root entry is not found", root);
    }

    public void testOpenInMemoryWithInitialStore() throws Exception
    {
        UUID brokerId = UUID.randomUUID();
        Map<String, Object> brokerAttributes = new HashMap<String, Object>();
        brokerAttributes.put(Broker.NAME, getTestName());
        MemoryConfigurationEntryStore  initialStoreFile = (MemoryConfigurationEntryStore)createStore(brokerId, brokerAttributes);
        MemoryConfigurationEntryStore store = new MemoryConfigurationEntryStore(null, initialStoreFile, Collections.<String,String>emptyMap());
View Full Code Here


                if(alternateExchangeName != null && alternateExchangeName.length() != 0)
                {
                    arguments.put(Queue.ALTERNATE_EXCHANGE, alternateExchangeName);
                }

                final UUID id = UUIDGenerator.generateQueueUUID(queueName, virtualHost.getName());

                final boolean deleteOnNoConsumer = !exclusive && autoDelete;

                queue = virtualHost.createQueue(id, queueName, method.getDurable(), owner,
                                                autoDelete, exclusive, deleteOnNoConsumer,
View Full Code Here

    public Exchange createExchange(String exchange, String type, boolean durable, boolean autoDelete)
        throws AMQException
    {

        UUID id = UUIDGenerator.generateExchangeUUID(exchange, _host.getName());
        return createExchange(id, exchange, type, durable, autoDelete);
    }
View Full Code Here

  private RequestStatus getRequestStatus(){
    logger.debug("Creating RequestStatus object");
    RequestStatus requestStatus = new RequestStatus();
    //logger.info("download requests size: " + Integer.toString(downloadRequests.size()));
    for (DownloadRequest downloadRequest: downloadRequests){
      UUID requestId = downloadRequest.getRequestId();
      logger.debug("RequestId: " + requestId.toString());
      String type = "layer";
      if (downloadRequest.getEmailSent()){
        type = "email";
      }
      StatusSummary status = downloadRequest.getStatusSummary();
      logger.debug("Download status summary: " + status.toString());
      requestStatus.addRequestStatusElement(requestId, type, status);
    }

    for (ImageRequest imageRequest: imageRequests){
      UUID requestId = imageRequest.getRequestId();
      //logger.info("RequestId: " + requestId.toString());
      String type = "image";
      StatusSummary status = imageRequest.getStatusSummary();
      //logger.info("Image status summary: " + status.toString());
      requestStatus.addRequestStatusElement(requestId, type, status);
    }
   
    for (GeoCommonsExportRequest exportRequest: exportRequests){
      UUID requestId = exportRequest.getRequestId();
      //logger.info("RequestId: " + requestId.toString());
      String type = "export";
      StatusSummary status = exportRequest.getStatusSummary();
      //logger.info("Image status summary: " + status.toString());
      requestStatus.addRequestStatusElement(requestId, type, status);
View Full Code Here

      {
        LOG.error("Error getting localhost info", uhe);
      }

      if (_id == -1) {
        UUID uuid = UUID.randomUUID();
        _id =  Math.abs(_defaultId + uuid.hashCode());
        LOG.info("Using container id: " + _id +
                 "(from defaultId = " + _defaultId + ";hash=" + uuid.hashCode() + ")");
      }

      String realHealthcheckPath = _healthcheckPath.startsWith("/") ? _healthcheckPath.substring(1)
                                                                    : _healthcheckPath;
View Full Code Here

    Boolean authenticated = false;
    if (ogpUserContext.isAuthenticatedLocally()){
      authenticated = true;
    }
    String sessionId = RequestContextHolder.currentRequestAttributes().getSessionId();
    UUID requestId = downloadHandler.requestLayers(sessionId, layerMap, arrBbox, email, authenticated);
    Map<String,String> map = new HashMap<String,String>();
    map.put("requestId", requestId.toString());
    return map;
  }
View Full Code Here

   */
  public UUID requestLayers(String sessionId, Map<String,String> layerMap, String[] bounds, String emailAddress, Boolean locallyAuthenticated) throws Exception{
    this.setReplyEmail(emailAddress);
    this.setLocallyAuthenticated(locallyAuthenticated);
    Map <String, List<LayerRequest>> downloadRequestMap = null;
    UUID requestId = UUID.randomUUID();
    downloadRequestMap = this.createDownloadRequestMap(layerMap, bounds);
    this.submitDownloadRequest(sessionId, requestId, downloadRequestMap);
    return requestId;
  }
View Full Code Here

  @Autowired
  private GeoCommonsExporter geoCommonsExporter;

  @Override
  public UUID requestExport(GeoCommonsExportRequest exportRequest) {
    UUID requestId = registerRequest(exportRequest.getSessionId(), exportRequest);
    geoCommonsExporter.submitExportRequest(exportRequest);
    return requestId;
  }
View Full Code Here

    geoCommonsExporter.submitExportRequest(exportRequest);
    return requestId;
  }
 
  private UUID registerRequest(String sessionId, GeoCommonsExportRequest exportRequest) {
    UUID requestId = UUID.randomUUID();
    requestStatusManager.addExportRequest(requestId, sessionId, exportRequest);
    return requestId;
  }
View Full Code Here

      final Map<String,Cookie> cookieMap = httpContext.getRequest().getCookies();
      if (!cookieMap.containsKey(SiteConfiguration.SESSION_TOKEN_NAME)) {
        throw new WebApplicationException(Response.Status.UNAUTHORIZED);
      }

      UUID sessionToken = UUID.fromString(cookieMap.get(SiteConfiguration.SESSION_TOKEN_NAME).getValue());

      if (sessionToken != null) {

        final OpenIDCredentials credentials = new OpenIDCredentials(sessionToken, requiredAuthorities);
View Full Code Here

TOP

Related Classes of java.util.UUID

Copyright © 2018 www.massapicom. 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.