Class BindingSpecifier

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public final class BindingSpecifier
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Serializable
    The BindingSpecifier object represents the core binding settings for a job. It contains the binding type, strategy, and strategy parameters.
    Since:
    6.2u5
    See Also:
    , Serialized Form
    • Constructor Detail

      • BindingSpecifier

        public BindingSpecifier()
    • Method Detail

      • setStrategy

        public void setStrategy​(BindingSpecifier.Strategy strategy)
        Set binding strategy string
        Parameters:
        strategy - new strategy
      • setLinearStrategy

        public void setLinearStrategy​(int amount,
                                      int socket,
                                      int core)
        Set linear binding strategy
        Parameters:
        amount - number of cores
        socket - first socket
        core - first core on socket
      • setLinearStrategy

        public void setLinearStrategy​(int amount)
        Set linear-automatic binding strategy
        Parameters:
        amount - number of sockets
      • setStridingStrategy

        public void setStridingStrategy​(int amount,
                                        int socket,
                                        int core)
        Set striding binding strategy
        Parameters:
        amount - number of cores
        socket - first socket
        core - first core on socket
      • setStridingStrategy

        public void setStridingStrategy​(int amount)
        Set striding-automatic binding strategy
        Parameters:
        amount - number of cores
      • setExplicitStrategy

        public void setExplicitStrategy​(java.util.List<BindingSpecifier.CoreSpecifier> socketCore)
        Set explicit binding strategy specifying socket/core map
        Parameters:
        socketCore - list of cores
      • isLinear

        public java.lang.Boolean isLinear()
        Returns true if binding strategy is linear
        Returns:
        true in case of linear binding
      • isStriding

        public java.lang.Boolean isStriding()
        Returns true if binding strategy is striding
        Returns:
        true in case of striding binding
      • isExplicit

        public java.lang.Boolean isExplicit()
        Returns true if binding strategy is explicit
        Returns:
        true in case of explicit binding
      • setSetType

        public void setSetType()
        Set binding type to type 'set'
      • setPeType

        public void setPeType()
        Set binding type to type pe
      • isSetType

        public java.lang.Boolean isSetType()
        Returns true if type is set
        Returns:
        true in case of set type
      • isPeType

        public java.lang.Boolean isPeType()
        Returns true if type is pe
        Returns:
        true in case of pe type
      • isEnvType

        public java.lang.Boolean isEnvType()
        Returns true if type is env
        Returns:
        true in case of env type
      • getAmount

        public int getAmount()
        Returns the number of cores
        Returns:
        core amount
      • setAmount

        public void setAmount​(int amount)
        Sets the binding amount
        Parameters:
        amount - binding amount
      • getSocket

        public int getSocket()
        Returns the start socket
        Returns:
        start socket
      • setSocket

        public void setSocket​(int socket)
        Sets the binding socket
        Parameters:
        socket - binding socket
      • getCore

        public int getCore()
        Returns the core on the start socket
        Returns:
        start core
      • setCore

        public void setCore​(int core)
        Sets the binding core
        Parameters:
        core - binding core
      • getStep

        public int getStep()
        Returns the step size
        Returns:
        step size
      • setStep

        public void setStep​(int step)
        Sets the binding step size
        Parameters:
        step - binding step size
      • getCoreSpecifiers

        public java.util.List<BindingSpecifier.CoreSpecifier> getCoreSpecifiers()
        Returns the core specifier list (only explicit binding)
        Returns:
        list of core specifiers
      • equals

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

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

        public BindingSpecifier clone()
        Overrides:
        clone in class java.lang.Object
      • toString

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