Package java.rmi.server

Examples of java.rmi.server.UID


  private String initBridgeRequestScope(PortletRequest request, StateAwareResponse 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(),
                                           request.getPortletMode().toString(),
                                           uid.toString());

    if (response != null)
    {
      // set in response render parameter so will receive in future calls
      // however don't store internally until there is specific state to
View Full Code Here


     *
     * @return The identifier
     */
    protected String createUniqueIdentifier()
    {
        return new UID().toString().replace(':', '_').replace('-', '_');
    }
View Full Code Here

      {
         ++mbeanServerCount;
         count = mbeanServerCount;
      }

      UID uid = new UID();
      return uid.toString() + ":" + getLocalHost() + ":" + count;
   }
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

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

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

    static final String _inetAddr = initInetAddr();

    //first method (from MarketMaker Guid)
    public static String generateUuidMM() {
        return new StringBuffer(new UID().toString()).reverse().append(':').append(_inetAddr).toString();
    }
View Full Code Here

                    " ) is invalid, it must be a non-null string of non-zero length" );
        }
        if ( playbackFile == null || diffFile == null ) {
            error( "the playback and diff files may not be null" );
        }
        uid = new UID();
        stringUid = uid.toString();
        this.playbackFile = playbackFile;
        this.diffFile = diffFile;
        this.recordFile = recordFile;
        if ( !recordFile.exists() ) {
View Full Code Here

            }
        }
    }

    protected void testNewRequest( ServletRequest request ) {
        UID uid = (UID) request.getAttribute( Constants.REQUEST_MARKER_ATTRIBUTE );
        // the request should not have been wrapped either if it goes here
        if ( uid == null ) {
            // this is the first time this request has been seen in the filter.
            // set the marker attribute
            request.setAttribute( Constants.REQUEST_MARKER_ATTRIBUTE, new UID() );
            newRequest = true;
        }
        else {
            newRequest = false;
        }
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(),
                                           request.getPortletMode().toString(),
                                           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

      }
    }
    return nodeList; // empty list
  }
  public static String generateUniqueId() {
    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.