Package com.sun.grid.jsv
Class BindingSpecifier
java.lang.Object
com.sun.grid.jsv.BindingSpecifier
- All Implemented Interfaces:
Serializable
,Cloneable
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal class
static enum
static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
Returns the number of coresint
getCore()
Returns the core on the start socketReturns the core specifier list (only explicit binding)int
Returns the start socketint
getStep()
Returns the step sizeReturns the binding strategy stringgetType()
Returns the binding typeint
hashCode()
Returns true if type is envReturns true if binding strategy is explicitisLinear()
Returns true if binding strategy is linearisPeType()
Returns true if type is peReturns true if type is setReturns true if binding strategy is stridingvoid
setAmount
(int amount) Sets the binding amountvoid
setCore
(int core) Sets the binding corevoid
setExplicitStrategy
(List<BindingSpecifier.CoreSpecifier> socketCore) Set explicit binding strategy specifying socket/core mapvoid
setLinearStrategy
(int amount) Set linear-automatic binding strategyvoid
setLinearStrategy
(int amount, int socket, int core) Set linear binding strategyvoid
Set binding type to type pevoid
Set binding type to type 'set'void
setSocket
(int socket) Sets the binding socketvoid
setStep
(int step) Sets the binding step sizevoid
setStrategy
(BindingSpecifier.Strategy strategy) Set binding strategy stringvoid
setStridingStrategy
(int amount) Set striding-automatic binding strategyvoid
setStridingStrategy
(int amount, int socket, int core) Set striding binding strategyvoid
setType
(BindingSpecifier.Type type) Set binding typetoString()
-
Constructor Details
-
BindingSpecifier
public BindingSpecifier()
-
-
Method Details
-
setStrategy
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 coressocket
- first socketcore
- 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 coressocket
- first socketcore
- first core on socket
-
setStridingStrategy
public void setStridingStrategy(int amount) Set striding-automatic binding strategy- Parameters:
amount
- number of cores
-
setExplicitStrategy
Set explicit binding strategy specifying socket/core map- Parameters:
socketCore
- list of cores
-
isLinear
Returns true if binding strategy is linear- Returns:
- true in case of linear binding
-
isStriding
Returns true if binding strategy is striding- Returns:
- true in case of striding binding
-
isExplicit
Returns true if binding strategy is explicit- Returns:
- true in case of explicit binding
-
getStrategy
Returns the binding strategy string- Returns:
- binding strategy
-
setType
Set binding type -
setSetType
public void setSetType()Set binding type to type 'set' -
setPeType
public void setPeType()Set binding type to type pe -
isSetType
Returns true if type is set- Returns:
- true in case of set type
-
isPeType
Returns true if type is pe- Returns:
- true in case of pe type
-
isEnvType
Returns true if type is env- Returns:
- true in case of env type
-
getType
Returns the binding type- Returns:
- binding 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
Returns the core specifier list (only explicit binding)- Returns:
- list of core specifiers
-
equals
-
hashCode
public int hashCode() -
clone
-
toString
-