public class KeepClient
extends java.lang.Object
implements com.hcl.domino.DominoClient
Wrapper around the Resource warning with Domino client. This one closes when the containing session closes
com.hcl.domino.DominoClient.ECLType, com.hcl.domino.DominoClient.Encryption, com.hcl.domino.DominoClient.IBreakHandler, com.hcl.domino.DominoClient.IProgressListener, com.hcl.domino.DominoClient.LifecycleListener, com.hcl.domino.DominoClient.NotesReplicationStats, com.hcl.domino.DominoClient.OpenDatabase, com.hcl.domino.DominoClient.ReplicationStateListener
Constructor and Description |
---|
KeepClient(com.hcl.domino.DominoClient inner) |
Modifier and Type | Method and Description |
---|---|
int |
addAnotherRequest() |
void |
addLifecycleListener(com.hcl.domino.DominoClient.LifecycleListener listener) |
int |
clientCount() |
void |
close() |
void |
close(boolean force)
Shut down the inner client
|
void |
compact(java.lang.String pathname,
java.util.Set<com.hcl.domino.data.CompactMode> mode) |
com.hcl.domino.data.Database |
createDatabase(java.lang.String serverName,
java.lang.String filePath,
boolean forceCreation,
boolean initDesign,
com.hcl.domino.DominoClient.Encryption encryption) |
com.hcl.domino.data.Database |
createDatabase(java.lang.String serverName,
java.lang.String filePath,
boolean forceCreation,
boolean initDesign,
com.hcl.domino.DominoClient.Encryption encryption,
com.hcl.domino.data.DatabaseClass dbClass) |
com.hcl.domino.data.Database |
createDatabaseFromTemplate(java.lang.String sourceServerName,
java.lang.String sourceFilePath,
java.lang.String targetServerName,
java.lang.String targetFilePath,
com.hcl.domino.DominoClient.Encryption encryption) |
com.hcl.domino.data.Database |
createDatabaseReplica(java.lang.String sourceServerName,
java.lang.String sourceFilePath,
java.lang.String targetServerName,
java.lang.String targetFilePath,
com.hcl.domino.DominoClient.Encryption encryption) |
com.hcl.domino.data.DominoDateRange |
createDateRange(java.time.temporal.TemporalAccessor start,
java.time.temporal.TemporalAccessor end) |
com.hcl.domino.data.DominoDateTime |
createDateTime(java.time.temporal.TemporalAccessor temporal) |
com.hcl.domino.dxl.DxlExporter |
createDxlExporter() |
com.hcl.domino.dxl.DxlImporter |
createDxlImporter() |
com.hcl.domino.data.Formula |
createFormula(java.lang.String formula) |
com.hcl.domino.data.IDTable |
createIDTable() |
com.hcl.domino.data.DominoUniversalNoteId |
createUNID(java.lang.String unidStr) |
void |
deleteDatabase(java.lang.String serverName,
java.lang.String filePath) |
void |
finalClose()
Actually closes it
|
<T> T |
getAdapter(java.lang.Class<T> clazz) |
com.hcl.domino.admin.AdministrationProcess |
getAdministrationProcess(java.lang.String serverName) |
com.hcl.domino.BuildVersionInfo |
getBuildVersion(java.lang.String server) |
com.hcl.domino.calendar.Calendaring |
getCalendaring() |
com.hcl.domino.data.DatabaseChangePathList |
getDatabasePaths(java.lang.String serverName,
java.time.temporal.TemporalAccessor modifiedSince) |
com.hcl.domino.runtime.DominoRuntime |
getDominoRuntime() |
com.hcl.domino.security.Ecl |
getEcl(com.hcl.domino.DominoClient.ECLType eclType,
java.util.List<java.lang.String> namesList) |
com.hcl.domino.security.Ecl |
getEcl(com.hcl.domino.DominoClient.ECLType eclType,
java.lang.String userName) |
java.lang.String |
getEffectiveUserName() |
com.hcl.domino.UserNamesList |
getEffectiveUserNamesList(java.lang.String server) |
com.hcl.domino.freebusy.FreeBusy |
getFreeBusy() |
java.lang.String |
getIDUserName() |
com.hcl.domino.admin.idvault.IdVault |
getIdVault() |
java.util.Collection<java.lang.String> |
getKnownServers(java.lang.String portName) |
com.hcl.domino.mq.MessageQueues |
getMessageQueues() |
com.hcl.domino.mime.MimeReader |
getMimeReader() |
com.hcl.domino.mime.MimeWriter |
getMimeWriter() |
com.hcl.domino.person.Person |
getPerson(java.lang.String username) |
com.hcl.domino.admin.replication.Replication |
getReplication() |
com.hcl.domino.html.RichTextHTMLConverter |
getRichTextHtmlConverter() |
com.hcl.domino.admin.ServerAdmin |
getServerAdmin() |
java.util.concurrent.ThreadFactory |
getThreadFactory() |
boolean |
isAdmin() |
boolean |
isFullAccess() |
boolean |
isOnServer() |
com.hcl.domino.data.Database |
openDatabase(java.lang.String path) |
com.hcl.domino.data.Database |
openDatabase(java.lang.String path,
java.util.Set<com.hcl.domino.DominoClient.OpenDatabase> options) |
com.hcl.domino.data.Database |
openDatabase(java.lang.String serverName,
java.lang.String filePath) |
com.hcl.domino.data.Database |
openDatabase(java.lang.String serverName,
java.lang.String filePath,
java.util.Set<com.hcl.domino.DominoClient.OpenDatabase> options) |
com.hcl.domino.dbdirectory.DbDirectory |
openDbDirectory() |
java.util.Optional<com.hcl.domino.data.Database> |
openMailDatabase() |
java.util.Optional<com.hcl.domino.data.Database> |
openMailDatabase(java.util.Set<com.hcl.domino.DominoClient.OpenDatabase> options) |
com.hcl.domino.naming.UserDirectory |
openUserDirectory(java.lang.String serverName) |
com.hcl.domino.server.ServerPingInfo |
pingServer(java.lang.String serverName,
boolean retrieveLoadIndex,
boolean retrieveClusterInfo) |
com.hcl.domino.DominoClient.NotesReplicationStats |
replicateDbsWithServer(java.lang.String serverName,
java.util.Set<com.hcl.domino.data.Database.ReplicateOption> options,
java.util.List<java.lang.String> fileList,
int timeLimitMin,
com.hcl.domino.DominoClient.ReplicationStateListener progressListener) |
java.util.Optional<com.hcl.domino.DominoException> |
resolveErrorCode(int code) |
<T> java.util.concurrent.FutureTask<T> |
runAsync(java.util.concurrent.Callable<T> callable) |
<T> java.util.concurrent.FutureTask<T> |
runAsync(java.util.concurrent.ExecutorService service,
java.util.concurrent.Callable<T> callable) |
<T> T |
runInterruptable(java.util.concurrent.Callable<T> callable,
com.hcl.domino.DominoClient.IBreakHandler breakHandler) |
<T> T |
runWithProgress(java.util.concurrent.Callable<T> callable,
com.hcl.domino.DominoClient.IProgressListener progressHandler) |
java.lang.String |
validateCredentials(java.lang.String serverName,
java.lang.String userName,
java.lang.String password) |
java.lang.String |
validateCredentialsWithToken(java.lang.String serverName,
java.lang.Object token) |
public KeepClient(com.hcl.domino.DominoClient inner)
inner
- Real Domino client protected from premature closurepublic int addAnotherRequest()
public void addLifecycleListener(com.hcl.domino.DominoClient.LifecycleListener listener)
addLifecycleListener
in interface com.hcl.domino.DominoClient
public int clientCount()
public void close()
close
in interface com.hcl.domino.DominoClient
close
in interface java.lang.AutoCloseable
public void close(boolean force)
Shut down the inner client
force
- shutdown client if truepublic void compact(java.lang.String pathname, java.util.Set<com.hcl.domino.data.CompactMode> mode)
compact
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.Database createDatabase(java.lang.String serverName, java.lang.String filePath, boolean forceCreation, boolean initDesign, com.hcl.domino.DominoClient.Encryption encryption)
createDatabase
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.Database createDatabase(java.lang.String serverName, java.lang.String filePath, boolean forceCreation, boolean initDesign, com.hcl.domino.DominoClient.Encryption encryption, com.hcl.domino.data.DatabaseClass dbClass)
createDatabase
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.Database createDatabaseFromTemplate(java.lang.String sourceServerName, java.lang.String sourceFilePath, java.lang.String targetServerName, java.lang.String targetFilePath, com.hcl.domino.DominoClient.Encryption encryption)
createDatabaseFromTemplate
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.Database createDatabaseReplica(java.lang.String sourceServerName, java.lang.String sourceFilePath, java.lang.String targetServerName, java.lang.String targetFilePath, com.hcl.domino.DominoClient.Encryption encryption)
createDatabaseReplica
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.DominoDateRange createDateRange(java.time.temporal.TemporalAccessor start, java.time.temporal.TemporalAccessor end)
createDateRange
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.DominoDateTime createDateTime(java.time.temporal.TemporalAccessor temporal)
createDateTime
in interface com.hcl.domino.DominoClient
public com.hcl.domino.dxl.DxlExporter createDxlExporter()
createDxlExporter
in interface com.hcl.domino.DominoClient
public com.hcl.domino.dxl.DxlImporter createDxlImporter()
createDxlImporter
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.Formula createFormula(java.lang.String formula) throws com.hcl.domino.exception.FormulaCompilationException
createFormula
in interface com.hcl.domino.DominoClient
com.hcl.domino.exception.FormulaCompilationException
public com.hcl.domino.data.IDTable createIDTable()
createIDTable
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.DominoUniversalNoteId createUNID(java.lang.String unidStr)
createUNID
in interface com.hcl.domino.DominoClient
public void deleteDatabase(java.lang.String serverName, java.lang.String filePath)
deleteDatabase
in interface com.hcl.domino.DominoClient
public void finalClose()
Actually closes it
public <T> T getAdapter(java.lang.Class<T> clazz)
getAdapter
in interface com.hcl.domino.data.IAdaptable
public com.hcl.domino.admin.AdministrationProcess getAdministrationProcess(java.lang.String serverName)
getAdministrationProcess
in interface com.hcl.domino.DominoClient
public com.hcl.domino.BuildVersionInfo getBuildVersion(java.lang.String server)
getBuildVersion
in interface com.hcl.domino.DominoClient
public com.hcl.domino.calendar.Calendaring getCalendaring()
getCalendaring
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.DatabaseChangePathList getDatabasePaths(java.lang.String serverName, java.time.temporal.TemporalAccessor modifiedSince)
getDatabasePaths
in interface com.hcl.domino.DominoClient
public com.hcl.domino.runtime.DominoRuntime getDominoRuntime()
getDominoRuntime
in interface com.hcl.domino.DominoClient
public com.hcl.domino.security.Ecl getEcl(com.hcl.domino.DominoClient.ECLType eclType, java.util.List<java.lang.String> namesList)
getEcl
in interface com.hcl.domino.DominoClient
public com.hcl.domino.security.Ecl getEcl(com.hcl.domino.DominoClient.ECLType eclType, java.lang.String userName)
getEcl
in interface com.hcl.domino.DominoClient
public java.lang.String getEffectiveUserName()
getEffectiveUserName
in interface com.hcl.domino.DominoClient
public com.hcl.domino.UserNamesList getEffectiveUserNamesList(java.lang.String server)
getEffectiveUserNamesList
in interface com.hcl.domino.DominoClient
public com.hcl.domino.freebusy.FreeBusy getFreeBusy()
getFreeBusy
in interface com.hcl.domino.DominoClient
public java.lang.String getIDUserName()
getIDUserName
in interface com.hcl.domino.DominoClient
public com.hcl.domino.admin.idvault.IdVault getIdVault()
getIdVault
in interface com.hcl.domino.DominoClient
public java.util.Collection<java.lang.String> getKnownServers(java.lang.String portName)
getKnownServers
in interface com.hcl.domino.DominoClient
public com.hcl.domino.mq.MessageQueues getMessageQueues()
getMessageQueues
in interface com.hcl.domino.DominoClient
public com.hcl.domino.mime.MimeReader getMimeReader()
getMimeReader
in interface com.hcl.domino.DominoClient
public com.hcl.domino.mime.MimeWriter getMimeWriter()
getMimeWriter
in interface com.hcl.domino.DominoClient
public com.hcl.domino.person.Person getPerson(java.lang.String username)
getPerson
in interface com.hcl.domino.DominoClient
public com.hcl.domino.admin.replication.Replication getReplication()
getReplication
in interface com.hcl.domino.DominoClient
public com.hcl.domino.html.RichTextHTMLConverter getRichTextHtmlConverter()
getRichTextHtmlConverter
in interface com.hcl.domino.DominoClient
public com.hcl.domino.admin.ServerAdmin getServerAdmin()
getServerAdmin
in interface com.hcl.domino.DominoClient
public java.util.concurrent.ThreadFactory getThreadFactory()
getThreadFactory
in interface com.hcl.domino.DominoClient
public boolean isAdmin()
isAdmin
in interface com.hcl.domino.DominoClient
public boolean isFullAccess()
isFullAccess
in interface com.hcl.domino.DominoClient
public boolean isOnServer()
isOnServer
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.Database openDatabase(java.lang.String path)
openDatabase
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.Database openDatabase(java.lang.String path, java.util.Set<com.hcl.domino.DominoClient.OpenDatabase> options)
openDatabase
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.Database openDatabase(java.lang.String serverName, java.lang.String filePath)
openDatabase
in interface com.hcl.domino.DominoClient
public com.hcl.domino.data.Database openDatabase(java.lang.String serverName, java.lang.String filePath, java.util.Set<com.hcl.domino.DominoClient.OpenDatabase> options)
openDatabase
in interface com.hcl.domino.DominoClient
public com.hcl.domino.dbdirectory.DbDirectory openDbDirectory()
openDbDirectory
in interface com.hcl.domino.DominoClient
public java.util.Optional<com.hcl.domino.data.Database> openMailDatabase()
openMailDatabase
in interface com.hcl.domino.DominoClient
public java.util.Optional<com.hcl.domino.data.Database> openMailDatabase(java.util.Set<com.hcl.domino.DominoClient.OpenDatabase> options)
openMailDatabase
in interface com.hcl.domino.DominoClient
public com.hcl.domino.naming.UserDirectory openUserDirectory(java.lang.String serverName)
openUserDirectory
in interface com.hcl.domino.DominoClient
public com.hcl.domino.server.ServerPingInfo pingServer(java.lang.String serverName, boolean retrieveLoadIndex, boolean retrieveClusterInfo)
pingServer
in interface com.hcl.domino.DominoClient
public com.hcl.domino.DominoClient.NotesReplicationStats replicateDbsWithServer(java.lang.String serverName, java.util.Set<com.hcl.domino.data.Database.ReplicateOption> options, java.util.List<java.lang.String> fileList, int timeLimitMin, com.hcl.domino.DominoClient.ReplicationStateListener progressListener)
replicateDbsWithServer
in interface com.hcl.domino.DominoClient
public java.util.Optional<com.hcl.domino.DominoException> resolveErrorCode(int code)
resolveErrorCode
in interface com.hcl.domino.DominoClient
public <T> java.util.concurrent.FutureTask<T> runAsync(java.util.concurrent.Callable<T> callable)
runAsync
in interface com.hcl.domino.DominoClient
public <T> java.util.concurrent.FutureTask<T> runAsync(java.util.concurrent.ExecutorService service, java.util.concurrent.Callable<T> callable)
runAsync
in interface com.hcl.domino.DominoClient
public <T> T runInterruptable(java.util.concurrent.Callable<T> callable, com.hcl.domino.DominoClient.IBreakHandler breakHandler)
runInterruptable
in interface com.hcl.domino.DominoClient
public <T> T runWithProgress(java.util.concurrent.Callable<T> callable, com.hcl.domino.DominoClient.IProgressListener progressHandler)
runWithProgress
in interface com.hcl.domino.DominoClient
public java.lang.String validateCredentials(java.lang.String serverName, java.lang.String userName, java.lang.String password) throws javax.naming.NameNotFoundException, javax.naming.AuthenticationException, javax.naming.AuthenticationNotSupportedException
validateCredentials
in interface com.hcl.domino.DominoClient
javax.naming.NameNotFoundException
javax.naming.AuthenticationException
javax.naming.AuthenticationNotSupportedException
public java.lang.String validateCredentialsWithToken(java.lang.String serverName, java.lang.Object token) throws javax.naming.NameNotFoundException, javax.naming.AuthenticationException, javax.naming.AuthenticationNotSupportedException
validateCredentialsWithToken
in interface com.hcl.domino.DominoClient
javax.naming.NameNotFoundException
javax.naming.AuthenticationException
javax.naming.AuthenticationNotSupportedException