|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tp.impl.ServiceID
public final class ServiceID
The class represents a service for Java project. There are three types of services.
toString()
) of this identifier is following.
prefix ['-' identifier]
Valid prefix is 'R', 'W', 'T', which correspond to RM, WC, and TM.getName()
returns the identifier part.
Note that the identifier part is optional.
Field Summary | |
---|---|
protected String |
addr
remote address. |
static int |
MAX_NAME_LENGTH
|
protected String |
name
|
protected CSEP545Service.Type |
type
|
Constructor Summary | |
---|---|
ServiceID()
|
|
ServiceID(CSEP545Service.Type type)
|
|
ServiceID(CSEP545Service.Type type,
String name)
|
Method Summary | |
---|---|
int |
compareTo(ServiceID other)
|
boolean |
equals(Object o)
|
static ServiceID |
forRM()
service id for default RM instance |
static ServiceID |
forRM(String s)
|
static ServiceID |
forTM()
service id for default TM instance |
static ServiceID |
forWC()
service id for default WC instance |
static ServiceID |
forWC(String s)
|
String |
getName()
|
CSEP545Service.Type |
getType()
get type of service id |
int |
hashCode()
|
static ServiceID |
parse(String s)
parse external string representation |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_NAME_LENGTH
protected CSEP545Service.Type type
protected String name
protected String addr
Constructor Detail |
---|
public ServiceID()
public ServiceID(CSEP545Service.Type type)
public ServiceID(CSEP545Service.Type type, String name)
Method Detail |
---|
public CSEP545Service.Type getType()
public String getName()
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
public static ServiceID forRM()
public static ServiceID forRM(String s)
public static ServiceID forWC()
public static ServiceID forWC(String s)
public static ServiceID forTM()
public static ServiceID parse(String s)
s
- result of toString()
public int compareTo(ServiceID other)
compareTo
in interface Comparable<ServiceID>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |