Package java.rmi.server

Examples of java.rmi.server.UID


                 "GUID for the cluster.");
      }

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


    String localhost = "unknown_local_host";
    try {
      localhost = InetAddress.getLocalHost().getHostAddress();
    } catch (UnknownHostException e) {
    }
    return localhost + new UID().toString();
  }
View Full Code Here

import java.rmi.server.UID;

public class UIDGenerator implements UniqueIdGenerator {
  public String nextId() {
    return new UID().toString();
  }
View Full Code Here

  private static byte[] generateSync() {
    try {
      MessageDigest digester = MessageDigest.getInstance("MD5");
      long time = System.currentTimeMillis();
      digester.update((new UID()+"@"+time).getBytes());
      return digester.digest();
    } catch (NoSuchAlgorithmException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

   
    protected String autoGenerateID(PortletDefinition pd)
    {
        String appName = ((MutablePortletApplication)pd.getPortletApplicationDefinition()).getName();
        String portletName = pd.getName();
        return appName+"::"+portletName+"::"+new UID().toString();
    }
View Full Code Here

   
    protected String autoGenerateID(PortletDefinition pd)
    {
        String appName = ((MutablePortletApplication)pd.getPortletApplicationDefinition()).getName();
        String portletName = pd.getName();
        return appName+"::"+portletName+"::"+new UID().toString();
    }
View Full Code Here

     * address can be obtained for this host that is unique and constant
     * for the lifetime of this object.  <p>
     */
    public VMID() {
        addr = localAddr;
        uid = new UID();
    }
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

   }
  
   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

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.