Package java.rmi.server

Examples of java.rmi.server.UID


        }
    }

    protected void setId(Object o) {
        if (OwsUtils.get(o, "id") == null) {
            String uid = new UID().toString();
            OwsUtils.set(o, "id", o.getClass().getSimpleName() + "-" + uid);
        }
    }
View Full Code Here


        if (idCookie != null) {
            queue = queues.get(idCookie.getValue());
        }
        // generate a unique queue id for this client if none was found
        if(queue == null) {
            idCookie = new Cookie(COOKIE_NAME, COOKIE_PREFIX + new UID().toString());
            queue = new TimedBlockingQueue(queueSize, true);
            queues.put(idCookie.getValue(), queue);
        }
        QUEUE_ID.set(idCookie.getValue());
        request.getHttpResponse().addCookie(idCookie);
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

   */
  protected String createSessionId() {
    // Use UUID if specified in config (thanks Uli Romahn)
    if (Config.hasProperty(SESSION_ID_GENERATION) && Config.getProperty(SESSION_ID_GENERATION).equals(SESSION_ID_GENERATION_UUID)) {
      // We want to be Java 1.4 compatible so use UID class (1.5+ we may use java.util.UUID).
      return new UID().toString();
    }

    // Other cases use random name

    // Create a unique session id
View Full Code Here

public class ImporterThreadManager  implements ApplicationListener {
    ExecutorService pool = Executors.newCachedThreadPool();
    Map<String, FeatureTypeImporter> tasks = new HashMap<String, FeatureTypeImporter>();
   
    public String startImporter(FeatureTypeImporter importer) {
        String id = new UID().toString();
        tasks.put(id, importer);
        pool.execute(importer);
        return id;
    }
View Full Code Here

      {
         ++mbeanServerCount;
         count = mbeanServerCount;
      }

      UID uid = new UID();
      return uid.toString() + ":" + getLocalHost() + ":" + count;
   }
View Full Code Here

        }
    }
   
    protected void setId( Object o ) {
        if ( OwsUtils.get( o, "id") == null ) {
            String uid = new UID().toString();
            OwsUtils.set( o, "id", o.getClass().getSimpleName() + "-"+uid );
        }
    }
View Full Code Here

     */
    public void done() throws IOException {
        if (!isClosed) {
            if (oin.isRemoteCallStream() && oin.isDGCAckNeeded()) {
                // we need to make a DGC ack call
                conn.sendDGCAck(uid == null ? (uid = new UID()) : uid);
            }
            conn.done();
        }
    }
View Full Code Here

    /**
     * @com.intel.drl.spec_ref
     */
    public ActivationGroupID(ActivationSystem system) {
        this.system = system;
        uid = new UID();
    }
View Full Code Here

        if (!(body instanceof Entry)) {
            entry = new InEntry();

            if (body instanceof BeanInvocation) {
                ((InEntry) entry).correlationId = (new UID()).toString();
            }

            if (body instanceof byte[]) {
                ((InEntry) entry).binary = true;
                ((InEntry) entry).buffer = (byte[]) body;
View Full Code Here

TOP

Related Classes of java.rmi.server.UID

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.