fdswarm.util

package fdswarm.util

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object Gzip

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Gzip.type
object HamPhonetic

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object Ids

An ID based on UUID but in a compact form.

An ID based on UUID but in a compact form.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Ids.type
case class NodeIdentity(hostIp: String, port: Int, hostName: String, instanceId: Id) extends Ordered[NodeIdentity]

Represents the identity of a network node, encapsulating details such as hostip, hostName, port, and an instance ID.

Represents the identity of a network node, encapsulating details such as hostip, hostName, port, and an instance ID.

Value parameters

hostIp

The hostname or IP address of the node. This will default to "local". When received host will be replaced with the source of the UDP message.

hostName

The hostname of the node.

instanceId

A unique identifier for the instance of the node. Extends the Ordered trait to allow comparison of NodeIdentity instances based on host and port. Methods:

  • toString: Returns a string representation of the node in the format host:port-instanceId.
  • shortHost: A lazily evaluated property that provides a compact host and port.
  • toURL: Converts the node's information into a URL string.
  • toURI: Converts the node's information into a URI instance using the scheme "http".
  • compare: Compares two NodeIdentity instances first by host, then by port.
port

The port number on which the node is reachable.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Ordered[NodeIdentity]
trait Comparable[NodeIdentity]
class Object
trait Matchable
class Any
Show all
object NodeIdentity

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def printTreePretty(path: Path, prefix: String = ..., isLast: Boolean = ...): Unit

Value parameters

isLast

just for internal recursive use.

path

to display.

prefix

just for internal recursive use.

Attributes