Package convex.cli.peer
Class SessionItem
java.lang.Object
convex.cli.peer.SessionItem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccountKey
protected static String
protected String
protected String
-
Method Summary
Modifier and TypeMethodDescriptionstatic SessionItem
create(AccountKey accountKey, String hostname, String etchFilename)
Create a new SessionItem object using the following fields:static SessionItem
createFromString(String value)
Create a new SessionItem from a comma delimited string.getName()
int
getPort()
toString()
-
Field Details
-
DELIMITER
- See Also:
- Constant Field Values
-
accountKey
-
hostname
-
etchFilename
-
-
Method Details
-
create
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
Create a new SessionItem from a comma delimited string.- Parameters:
value
- String that contain the session item data.- Returns:
- a new SessionItem object.
-
getAccountKey
- Returns:
- the peer AccountKey.
-
getName
- Returns:
- the string name to use for this session item.
-
getHostname
- Returns:
- the peers hostname and port number.
-
getPort
public int getPort() -
getHostAddress
-
getEtchFilename
- Returns:
- the used Etch Filename for this peer.
-
toString
-