public abstract class ALfnClientEnvironment extends Object
The client environment also allows configuration of the execution environment. Specifically, an XML data model can be added to support extension schemas (ISO 19115 metadata) on the clients.
newInstance(com.luciad.fusion.core.ALfnEnvironment)
Constructor and Description |
---|
ALfnClientEnvironment() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Closes this client environment and releases all its resources.
|
abstract void |
configureDataModel(TLcdDataModel aDataModel)
Configures an additional data model on the XML encoder and decoder.
|
abstract ALfnEnvironment |
getEnvironment()
Returns the core environment.
|
abstract int |
getGetTileThreadCount()
Gets the number of threads used for getting tiles.
|
abstract int |
getPutTileThreadCount()
Gets the number of threads used for putting tiles.
|
static ALfnClientEnvironment |
newInstance(ALfnEnvironment aEnvironment)
Creates a new client environment.
|
abstract void |
setGetTileThreadCount(int aThreadCount)
Sets the number of threads for getting tiles.
|
abstract void |
setPutTileThreadCount(int aThreadCount)
Sets the number of threads for putting tiles.
|
public static ALfnClientEnvironment newInstance(ALfnEnvironment aEnvironment)
aEnvironment
- the core environmentpublic abstract ALfnEnvironment getEnvironment()
public abstract void configureDataModel(TLcdDataModel aDataModel)
aDataModel
- a data model to be addedpublic abstract int getGetTileThreadCount()
Net/Get-i/n
where i
is their index in the pool (offset by 1) and n
is the pool size.
The default value is 16 threads.public abstract void setGetTileThreadCount(int aThreadCount)
aThreadCount
- the new thread countgetGetTileThreadCount()
public abstract int getPutTileThreadCount()
Net/Put-i/n
where i
is their index in the pool (offset by 1) and n
is the pool size.
The default value is 16 threads.public abstract void setPutTileThreadCount(int aThreadCount)
aThreadCount
- the new thread countgetPutTileThreadCount()
public abstract void close() throws IOException, InterruptedException
finalize()
.
This may happen at an undetermined time in the future, if at all.
If you have time-dependent code that relies on the client environment being closed at a specific point in time, you should explicitly close it.
Closing the client environment multiple times does not throw and has the same effect as closing it once.IOException
- in case of an I/O failureInterruptedException
- when the closing is interrupted