public class ConnectOptions extends Object
LibraryService.connect
.Modifier and Type | Field and Description |
---|---|
protected String |
m_ApplicationName
The name of the application creating the session.
|
protected String |
m_EventPollerClassname
The fully-qualified classname of the session's event poller.
|
protected boolean |
m_ForSchemaUpgrade
Whether the session is being established to upgrade the iFS schema.
|
protected Hashtable |
m_InitialSessionState
The initial session state to use for the session.
|
protected Locale |
m_Locale
The Locale of the session.
|
protected BoundedCacheConfiguration |
m_RemoteDataCacheConfiguration
The configuration of the session's remote data cache.
|
Constructor and Description |
---|
ConnectOptions()
Constructs a ConnectOptions.
|
Modifier and Type | Method and Description |
---|---|
String |
getApplicationName()
Gets the name of the application creating the session.
|
String |
getEventPollerClassname()
Gets the classname of the event poller for the new session.
|
Locale |
getLocale()
Gets the Locale of the new session.
|
BoundedCacheConfiguration |
getRemoteDataCacheConfiguration()
Gets the configuration of the new session's remote data cache.
|
Hashtable |
getSessionState()
Gets the initial session to use for the session.
|
boolean |
isForSchemaUpgrade()
Gets whether the session is being established to upgrade the iFS schema.
|
void |
setApplicationName(String name)
Sets the name of the application creating the session.
|
void |
setEventPollerClassname(String classname)
Sets the classname of the event poller for the new session.
|
void |
setForSchemaUpgrade(boolean forSchemaUpgrade)
Sets whether the session is being established to upgrade the iFS schema.
|
void |
setLocale(Locale locale)
Sets the Locale of the new session.
|
void |
setRemoteDataCacheConfiguration(BoundedCacheConfiguration cacheConfiguration)
Sets the configuration of the new session's remote data cache.
|
void |
setSessionState(Hashtable state)
Sets the initial session to use for the session.
|
protected String m_ApplicationName
protected Locale m_Locale
protected BoundedCacheConfiguration m_RemoteDataCacheConfiguration
protected String m_EventPollerClassname
protected boolean m_ForSchemaUpgrade
protected Hashtable m_InitialSessionState
public ConnectOptions() throws IfsException
IfsException
- if the operation failspublic void setApplicationName(String name) throws IfsException
The value is not used internally; it is purely informational.
name
- the application nameIfsException
- if the operation failspublic String getApplicationName() throws IfsException
The value is not used internally; it is purely informational.
IfsException
- if the operation failspublic void setLocale(Locale locale) throws IfsException
locale
- the LocaleIfsException
- if the operation failspublic Locale getLocale() throws IfsException
IfsException
- if the operation failspublic void setRemoteDataCacheConfiguration(BoundedCacheConfiguration cacheConfiguration) throws IfsException
The remote data cache configuration is needed only when connecting to a remote service; it is ignored when connecting to a local (in-process) service. If unspecified, the configuration is determined from the service's properties file.
cacheConfiguration
- the cache configurationIfsException
- if the operation failspublic BoundedCacheConfiguration getRemoteDataCacheConfiguration() throws IfsException
IfsException
- if the operation failspublic void setEventPollerClassname(String classname) throws IfsException
Currently, the out-of-the-box LibrarySessionEventPollers are LibrarySessionEventPollerThreadPerSession and LibrarySessionEventPollerThreadPerProcess.
If unspecified, the session's event poller is determined from the service's properties file.
classname
- the fully-qualified classnameIfsException
- if the operation failspublic String getEventPollerClassname() throws IfsException
IfsException
- if the operation failspublic void setForSchemaUpgrade(boolean forSchemaUpgrade) throws IfsException
If true, and if the authenticated user is the "system" user (an id of 96), the schema version check normally performed at authentication is bypassed.
forSchemaUpgrade
- whether the session is being established to
upgrade the iFS schemaIfsException
- if the operation failspublic boolean isForSchemaUpgrade() throws IfsException
If true, and if the authenticated user is the "system" user (an id of 96), the schema version check normally performed at authentication is bypassed.
IfsException
- if the operation failspublic void setSessionState(Hashtable state) throws IfsException
state
- the initial session stateIfsException
- if the operation failspublic Hashtable getSessionState() throws IfsException
IfsException
- if the operation failsCopyright © 2023. All rights reserved.