Class ExternalExecutionEnvironment

    • Constructor Detail

      • ExternalExecutionEnvironment

        public ExternalExecutionEnvironment()
        Empty constructor of the ExecutionEnvironment
      • ExternalExecutionEnvironment

        public ExternalExecutionEnvironment​(DataClayInstanceID thedataClayInstanceID,
                                            String newhostname,
                                            String newname,
                                            int newtcpport,
                                            CommonMessages.Langs newlang)
        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
    • Method Detail

      • getDataClayInstanceID

        public DataClayInstanceID getDataClayInstanceID()
        Get the ExternalExecutionEnvironment::dataClayInstanceID
        Returns:
        the dataClay instance ID this EE belongs to
      • setDataClayInstanceID

        public void setDataClayInstanceID​(DataClayInstanceID thedataClayInstanceID)
        Set the ExternalExecutionEnvironment::dataClayInstanceID
        Parameters:
        thedataClayInstanceID - the dataClayInstanceID to set
      • 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
      • getAddress

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

        public boolean equals​(Object t)
        This operation allows to compare this object with other object.
        Overrides:
        equals in class Object
        Parameters:
        t - Object to compare
        Returns:
        If the object is the same, returns TRUE. FALSE, otherwise.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object