Class SessionItem

java.lang.Object
convex.cli.peer.SessionItem

public class SessionItem extends Object
  • Field Details

  • Method Details

    • create

      public static SessionItem create(AccountKey accountKey, String hostname, String etchFilename)
      Create a new SessionItem object using the following fields:
      Parameters:
      accountKey - AccountKey of the peer.
      hostname - Hostname and port of the peer.
      etchFilename - Etch filename the peer is using.
      Returns:
      a new SessionItem object.
    • createFromString

      public static SessionItem createFromString(String value)
      Create a new SessionItem from a comma delimited string.
      Parameters:
      value - String that contain the session item data.
      Returns:
      a new SessionItem object.
    • getAccountKey

      public AccountKey getAccountKey()
      Returns:
      the peer AccountKey.
    • getName

      public String getName()
      Returns:
      the string name to use for this session item.
    • getHostname

      public String getHostname()
      Returns:
      the peers hostname and port number.
    • getPort

      public int getPort()
    • getHostAddress

      public InetSocketAddress getHostAddress()
    • getEtchFilename

      public String getEtchFilename()
      Returns:
      the used Etch Filename for this peer.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      the encoded data for this session as a commar delimited string.