Package java.rmi.server

Examples of java.rmi.server.UID


    /**
     * public no args constructor.
     */
    public GUID()
    {
        UID uid = new UID();
        StringBuffer buf = new StringBuffer();
        buf.append(localIPAddress);
        buf.append(":");
        buf.append(uid.toString());
        guid = buf.toString();
    }
View Full Code Here


     * @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

    /**
     * Create globally unique ID for this cache.
     */
    private String createGuid() {
        return new StringBuffer().append(localhost).append("-").append(new UID()).toString();
    }
View Full Code Here

* @version $Id$
*/
public class MysqlSavepoint implements Savepoint {
  private static String getUniqueId() {
    // no need to re-invent the wheel here...
    String uidStr = new UID().toString();

    int uidLength = uidStr.length();

    StringBuffer safeString = new StringBuffer(uidLength);

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

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

        DefaultWorkItem workItem = new DefaultWorkItem(new UID().toString(), work);
        if (workListener != null) {
            workItems.put(workItem, workListener);
        }
        workAccepted(workItem, work);
        if (scheduleWork(work, workItem)) {
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

  private String createBridgeRequestScope(PortletRequest request)
  {

    // 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();
    return qualifyScopeId(mPortletConfig.getPortletName(),
                                           request.getPortletSession(true).getId(),
                                           request.getPortletMode().toString(),
                                           uid.toString());

  }
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

  {
    String url = "http://api.betacie.com/view/random/nocomment?key=readonly&language=en";
    try
    {
      URLConnection con;
      UID uid = new UID();

      con = new URL(url).openConnection();
      con.connect();

      return con.getInputStream();
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.