Class ServiceId

  • All Implemented Interfaces:
    java.io.Serializable

    public class ServiceId
    extends java.lang.Object
    implements java.io.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.

    See Also:
    ServiceAnnouncement, Serialized Form
    Author:
    Steven Vo
    Since:
    OracleAS TopLink 10g (9.0.4)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String HOST_TOKEN
      This $HOST token indicate that the host ip of the URL should be replaced at runtime by user input
      static java.lang.String PORT_TOKEN
      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()  
      ServiceId​(java.lang.String channel, java.lang.String id, java.lang.String url)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getChannel()
      INTERNAL: Return the logical channel that this service subscribes to
      java.lang.String getId()
      INTERNAL: Get the unique identifier for the service
      java.lang.String getURL()
      INTERNAL: Return the URL for the service
      void setChannel​(java.lang.String newChannel)
      INTERNAL: Set the logical channel that this service subscribes to
      void setId​(java.lang.String newId)
      INTERNAL: Set the unique identifier for the service
      void setURL​(java.lang.String newUrl)
      INTERNAL: Set the URL for the service
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • HOST_TOKEN

        public static final java.lang.String HOST_TOKEN
        This $HOST token indicate that the host ip of the URL should be replaced at runtime by user input
        See Also:
        Constant Field Values
      • PORT_TOKEN

        public static final java.lang.String PORT_TOKEN
        This $HOST token indicate that the host ip of the URL should be replaced at runtime by user input
        See Also:
        Constant Field Values
    • Constructor Detail

      • ServiceId

        public ServiceId()
      • ServiceId

        public ServiceId​(java.lang.String channel,
                         java.lang.String id,
                         java.lang.String url)
    • Method Detail

      • getURL

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

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

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

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

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

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

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