Top Description Fields Constructors Methods
org.eclipse.persistence.sessions.coordination

public Class ServiceId

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.UUID

Purpose: Encapsulate the information that uniquely identifies a specific remote command service instance.

Description: A service instance consists primarily of a CommandManager and its associated components including its CommandProcessor, CommandConverter, DiscoveryManager and TransportManager. Whenever a service instance sends out an announcement or remote command to the cluster the service id is included in the message.

Author
Steven Vo
Since
OracleAS TopLink 10g (9.0.4)
See Also
org.eclipse.persistence.internal.sessions.coordination.ServiceAnnouncement

Field Summary

Modifier and TypeField and Description
private String
channel

The logical channel that the service instance subscribes to

private transient String
public static final String
HOST_TOKEN

This $HOST token indicate that the host ip of the URL should be replaced at runtime by user input

private String
id

Generated unique id to distinguish the service instance from all others

public static final String
PORT_TOKEN

This $HOST token indicate that the host ip of the URL should be replaced at runtime by user input

private String
url

Url of the service instance

Constructor Summary

AccessConstructor and Description
public
public
ServiceId(String channel, String id, String url)

Method Summary

Modifier and TypeMethod and Description
public String
getChannel()

INTERNAL: Return the logical channel that this service subscribes to

public String
getId()

INTERNAL: Get the unique identifier for the service

public String
getURL()

INTERNAL: Return the URL for the service

public void
setChannel(String newChannel)

INTERNAL: Set the logical channel that this service subscribes to

public void
setId(String newId)

INTERNAL: Set the unique identifier for the service

public void
setURL(String newUrl)

INTERNAL: Set the URL for the service

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

channelback to summary
private String channel

The logical channel that the service instance subscribes to

displayStringback to summary
private transient String displayString
HOST_TOKENback to summary
public static final String HOST_TOKEN

This $HOST token indicate that the host ip of the URL should be replaced at runtime by user input

idback to summary
private String id

Generated unique id to distinguish the service instance from all others

PORT_TOKENback to summary
public static final String PORT_TOKEN

This $HOST token indicate that the host ip of the URL should be replaced at runtime by user input

urlback to summary
private String url

Url of the service instance

Constructor Detail

ServiceIdback to summary
public ServiceId()
ServiceIdback to summary
public ServiceId(String channel, String id, String url)

Method Detail

getChannelback to summary
public String getChannel()

INTERNAL: Return the logical channel that this service subscribes to

getIdback to summary
public String getId()

INTERNAL: Get the unique identifier for the service

getURLback to summary
public String getURL()

INTERNAL: Return the URL for the service

setChannelback to summary
public void setChannel(String newChannel)

INTERNAL: Set the logical channel that this service subscribes to

setIdback to summary
public void setId(String newId)

INTERNAL: Set the unique identifier for the service

setURLback to summary
public void setURL(String newUrl)

INTERNAL: Set the URL for the service

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override