Class ConnectionUrlDescriptor

java.lang.Object
com.gigaspaces.internal.lrmi.ConnectionUrlDescriptor

public class ConnectionUrlDescriptor extends Object
Provides means for generating connection url from its description and creating the descriptor from the connection url in its string form.
Since:
9.6
Author:
Dan Kilman
  • Constructor Details

    • ConnectionUrlDescriptor

      public ConnectionUrlDescriptor(String protocol, String hostname, int port, long pid, long objectId, long objectClassLoaderId, long lrmiRuntimeId, String serviceDetails)
  • Method Details

    • getProtocol

      public String getProtocol()
    • getHostname

      public String getHostname()
    • getPort

      public int getPort()
    • getSocketAddress

      public InetSocketAddress getSocketAddress()
    • getPid

      public long getPid()
    • getObjectId

      public long getObjectId()
    • getObjectClassLoaderId

      public long getObjectClassLoaderId()
    • getLrmiRuntimeId

      public long getLrmiRuntimeId()
    • getServiceDetails

      public String getServiceDetails()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrl

      public String toUrl()
      returns a URL of the following format: ://:/pid/<remote-object-id-string>_ NIO://192.168.10.174:53727/pid[7284]/611763683694280_1_7316247838020130362_details[class com.sun.jini.reggie.GigaRegistrar] For future additions to this url please refer to this class test cases to see possible backwards compatability limitations. In general, it would be better if the closing delimiter of any additional infomration will not be so general. e.g: ] ) } _ This limitation only applies if the additional information is general (i.e. String). In the more specific case where the additional information may be a number, date, etc... any thing that can be described accurately by a regular expression, this closing delimiter limitation probably does not apply.
    • fromUrl

      public static ConnectionUrlDescriptor fromUrl(String connectionUrl)