Package java.rmi.server

Examples of java.rmi.server.UID


     * so that these concepts are *near* each other.</P>
     */
    public static String computeIdentity()
    {
        String tIdent = null;
        UID tUid = new UID();
        tIdent = tUid.toString();
        try {
            java.net.InetAddress tInet = java.net.InetAddress.getLocalHost();
            String tAddress = tInet.getHostAddress();
            StringTokenizer tTokenizer = new StringTokenizer(tAddress, ".");
            while (tTokenizer.hasMoreTokens()){
View Full Code Here


        ConnectionHeader header = client.getConnectionHeader();
        if ( header != null && header.isPersistent() )
        {
            synchronized ( _mutex )
            {
                ejClientInstances.put( new UID().toString(), client );
            }
        }
    }
View Full Code Here

   private String _id;

   public UidIdentifier()
   {
      super();
      _id = new UID().toString();
   }
View Full Code Here

        return autoLoggedIn;
    }

    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

      return new QuartzTriggerHandle(triggerName);
   }
  
   private String nextUniqueName ()
   {
      return (new UID()).toString();
   }
View Full Code Here

  /* (non-Javadoc)
   * @see org.springmodules.javaspaces.entry.UidFactory#generateUid()
   */
  public Serializable generateUid() {
    return new UID();
  }
View Full Code Here

        return retval;
    }


    public static String getUniqueClusterName(String base_name) {
        return base_name != null? base_name + "-" + new UID().toString() : new UID().toString();
    }
View Full Code Here

    }

    public File createTempFile() {
      try {

        tempFile = File.createTempFile(new UID().toString().replace(
            ":", "-"), ".upload");
        // tempFile.deleteOnExit();
        fOut = new FileOutputStream(tempFile);
      } catch (IOException ex) {
        throw new FileUploadException("Could not create temporary file");
View Full Code Here

               "Instead using host based UID strategy for defining a node " +
               "GUID for the cluster.");

      // 2nd: host-GUID strategy
      //
      String uid = new UID().toString();
      return hostIP + ":" + uid;
   }
View Full Code Here

  private String initBridgeRequestScope(ActionRequest request, ActionResponse response)
  {

    // Generate an RMI UID, which is a unique identifier WITHIN the local
    // host. This will be used as the new lifecyleID
    UID uid = new UID();
    String requestScopeId = qualifyScopeId(mPortletConfig.getPortletName(),
                                           request.getPortletSession(true).getId(),
                                           uid.toString());

    // set in response render parameter so will receive in future calls
    // however don't store internally until there is specific state to
    // manage
    response.setRenderParameter(REQUEST_SCOPE_ID_RENDER_PARAM, requestScopeId);
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.