public class BuildGroupException
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED |
static int |
DEFAULT_POWER |
boolean |
enabled |
int |
power |
int |
slice |
java.lang.String |
sliceInstance |
Constructor and Description |
---|
BuildGroupException() |
BuildGroupException(BuildGroupException o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this BuildGroupException.
|
static BuildGroupException |
fromString(java.lang.String s)
String representation of this BuildGroupException.
|
int |
getPower()
The power ratio defines the ratio of the inbound trafic to divert to a given instance (among all instances of a given slice).
A slice instance with power=2 will receive twice as much traffic as a slice instance with power=1. If power=0, this slice instance is used as failover only if all other instances of this slice have failed. |
int |
getSlice()
slice number
|
java.lang.String |
getSliceInstance()
Name of the instance
|
boolean |
isEnabled()
Enables search for this instance.
|
BuildGroupException |
makeCopy()
Creates and returns a deep copy of this BuildGroupException.
|
static BuildGroupException |
readFrom(java.io.InputStream is)
Read this BuildGroupException from an XML fragment.
|
void |
setEnabled(boolean enabled)
Enables search for this instance.
|
void |
setPower(int power)
The power ratio defines the ratio of the inbound trafic to divert to a given instance (among all instances of a given slice).
A slice instance with power=2 will receive twice as much traffic as a slice instance with power=1. If power=0, this slice instance is used as failover only if all other instances of this slice have failed. |
void |
setSlice(int slice)
slice number
|
void |
setSliceInstance(java.lang.String sliceInstance)
Name of the instance
|
java.lang.String |
toString()
String representation of this BuildGroupException.
|
BuildGroupException |
withEnabled(boolean enabled) |
BuildGroupException |
withEnabled(java.lang.Boolean enabled) |
BuildGroupException |
withPower(int power) |
BuildGroupException |
withPower(java.lang.Integer power) |
BuildGroupException |
withSlice(int slice) |
BuildGroupException |
withSlice(java.lang.Integer slice) |
BuildGroupException |
withSliceInstance(java.lang.String sliceInstance) |
void |
writeTo(java.io.OutputStream os)
Write this BuildGroupException as an XML fragment
|
public int slice
public java.lang.String sliceInstance
public boolean enabled
public static final boolean DEFAULT_ENABLED
public int power
public static final int DEFAULT_POWER
public BuildGroupException()
public BuildGroupException(BuildGroupException o)
public void setSlice(int slice)
public int getSlice()
public BuildGroupException withSlice(int slice)
public BuildGroupException withSlice(java.lang.Integer slice)
public void setSliceInstance(java.lang.String sliceInstance)
public java.lang.String getSliceInstance()
public BuildGroupException withSliceInstance(java.lang.String sliceInstance)
public void setEnabled(boolean enabled)
public boolean isEnabled()
public BuildGroupException withEnabled(boolean enabled)
public BuildGroupException withEnabled(java.lang.Boolean enabled)
public void setPower(int power)
public int getPower()
public BuildGroupException withPower(int power)
public BuildGroupException withPower(java.lang.Integer power)
public BuildGroupException makeCopy()
public static BuildGroupException readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static BuildGroupException fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.