Package java.rmi.server

Examples of java.rmi.server.UID$Lock


     * @param workListener Work listener for callbacks.
     * @return Work Work item representing the asynchronous work
     */
    public WorkItem schedule(Work work, WorkListener workListener) throws IllegalArgumentException {

        WorkItemImpl workItem = new WorkItemImpl(new UID().toString(), work);
        if (workListener != null) {
            workItems.put(workItem, workListener);
        }
        workAccepted(workItem, work);
        if (scheduleWork(work, workItem)) {
View Full Code Here


                FragmentExtractorGenerator.fragmentStore.remove(source);
        }
    }

    public static String store(Document doc) {
        String id = (new UID()).toString();

        // Cannot create File names with a ':' (in command-line generation)
        // So replace ':' with '-'
        id = id.replace(':','-');
View Full Code Here

                FragmentExtractorGenerator.fragmentStore.remove(source);
        }
    }

    public static String store(Document doc) {
        String id = (new UID()).toString();

        // Cannot create File names with a ':' (in command-line generation)
        // So replace ':' with '-'
        id = id.replace(':','-');
View Full Code Here

   *  unique name for this component.
   *
   */
  public UimaContext_ImplBase() {
    //  Generate unique name for this component
    uniqueIdentifier = new UID().toString();
    //  Strip colons and un
    uniqueIdentifier = uniqueIdentifier.replaceAll(":", "");
    uniqueIdentifier = uniqueIdentifier.replaceAll("-", "");
  }
View Full Code Here

     * plugins used by the GeoTools library.
     */
    static protected void loadCommonlyUsedObject() {
        // potential fix for win32 (occasionally blocks in Drawing.feature(Point/etc) during first
        // render)
        new UID(); // seed the random number generator
       
        @SuppressWarnings("unused")
        Object o = SI.BIT;
        o = SI.GRAM;
        o = SI.KILOGRAM;
View Full Code Here

   }
  
   protected String generateTokenValue()
   {
      StringBuilder sb = new StringBuilder();
      sb.append(new UID().toString());
      sb.append(":");
      sb.append(random.nextLong());
      return sb.toString();
   }
View Full Code Here

     
      public void createTempFile()
      {
         try
         {
            tempFile = File.createTempFile(new UID().toString().replace(":", "-"), ".upload");
            tempFile.deleteOnExit();
            fOut = new FileOutputStream(tempFile);           
         }
         catch (IOException ex)
         {
View Full Code Here

    for (int i = 0; i < tt.length; i++)
      {
        for (int j = 0; j < tt[i].result.length; j++)
          {
            UID id = tt[i].result[j];
            if (ids.contains(id))
              harness.fail("Duplicate ID " + id);
            else
              ids.add(id);
          }
View Full Code Here

    public void run()
    {
      result = new UID[200];
      for (int i = 0; i < result.length; i++)
        {
          result[i] = new UID();
        }
      synchronized (Uniqueness.class)
        {
          complete++;
        }
View Full Code Here

  @SuppressWarnings("unused")
  private static final Logger log = LoggerFactory.getLogger(URIGenerator.class);

  public static URI createNewRandomUniqueURI() {
    return new URIImpl("urn:rnd:" + new UID().toString());
  }
View Full Code Here

TOP

Related Classes of java.rmi.server.UID$Lock

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.