Package alluxio.wire

Class WorkerNetAddress

  • All Implemented Interfaces:
    java.io.Serializable

    @PublicApi
    @NotThreadSafe
    public final class WorkerNetAddress
    extends java.lang.Object
    implements java.io.Serializable
    The network address of a worker.
    See Also:
    Serialized Form
    • Constructor Detail

      • WorkerNetAddress

        public WorkerNetAddress()
        Creates a new instance of WorkerNetAddress.
    • Method Detail

      • getSecureRpcPort

        public int getSecureRpcPort()
        Returns:
        the secure rpc port
      • getHost

        public java.lang.String getHost()
        Returns:
        the host of the worker
      • getContainerHost

        public java.lang.String getContainerHost()
        Returns:
        the container host of the worker, default to empty string if the worker is not in a container
      • getRpcPort

        public int getRpcPort()
        Returns:
        the RPC port
      • getDataPort

        public int getDataPort()
        Returns:
        the data port
      • getNettyDataPort

        public int getNettyDataPort()
        Returns:
        the netty data port
      • getWebPort

        public int getWebPort()
        Returns:
        the web port
      • getDomainSocketPath

        public java.lang.String getDomainSocketPath()
        Returns:
        the domain socket path
      • getTieredIdentity

        public TieredIdentity getTieredIdentity()
        Returns:
        the tiered identity
      • setHost

        public WorkerNetAddress setHost​(java.lang.String host)
        Parameters:
        host - the host to use
        Returns:
        the worker net address
      • setContainerHost

        public WorkerNetAddress setContainerHost​(java.lang.String containerHost)
        Parameters:
        containerHost - the host of node, if running in a container
        Returns:
        the worker net address
      • setRpcPort

        public WorkerNetAddress setRpcPort​(int rpcPort)
        Parameters:
        rpcPort - the rpc port to use
        Returns:
        the worker net address
      • setDataPort

        public WorkerNetAddress setDataPort​(int dataPort)
        Parameters:
        dataPort - the data port to use
        Returns:
        the worker net address
      • setNettyDataPort

        public WorkerNetAddress setNettyDataPort​(int nettyDataPort)
        Parameters:
        nettyDataPort - the netty data port to use
        Returns:
        the worker net address
      • setWebPort

        public WorkerNetAddress setWebPort​(int webPort)
        Parameters:
        webPort - the web port to use
        Returns:
        the worker net address
      • setSecureRpcPort

        public WorkerNetAddress setSecureRpcPort​(int secureRpcPort)
        Parameters:
        secureRpcPort - the secure rpc port port to use
        Returns:
        the worker net address
      • setDomainSocketPath

        public WorkerNetAddress setDomainSocketPath​(java.lang.String domainSocketPath)
        Parameters:
        domainSocketPath - the domain socket path
        Returns:
        the worker net address
      • setTieredIdentity

        public WorkerNetAddress setTieredIdentity​(TieredIdentity tieredIdentity)
        Parameters:
        tieredIdentity - the tiered identity
        Returns:
        the worker net address
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • dumpMainInfo

        public java.lang.String dumpMainInfo()
        dump the main info of the WorkerNetAddress object.
        Returns:
        the main info string of the WorkerNetAddress object
      • toString

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