org.sourceforge.jemm.comm.server
Class RPCClientId

java.lang.Object
  extended by org.sourceforge.jemm.comm.server.RPCClientId

public class RPCClientId
extends java.lang.Object

A client identifier.

Released under the Apache License V2.0 license by the JEMM Project

Author:
Rory Graves

Field Summary
protected  java.lang.String clientIdString
          The internal id of this client.
protected static java.util.concurrent.atomic.AtomicInteger ID_SOURCE
          Internal counter for client ids
 
Constructor Summary
RPCClientId()
          Create a unique ClientId.
RPCClientId(java.lang.String internalId)
          Create a stored client id.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getInternalId()
          Returns the internal representation if this id for storage.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID_SOURCE

protected static final java.util.concurrent.atomic.AtomicInteger ID_SOURCE
Internal counter for client ids


clientIdString

protected final java.lang.String clientIdString
The internal id of this client.

Constructor Detail

RPCClientId

public RPCClientId()
Create a unique ClientId.


RPCClientId

public RPCClientId(java.lang.String internalId)
Create a stored client id.

Parameters:
internalId - The internal id of the client.
Method Detail

getInternalId

public java.lang.String getInternalId()
Returns the internal representation if this id for storage.

Returns:
The internal representation of this id.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.