Class ExecutionEnvironment

    • Constructor Detail

      • ExecutionEnvironment

        public ExecutionEnvironment()
        Empty constructor of the ExecutionEnvironment
      • ExecutionEnvironment

        public ExecutionEnvironment​(String newhostname,
                                    String newname,
                                    int newtcpport,
                                    CommonMessages.Langs newlang,
                                    DataClayInstanceID dataClayInstanceID)
        ExecutionEnvironment specification constructor
        Parameters:
        newhostname - Host name of the Execution Environment
        newname - Name of the Execution Environment
        newtcpport - TCP Port of the Execution Environment
        newlang - Language for this Execution Environment
        dataClayInstanceID - ID of dataClay instance of this exec env
    • Method Detail

      • getHostname

        public String getHostname()
        Get the ExecutionEnvironment::hostname
        Specified by:
        getHostname in interface Backend
        Returns:
        the hostname
      • setHostname

        public void setHostname​(String newhostname)
        Set the ExecutionEnvironment::hostname
        Specified by:
        setHostname in interface Backend
        Parameters:
        newhostname - the hostname to set
      • getName

        public String getName()
        Get the ExecutionEnvironment::name
        Specified by:
        getName in interface Backend
        Returns:
        the name
      • setName

        public void setName​(String newname)
        Set the ExecutionEnvironment::name
        Specified by:
        setName in interface Backend
        Parameters:
        newname - the name to set
      • getPort

        public int getPort()
        Get the ExecutionEnvironment::storageTCPPort
        Specified by:
        getPort in interface Backend
        Returns:
        the port
      • setPort

        public void setPort​(int newport)
        Set the ExecutionEnvironment::port
        Specified by:
        setPort in interface Backend
        Parameters:
        newport - the port to set
      • getLang

        public CommonMessages.Langs getLang()
        Set the ExecutionEnvironment::storageTCPPort
        Specified by:
        getLang in interface Backend
        Returns:
        the language of this Execution Environment
      • setLang

        public void setLang​(CommonMessages.Langs newlang)
        Set the ExecutionEnvironment::lang
        Specified by:
        setLang in interface Backend
        Parameters:
        newlang - the Language for this Execution Environment
      • getDataClayInstanceID

        public DataClayInstanceID getDataClayInstanceID()
        Get the ExecutionEnvironment::dataClayInstanceID
        Returns:
        the dataClayInstanceID
      • setDataClayInstanceID

        public void setDataClayInstanceID​(DataClayInstanceID newdataClayInstanceID)
        Set the ExecutionEnvironment::dataClayInstanceID
        Parameters:
        newdataClayInstanceID - the dataClayInstanceID to set
      • getAddress

        public String getAddress()
        Get addrees of this EE.
        Returns:
        Address.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object