public abstract class BaseApp extends BaseMain implements Runnable
| Modifier and Type | Field and Description | 
|---|---|
protected DirectoryObject | 
m_currentuser
Deprecated. 
 
invoke  
 getUser  on the session returned from 
  connect  methods. | 
protected LibrarySession | 
m_session
Deprecated. 
 
save the session that is returned from 
  
 connect  methods. | 
m_defaultWriter, m_logWriter, m_parametertable, m_timervalue| Constructor and Description | 
|---|
BaseApp(String[] args)
Construct with commandline arguments. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
LibrarySession | 
connect()
Create a LibrarySession. 
 | 
protected void | 
Connect()
Create a LibrarySession. 
 | 
LibrarySession | 
connect(Credential credential,
       ConnectOptions options)
Create a LibrarySession, from the specified Credential and ConnectOptions. 
 | 
protected void | 
Connect(Credential credential,
       ConnectOptions options)
Create a LibrarySession, from the specified Credential and ConnectOptions. 
 | 
protected void | 
Connect(Credential credential,
       ConnectOptions options,
       String server)
Create a LibrarySession, from the specified Credential and ConnectOptions. 
 | 
protected void | 
Connect(Credential credential,
       ConnectOptions options,
       String serviceName,
       String password)
Create a LibrarySession, from the specified Credential and ConnectOptions. 
 | 
LibrarySession | 
connect(String username,
       String password,
       String server)
Create a LibrarySession. 
 | 
protected void | 
Connect(String username,
       String password,
       String server)
Create a LibrarySession. 
 | 
LibrarySession | 
connect(String username,
       String password,
       String server,
       String serverPassword)
Create a LibrarySession. 
 | 
protected void | 
Connect(String username,
       String password,
       String server,
       String serverPassword)
Create a LibrarySession. 
 | 
protected void | 
Disconnect()
Disconnect the last session connected with a  
 connect 
 method. | 
static String | 
getCachePerformanceString(LibrarySession session)
Get the cache performance, as a String. 
 | 
protected CleartextCredential | 
getCleartextCredential()
create CleartextCredential using username/password information
 in the Parametertable. 
 | 
protected CleartextCredential | 
getCleartextCredential(String username,
                      String password)
create CleartextCredential using specified username/password. 
 | 
static String | 
getConnectionPoolPerformanceString(LibrarySession session)
Get the connection pool performance, as a String. 
 | 
protected ConnectOptions | 
getConnectOptions()
create ConnectOptions using server information
 in the Parametertable. 
 | 
protected ConnectOptions | 
getConnectOptions(String server)
create ConnectOptions using specified server and other information
 in the Parametertable. 
 | 
protected ConnectOptions | 
getConnectOptions(String server,
                 String dbPassword)
create ConnectOptions using specified server & server password,
 and other information in the Parametertable. 
 | 
protected Locale | 
getLocale()
Gets the the Locale from ParameterTable settings 
 | 
void | 
showCachePerformance(LibrarySession session)
Display the cache performance. 
 | 
void | 
showConnectionPoolPerformance(LibrarySession session)
Display the connection pool performance. 
 | 
getElapsedTime, getParameterTable, initTrace, log, log, logCurrentTimestamp, printStackTrace, setTimer, showElapsedTime@Deprecated protected LibrarySession m_session
 connect  methods.@Deprecated protected DirectoryObject m_currentuser
 getUser  on the session returned from 
  connect  methods.public BaseApp(String[] args)
args - the arguments passed to main.public LibrarySession connect() throws IfsException
IfsException - if operation fails.public LibrarySession connect(String username, String password, String server) throws IfsException
IfsException - if operation fails.public LibrarySession connect(String username, String password, String server, String serverPassword) throws IfsException
IfsException - if operation fails.public LibrarySession connect(Credential credential, ConnectOptions options) throws IfsException
credential - supplied credential.options - Connection options.IfsException - if operation fails.protected void Connect()
                throws IfsException
IfsException - if operation fails.protected void Connect(String username, String password, String server) throws IfsException
IfsException - if operation fails.protected void Connect(String username, String password, String server, String serverPassword) throws IfsException
IfsException - if operation fails.protected void Connect(Credential credential, ConnectOptions options) throws IfsException
credential - supplied credential.options - Connection options.IfsException - if operation fails.protected void Connect(Credential credential, ConnectOptions options, String server) throws IfsException
credential - supplied credential.options - Connection options.server - name of the serverIfsException - if operation fails.protected void Connect(Credential credential, ConnectOptions options, String serviceName, String password) throws IfsException
credential - supplied credential.options - Connection options.serviceName - service to connectpassword - service passwordIfsException - if operation fails.protected CleartextCredential getCleartextCredential() throws IfsException
IfsException - if operation fails.protected CleartextCredential getCleartextCredential(String username, String password) throws IfsException
username - The user name.password - The user password.IfsException - if operation fails.protected ConnectOptions getConnectOptions() throws IfsException
IfsException - if operation fails.protected ConnectOptions getConnectOptions(String server) throws IfsException
server - The name of the iFS server.IfsException - if operation fails.protected ConnectOptions getConnectOptions(String server, String dbPassword) throws IfsException
server - The name of the iFS server.dbPassword - The password for the iFS server.IfsException - if operation fails.protected Locale getLocale() throws IfsException
IfsException - if the operation failsprotected void Disconnect()
                   throws IfsException
 connect 
 method.IfsExceptionpublic static String getCachePerformanceString(LibrarySession session) throws IfsException
IfsException - if the operation failspublic void showCachePerformance(LibrarySession session) throws IfsException
IfsException - if the operation failspublic static String getConnectionPoolPerformanceString(LibrarySession session) throws IfsException
session - the LibrarySession to useIfsException - if the operation failspublic void showConnectionPoolPerformance(LibrarySession session) throws IfsException
session - the LibrarySession to useIfsException - if the operation failsCopyright © 2025. All rights reserved.