public abstract class SearchTarget
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NB_VIRTUAL_PARTITION_PER_SLICE |
static int |
DEFAULT_WATCH_DOG_CONNECT_TIMEOUT_M_S |
static int |
DEFAULT_WATCH_DOG_READ_TIMEOUT_M_S |
int |
nbVirtualPartitionPerSlice |
java.lang.String |
targetName |
int |
watchDogConnectTimeoutMS |
int |
watchDogReadTimeoutMS |
Constructor and Description |
---|
SearchTarget() |
SearchTarget(SearchTarget o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SearchTarget.
|
static SearchTarget |
fromString(java.lang.String s)
String representation of this SearchTarget.
|
int |
getNbVirtualPartitionPerSlice()
Split every slices of the target in nbVirtualPartitionPerSlice virtual partitions.
|
java.lang.String |
getTargetName()
The name of this search target.
This is the name to use in the search-api to reference a particular search target. Value must be a string matching '[A-Za-z0-9_]+'. |
int |
getWatchDogConnectTimeoutMS()
Global 'connect' timeout for connection to index slices maintained by this search target.
This is an advanced parameter that should generally not be modified. |
int |
getWatchDogReadTimeoutMS()
Global 'read' timeout for connection to index slices maintainted by this search target.
This is an advanced parameter that should generally not be modified. |
SearchTarget |
makeCopy() |
static SearchTarget |
readFrom(java.io.InputStream is)
Read this SearchTarget from an XML fragment.
|
void |
setNbVirtualPartitionPerSlice(int nbVirtualPartitionPerSlice)
Split every slices of the target in nbVirtualPartitionPerSlice virtual partitions.
|
void |
setTargetName(java.lang.String targetName)
The name of this search target.
This is the name to use in the search-api to reference a particular search target. Value must be a string matching '[A-Za-z0-9_]+'. |
void |
setWatchDogConnectTimeoutMS(int watchDogConnectTimeoutMS)
Global 'connect' timeout for connection to index slices maintained by this search target.
This is an advanced parameter that should generally not be modified. |
void |
setWatchDogReadTimeoutMS(int watchDogReadTimeoutMS)
Global 'read' timeout for connection to index slices maintainted by this search target.
This is an advanced parameter that should generally not be modified. |
java.lang.String |
toString()
String representation of this SearchTarget.
|
SearchTarget |
withNbVirtualPartitionPerSlice(int nbVirtualPartitionPerSlice) |
SearchTarget |
withNbVirtualPartitionPerSlice(java.lang.Integer nbVirtualPartitionPerSlice) |
SearchTarget |
withTargetName(java.lang.String targetName) |
SearchTarget |
withWatchDogConnectTimeoutMS(int watchDogConnectTimeoutMS) |
SearchTarget |
withWatchDogConnectTimeoutMS(java.lang.Integer watchDogConnectTimeoutMS) |
SearchTarget |
withWatchDogReadTimeoutMS(int watchDogReadTimeoutMS) |
SearchTarget |
withWatchDogReadTimeoutMS(java.lang.Integer watchDogReadTimeoutMS) |
void |
writeTo(java.io.OutputStream os) |
public java.lang.String targetName
public int watchDogConnectTimeoutMS
public static final int DEFAULT_WATCH_DOG_CONNECT_TIMEOUT_M_S
public int watchDogReadTimeoutMS
public static final int DEFAULT_WATCH_DOG_READ_TIMEOUT_M_S
public int nbVirtualPartitionPerSlice
public static final int DEFAULT_NB_VIRTUAL_PARTITION_PER_SLICE
public SearchTarget()
public SearchTarget(SearchTarget o)
public void setTargetName(java.lang.String targetName)
public java.lang.String getTargetName()
public SearchTarget withTargetName(java.lang.String targetName)
public void setWatchDogConnectTimeoutMS(int watchDogConnectTimeoutMS)
public int getWatchDogConnectTimeoutMS()
public SearchTarget withWatchDogConnectTimeoutMS(int watchDogConnectTimeoutMS)
public SearchTarget withWatchDogConnectTimeoutMS(java.lang.Integer watchDogConnectTimeoutMS)
public void setWatchDogReadTimeoutMS(int watchDogReadTimeoutMS)
public int getWatchDogReadTimeoutMS()
public SearchTarget withWatchDogReadTimeoutMS(int watchDogReadTimeoutMS)
public SearchTarget withWatchDogReadTimeoutMS(java.lang.Integer watchDogReadTimeoutMS)
public void setNbVirtualPartitionPerSlice(int nbVirtualPartitionPerSlice)
public int getNbVirtualPartitionPerSlice()
public SearchTarget withNbVirtualPartitionPerSlice(int nbVirtualPartitionPerSlice)
public SearchTarget withNbVirtualPartitionPerSlice(java.lang.Integer nbVirtualPartitionPerSlice)
public SearchTarget makeCopy()
public static SearchTarget 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 SearchTarget 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.