java.lang.Object
org.eclipse.persistence.sessions.coordination.ServiceId
All Implemented Interfaces:
Serializable

public class ServiceId extends Object implements Serializable

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.

Since:
OracleAS TopLink 10g (9.0.4)
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    This $HOST token indicate that the host ip of the URL should be replaced at runtime by user input
    static final String
    This $HOST token indicate that the host ip of the URL should be replaced at runtime by user input
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ServiceId(String channel, String id, String url)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    INTERNAL: Return the logical channel that this service subscribes to
    INTERNAL: Get the unique identifier for the service
    INTERNAL: Return the URL for the service
    void
    setChannel(String newChannel)
    INTERNAL: Set the logical channel that this service subscribes to
    void
    setId(String newId)
    INTERNAL: Set the unique identifier for the service
    void
    setURL(String newUrl)
    INTERNAL: Set the URL for the service
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • HOST_TOKEN

      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
      See Also:
    • PORT_TOKEN

      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
      See Also:
  • Constructor Details

    • ServiceId

      public ServiceId()
    • ServiceId

      public ServiceId(String channel, String id, String url)
  • Method Details

    • getURL

      public String getURL()
      INTERNAL: Return the URL for the service
    • setURL

      public void setURL(String newUrl)
      INTERNAL: Set the URL for the service
    • getId

      public String getId()
      INTERNAL: Get the unique identifier for the service
    • setId

      public void setId(String newId)
      INTERNAL: Set the unique identifier for the service
    • getChannel

      public String getChannel()
      INTERNAL: Return the logical channel that this service subscribes to
    • setChannel

      public void setChannel(String newChannel)
      INTERNAL: Set the logical channel that this service subscribes to
    • toString

      public String toString()
      Overrides:
      toString in class Object