public class BackendConnection extends AbstractBackendConnection implements ServerConnectionI
EMPTY_ARRAY| Constructor and Description |
|---|
BackendConnection(BackendConnectionManagerI m,
java.lang.String s,
ServerConnectionInfoReceiverI r,
java.lang.Long t,
TransportProviderFactoryI _transportProviderFactory,
boolean existsAlternativeConnection) |
| Modifier and Type | Method and Description |
|---|---|
Anmeldung |
authenticateImpl(java.lang.String user,
java.lang.String pass,
java.lang.String originHash) |
void |
cancelForcedClientDisconnect() |
void |
cancelForcedClientDisconnect(java.util.Map msgClients) |
boolean |
checkServerConnectivity() |
boolean |
checkServerConnectivity(boolean force) |
void |
copyRemoteBLOBsToLocalFileVault(ServerFileVaultI serverFileVault,
java.util.List<java.lang.Long> pendingBLOBChangeBOIdsLocal,
java.lang.Long lastAuthNodeBTId) |
java.lang.String |
createExpiringToken(java.lang.String serviceName,
byte[] value,
long expiryms)
Works like @see #createExpiringToken(String,String,byte[],long), but creates a non-conflicting tokenName
within the store, stores the value and returns the chosen tokenName.
|
void |
createExpiringToken(java.lang.String serviceName,
java.lang.String tokenName,
byte[] value,
long expiryms)
Creates a time limited association of the given service and token name to a byte array value (usually a key).
|
void |
demandForcedClientDisconnect(int cSecsDelay) |
void |
demandForcedClientDisconnect(int cSecsDelay,
java.lang.String msg) |
void |
demandForcedClientDisconnect(int cSecsDelay,
java.lang.String msg,
java.util.Map msgClients) |
byte[] |
destroyExpiringToken(java.lang.String serviceName,
java.lang.String tokenName)
Destroys a time limited token immediately
|
void |
disconnect() |
void |
execute(BatchedBackendRequestI[] bbrs) |
boolean |
exists(java.lang.Long id) |
boolean |
exists(java.lang.Long id,
java.lang.Class<? extends BOI> classtip) |
java.lang.String |
getAddress() |
java.lang.String[] |
getAvailableLocalesForUserInterface() |
byte[] |
getBLOB(java.lang.Long id) |
long |
getBLOB(java.lang.Long id,
java.io.DataOutput dataOutput) |
long |
getBLOB(java.lang.Long id,
java.io.DataOutput dataOutput,
boolean closeOS) |
long |
getBLOB(java.lang.Long id,
java.io.DataOutput dataOutput,
boolean closeOS,
java.lang.Long backuppingBPId) |
byte[] |
getBLOB(java.lang.Long id,
java.lang.Long backuppingBPId) |
long |
getBLOB(java.lang.Long id,
java.io.OutputStream os) |
long |
getBLOB(java.lang.Long id,
java.io.OutputStream os,
boolean closeOS) |
long |
getBLOB(java.lang.Long id,
java.io.OutputStream os,
boolean closeOS,
java.lang.Long backuppingBPId) |
VFile |
getBLOBInfo(java.lang.Long id) |
VFile |
getBLOBInfo(java.lang.Long id,
java.lang.Long backuppingBPId) |
BO |
getBO(java.lang.Long id) |
BO |
getBO(java.lang.Long id,
java.lang.Class<? extends BOI> classtip) |
BO[] |
getBOs(long[] ids) |
BO[] |
getBOs(java.lang.Long[] ids) |
BO[] |
getBOs(long[] ids,
java.lang.Class<? extends BOI> classtip) |
BO[] |
getBOs(java.lang.Long[] ids,
java.lang.Class<? extends BOI> classtip) |
ClientSessionInfo[] |
getClientSessionInfos() |
int |
getComplexCommandsTimeoutSeconds() |
int |
getConciseCommandsTimeoutSeconds() |
CryptoHandlerI |
getCryptoHandler() |
DBManInfo |
getDBManInfo() |
java.lang.String |
getDomain() |
long[] |
getIdList(java.lang.String ftClauses) |
long[] |
getIdList(java.lang.String ftClauses,
java.lang.String classname) |
java.lang.String |
getIdListAsString(java.lang.String ftClauses) |
java.lang.String |
getIdListAsString(java.lang.String ftClauses,
java.lang.String classname) |
KeyRange |
getIdRange(long size) |
java.lang.String[] |
getInitialAvailableLocalesForUserInterface() |
java.lang.String |
getInstanceName() |
L10nInfoContainer |
getL10nPackPreload(java.lang.String locale) |
L10nPack[] |
getL10nPacks(java.lang.String[] packNames,
java.lang.String localeName)
Retrieves an array of
L10nPack objects for multiple specified bundle names and a single locale. |
L10nPathEntry[] |
getL10nPath()
Retrieves the localization path entries provided by this pack provider.
|
java.lang.String |
getL10nViaString()
Provides a descriptive string indicating the means by which localization (L10n) data was delivered.
|
Struktur[] |
getLazyStruktur(java.lang.Long botId) |
Benutzer |
getLoggedInUser() |
int |
getMaxPool() |
int |
getMediumCommandsTimeoutSeconds() |
int |
getMinPool() |
java.lang.Long |
getNextId() |
int |
getNextLegacySlot() |
PermissionHandlerWithUserI |
getPermissionHandler() |
int |
getPort() |
java.lang.Integer |
getPosition() |
BO[] |
getRelationBOs(java.lang.Long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attributeName) |
SchemaI |
getRemoteSchema() |
java.lang.String |
getRemoteSchemaFingerprint() |
java.lang.String |
getRemoteSchemaUIDs() |
java.lang.String |
getRemoteSchemaVersion() |
int |
getRoundTrips() |
java.net.InetAddress |
getServerInetAddress() |
java.lang.String |
getServerName() |
java.lang.String |
getServerName(boolean evenIfNoActiveConnection) |
java.lang.Long |
getSessionId(boolean blockUntilAvailable) |
BackendSessionInfo[] |
getSessionInfos() |
int |
getSimpleCommandsTimeoutSeconds() |
int |
getSimpleCommandsTimeoutSeconds(int customTimeout) |
long |
getSlowConnectionThreshold() |
java.lang.String |
getSubVersion() |
TermInfoI[] |
getTermsFromServer() |
TermInfoI[] |
getTermsFromServer(EntityI entity) |
TermInfoI[] |
getTermsFromServer(EntityI entity,
java.lang.String regex) |
TermInfoI[] |
getTermsFromServer(EntityI entity,
java.lang.String regex,
int size) |
TermInfoI[] |
getTermsFromServer(EntityI entity,
java.lang.String regex,
int size,
boolean includeDeleted) |
TermInfoI[] |
getTermsFromServer(EntityI entity,
java.lang.String regex,
int size,
boolean includeDeleted,
java.lang.String[] propertyNames) |
TermInfoI[] |
getTermsFromServer(EntityI entity,
java.lang.String regex,
int size,
boolean includeDeleted,
java.lang.String[] propertyNames,
boolean sortByName) |
TermInfoI[] |
getTermsFromServer(EntityI entity,
java.lang.String regex,
int size,
boolean includeDeleted,
java.lang.String[] propertyNames,
boolean sortByName,
boolean withSubEntities) |
TermInfoI[] |
getTermsRaw() |
TermInfoI[] |
getTermsRaw(EntityI entity) |
TermInfoI[] |
getTermsRaw(EntityI entity,
int size) |
TermInfoI[] |
getTermsRaw(EntityI entity,
int size,
boolean includeDeleted) |
TermInfoI[] |
getTermsRaw(EntityI entity,
int size,
boolean includeDeleted,
java.lang.String[] propertyNames) |
TermInfoI[] |
getTermsRaw(EntityI entity,
int size,
boolean includeDeleted,
java.lang.String[] propertyNames,
boolean sortByName) |
TermInfoI[] |
getTermsRaw(EntityI entity,
int size,
boolean includeDeleted,
java.lang.String[] propertyNames,
boolean sortByName,
boolean withSubEntities) |
java.lang.String[] |
getTermSuggestions(EntityI entity,
java.lang.String term) |
java.lang.String[] |
getTermSuggestions(EntityI entity,
java.lang.String term,
int size) |
java.lang.String[] |
getTermSuggestions(EntityI entity,
java.lang.String term,
int size,
boolean includeDeleted) |
java.lang.String[] |
getTermSuggestions(EntityI entity,
java.lang.String term,
int size,
boolean includeDeleted,
boolean morePopular) |
java.lang.String[] |
getTermSuggestions(EntityI entity,
java.lang.String term,
int size,
boolean includeDeleted,
boolean morePopular,
float accuracy) |
java.lang.String[] |
getTermSuggestions(EntityI entity,
java.lang.String term,
int size,
boolean includeDeleted,
boolean morePopular,
float accuracy,
java.lang.String propertyName) |
java.lang.String[] |
getTermSuggestions(EntityI entity,
java.lang.String term,
int size,
boolean includeDeleted,
boolean morePopular,
float accuracy,
java.lang.String propertyName,
boolean withSubEntities) |
java.lang.String |
getURLPrefix() |
boolean |
hasBLOB(java.lang.Long id) |
boolean |
hasBLOB(java.lang.Long id,
java.lang.Long backuppingBPId) |
java.util.BitSet |
haveBLOB(long[] ids) |
void |
initiateServerShutdown() |
void |
initiateServerShutdown(int cSecsDelay) |
void |
initiateServerShutdown(int cSecsDelay,
java.lang.String msg) |
void |
initSession()
Pings the server and initializes a new session on the server.
|
boolean |
isConnected() |
boolean |
isFTSActive() |
boolean |
isFTSAvailable() |
boolean |
isMemoryTightClient() |
boolean |
isNotificationSystemActivated() |
boolean |
isOperational()
Checks if this L10n pack provider is currently operational and ready to serve requests.
|
boolean |
isServerAuthoritativeSyncServer() |
boolean |
isTls() |
int |
legacySlotAccumulator(int i) |
void |
lockServer() |
void |
parseConnectionInfosFromServerUrl()
Parses the given String and sets connection infos the given String contains.
|
boolean |
ping()
Pings the server.
|
BatchedBackendRequestI |
prepareQuery(java.lang.String s) |
BatchedBackendRequestI |
prepareQuery(java.lang.String s,
java.lang.Object[] o) |
de.ipcon.db.core.QueryResultsI |
query(java.lang.String s) |
de.ipcon.db.core.QueryResultsI |
query(java.lang.String s,
java.lang.Object[] o) |
de.ipcon.db.core.QueryResultsI |
queryRelation(long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attributeName) |
void |
resetPassword(java.lang.String username) |
byte[] |
retrieveExpiringToken(java.lang.String serviceName,
java.lang.String tokenName)
Retrieves a time limited token
|
TransactionAnswer |
saveBO(Transaction tx)
Persists the changes recorded in the passed Transaction tx to the database.
|
TransactionAnswer |
saveBO(Transaction tx,
int lockTimeout)
Persists the changes recorded in the passed Transaction tx to the database.
|
TransactionAnswer |
saveBO(Transaction tx,
int lockTimeout,
int retries)
Persists the changes recorded in the passed Transaction tx to the database.
|
void |
sendSystemMessage(java.lang.String msg) |
void |
sendSystemMessage(java.lang.String msg,
java.util.Map msgClients) |
void |
setDomain(java.lang.String $44) |
void |
setMaxPool(int $47) |
void |
setMinPool(int $46) |
void |
setPort(int $45) |
void |
setPosition(java.lang.Integer $50) |
void |
setSessionLocale(java.util.Locale locale)
Marks a client-side locale change on the server, so the server sends messages and exceptions
in the correct locale to the client.
|
void |
setSubVersion(java.lang.String $48) |
void |
setTls(boolean $49) |
void |
skipRecheckConnection() |
void |
stopServerShutdown() |
void |
storeRemoteBLOBs(ServerFileVaultI serverFileVault,
BLOBInputI in) |
void |
subscribeEventsAtBackend(DBManEventSubscriptionI sub) |
java.lang.Long |
testAuth(Anmeldung anmeldung) |
boolean |
testAuth(de.ipcon.db.core.PasswortUeberpruefung pu) |
java.lang.String |
toString() |
void |
unlockServer() |
void |
unsubscribeEventsAtBackend(DBManEventSubscriptionI[] removed) |
ServerConnectionInfo |
updateServerConnectionInfo() |
void |
updateStructureReadAccessStatistics(java.util.Map<java.lang.Long,java.lang.Integer> statistics)
Pushes the passed read access statistics for structures to the server
This method pushes the passed read access statistics map to the server, where the keys
are structure Ids and the values are read access counts.
|
boolean |
useOnlyDefaultPlafThemes() |
authenticate, authenticate, connect, endUOW, execute, getL10nPack, getLatency, getManager, getNodeNumber, getServerConnectionInfoReceiver, getServerUrl, getTerms, getTerms, getTerms, getTerms, getTerms, getTerms, getTerms, getTerms, getToken, handleDBManEvent, hasIncompatibleServerProtocolVersion, isDead, isDisconnected, isLoggedIn, markConnected, markDead, markDisconnected, markUsable, query, queryBO, queryBO, queryBO, receiving, reregisterEventsAtBackend, setLatency, setProgressAnimator, startUOW, subscribeEvents, unsubscribeEvents, unsubscribeEvents, waitingequals, getClass, hashCode, notify, notifyAll, wait, wait, waitauthenticate, authenticate, connect, execute, getManager, getNodeNumber, getServerConnectionInfoReceiver, getServerUrl, getToken, handleDBManEvent, hasIncompatibleServerProtocolVersion, isDead, isLoggedIn, markDead, query, queryBO, queryBO, queryBO, reregisterEventsAtBackend, setProgressAnimator, unsubscribeEventsgetL10nPack, prefetchL10nPackspublic BackendConnection(BackendConnectionManagerI m, java.lang.String s, ServerConnectionInfoReceiverI r, java.lang.Long t, TransportProviderFactoryI _transportProviderFactory, boolean existsAlternativeConnection)
public boolean isMemoryTightClient()
isMemoryTightClient in interface ServerConnectionIpublic int getNextLegacySlot()
public int legacySlotAccumulator(int i)
public int getConciseCommandsTimeoutSeconds()
getConciseCommandsTimeoutSeconds in interface ServerConnectionIpublic int getSimpleCommandsTimeoutSeconds()
getSimpleCommandsTimeoutSeconds in interface ServerConnectionIpublic int getSimpleCommandsTimeoutSeconds(int customTimeout)
public int getMediumCommandsTimeoutSeconds()
getMediumCommandsTimeoutSeconds in interface ServerConnectionIpublic int getComplexCommandsTimeoutSeconds()
getComplexCommandsTimeoutSeconds in interface ServerConnectionIpublic long getSlowConnectionThreshold()
public void parseConnectionInfosFromServerUrl()
public java.net.InetAddress getServerInetAddress()
getServerInetAddress in interface ServerConnectionIpublic java.lang.String getServerName()
getServerName in interface ServerConnectionIpublic java.lang.String getServerName(boolean evenIfNoActiveConnection)
getServerName in interface ServerConnectionIgetServerName in class AbstractBackendConnectionpublic java.lang.String getInstanceName()
throws ServerConnectionException
getInstanceName in interface ServerConnectionIServerConnectionExceptionpublic DBManInfo getDBManInfo() throws ServerConnectionException
getDBManInfo in interface ServerConnectionIServerConnectionExceptionpublic boolean isServerAuthoritativeSyncServer()
throws ServerConnectionException
isServerAuthoritativeSyncServer in interface ServerConnectionIServerConnectionExceptionpublic boolean isNotificationSystemActivated()
isNotificationSystemActivated in interface ServerConnectionIpublic BackendSessionInfo[] getSessionInfos()
getSessionInfos in interface ServerConnectionIpublic ServerConnectionInfo updateServerConnectionInfo() throws ServerConnectionException
updateServerConnectionInfo in interface ServerConnectionIServerConnectionExceptionpublic void initSession()
throws ServerConnectionException
initSession in interface ServerConnectionIServerConnectionExceptionpublic boolean ping()
throws ServerConnectionException
ServerConnectionExceptionpublic boolean isConnected()
isConnected in interface ServerConnectionIisConnected in class AbstractBackendConnectionpublic void disconnect()
disconnect in interface ServerConnectionIdisconnect in class AbstractBackendConnectionpublic java.lang.Long getSessionId(boolean blockUntilAvailable)
getSessionId in interface ServerConnectionIpublic boolean checkServerConnectivity()
throws ServerConnectionException
checkServerConnectivity in interface ServerConnectionIServerConnectionExceptionpublic boolean checkServerConnectivity(boolean force)
throws ServerConnectionException
checkServerConnectivity in interface ServerConnectionIServerConnectionExceptionpublic void skipRecheckConnection()
skipRecheckConnection in interface ServerConnectionIpublic Anmeldung authenticateImpl(java.lang.String user, java.lang.String pass, java.lang.String originHash) throws AuthenticationException, ServerConnectionException
authenticateImpl in class AbstractBackendConnectionAuthenticationExceptionServerConnectionExceptionpublic Benutzer getLoggedInUser()
getLoggedInUser in interface ServerConnectionIpublic void resetPassword(java.lang.String username)
resetPassword in interface ServerConnectionIpublic java.lang.Long testAuth(Anmeldung anmeldung) throws ServerConnectionException
testAuth in interface ServerConnectionIServerConnectionExceptionpublic boolean testAuth(de.ipcon.db.core.PasswortUeberpruefung pu)
throws ServerConnectionException
testAuth in interface ServerConnectionIServerConnectionExceptionpublic void subscribeEventsAtBackend(DBManEventSubscriptionI sub) throws ServerConnectionException
subscribeEventsAtBackend in interface ServerConnectionIServerConnectionExceptionpublic void unsubscribeEventsAtBackend(DBManEventSubscriptionI[] removed) throws ServerConnectionException
unsubscribeEventsAtBackend in interface ServerConnectionIServerConnectionExceptionpublic CryptoHandlerI getCryptoHandler()
getCryptoHandler in interface ServerConnectionIpublic PermissionHandlerWithUserI getPermissionHandler()
getPermissionHandler in interface ServerConnectionIpublic SchemaI getRemoteSchema() throws ServerConnectionException
getRemoteSchema in interface ServerConnectionIServerConnectionExceptionpublic java.lang.String getRemoteSchemaFingerprint()
throws ServerConnectionException
getRemoteSchemaFingerprint in interface ServerConnectionIServerConnectionExceptionpublic java.lang.String getRemoteSchemaVersion()
throws ServerConnectionException
getRemoteSchemaVersion in interface ServerConnectionIServerConnectionExceptionpublic java.lang.String getRemoteSchemaUIDs()
throws ServerConnectionException
getRemoteSchemaUIDs in interface ServerConnectionIServerConnectionExceptionpublic Struktur[] getLazyStruktur(java.lang.Long botId) throws ServerConnectionException
getLazyStruktur in interface ServerConnectionIServerConnectionExceptionpublic java.lang.String[] getInitialAvailableLocalesForUserInterface()
getInitialAvailableLocalesForUserInterface in interface ServerConnectionIpublic boolean useOnlyDefaultPlafThemes()
useOnlyDefaultPlafThemes in interface ServerConnectionIpublic java.lang.String[] getAvailableLocalesForUserInterface()
throws ServerConnectionException
getAvailableLocalesForUserInterface in interface ServerConnectionIServerConnectionExceptionpublic L10nInfoContainer getL10nPackPreload(java.lang.String locale) throws IRuntimeException, ServerConnectionException
getL10nPackPreload in interface ServerConnectionIIRuntimeExceptionServerConnectionExceptionpublic java.lang.String getL10nViaString()
L10nPackProviderIgetL10nViaString in interface ServerConnectionIgetL10nViaString in interface L10nPackProviderIpublic void updateStructureReadAccessStatistics(java.util.Map<java.lang.Long,java.lang.Integer> statistics)
ServerConnectionIThis method pushes the passed read access statistics map to the server, where the keys are structure Ids and the values are read access counts.
updateStructureReadAccessStatistics in interface ServerConnectionIstatistics - a map containing structure Ids as keys and their read access counts as values.public void setSessionLocale(java.util.Locale locale)
ServerConnectionIsetSessionLocale in interface ServerConnectionIpublic byte[] getBLOB(java.lang.Long id)
throws IRuntimeException,
MissingBLOBException,
ServerConnectionException
getBLOB in interface ServerConnectionIIRuntimeExceptionMissingBLOBExceptionServerConnectionExceptionpublic byte[] getBLOB(java.lang.Long id,
java.lang.Long backuppingBPId)
throws IRuntimeException,
MissingBLOBException,
ServerConnectionException
getBLOB in interface ServerConnectionIIRuntimeExceptionMissingBLOBExceptionServerConnectionExceptionpublic long getBLOB(java.lang.Long id,
java.io.OutputStream os)
getBLOB in interface ServerConnectionIpublic long getBLOB(java.lang.Long id,
java.io.OutputStream os,
boolean closeOS)
getBLOB in interface ServerConnectionIpublic long getBLOB(java.lang.Long id,
java.io.OutputStream os,
boolean closeOS,
java.lang.Long backuppingBPId)
getBLOB in interface ServerConnectionIpublic long getBLOB(java.lang.Long id,
java.io.DataOutput dataOutput)
getBLOB in interface ServerConnectionIpublic long getBLOB(java.lang.Long id,
java.io.DataOutput dataOutput,
boolean closeOS)
getBLOB in interface ServerConnectionIpublic long getBLOB(java.lang.Long id,
java.io.DataOutput dataOutput,
boolean closeOS,
java.lang.Long backuppingBPId)
getBLOB in interface ServerConnectionIpublic VFile getBLOBInfo(java.lang.Long id) throws IRuntimeException, ServerConnectionException
getBLOBInfo in interface ServerConnectionIIRuntimeExceptionServerConnectionExceptionpublic VFile getBLOBInfo(java.lang.Long id, java.lang.Long backuppingBPId) throws IRuntimeException, ServerConnectionException
getBLOBInfo in interface ServerConnectionIIRuntimeExceptionServerConnectionExceptionpublic boolean hasBLOB(java.lang.Long id)
throws IRuntimeException,
ServerConnectionException
hasBLOB in interface ServerConnectionIIRuntimeExceptionServerConnectionExceptionpublic boolean hasBLOB(java.lang.Long id,
java.lang.Long backuppingBPId)
throws IRuntimeException,
ServerConnectionException
hasBLOB in interface ServerConnectionIIRuntimeExceptionServerConnectionExceptionpublic java.util.BitSet haveBLOB(long[] ids)
throws IRuntimeException,
ServerConnectionException
haveBLOB in interface ServerConnectionIIRuntimeExceptionServerConnectionExceptionpublic void copyRemoteBLOBsToLocalFileVault(ServerFileVaultI serverFileVault, java.util.List<java.lang.Long> pendingBLOBChangeBOIdsLocal, java.lang.Long lastAuthNodeBTId) throws IRuntimeException, ServerConnectionException
copyRemoteBLOBsToLocalFileVault in interface ServerConnectionIIRuntimeExceptionServerConnectionExceptionpublic void storeRemoteBLOBs(ServerFileVaultI serverFileVault, BLOBInputI in)
public TransactionAnswer saveBO(Transaction tx) throws IRuntimeException, ObjectNotPersistentException, ObjectsNotPersistentException, SaveException, ServerConnectionException, FeatureNotAvailableException
ServerConnectionIsaveBO in interface ServerConnectionItx - the Transaction to saveIRuntimeExceptionObjectNotPersistentExceptionObjectsNotPersistentExceptionSaveExceptionServerConnectionExceptionFeatureNotAvailableExceptionpublic TransactionAnswer saveBO(Transaction tx, int lockTimeout) throws IRuntimeException, ObjectNotPersistentException, ObjectsNotPersistentException, SaveException, ServerConnectionException, FeatureNotAvailableException
ServerConnectionIsaveBO in interface ServerConnectionItx - the Transaction to savelockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.IRuntimeExceptionObjectNotPersistentExceptionObjectsNotPersistentExceptionSaveExceptionServerConnectionExceptionFeatureNotAvailableExceptionpublic TransactionAnswer saveBO(Transaction tx, int lockTimeout, int retries) throws IRuntimeException, ObjectNotPersistentException, ObjectsNotPersistentException, SaveException, ServerConnectionException, FeatureNotAvailableException
ServerConnectionIsaveBO in interface ServerConnectionItx - the Transaction to savelockTimeout - time to wait in seconds until a locking error is reported in case some
object is already locked by another thread; defaults to -1.
Zero or less for no waiting, i.e. immediate timeout (or rather the defined lock-timeout
of JDO, which defaults to 30s), an infinite value for no timeout.retries - an int reflecting the number of retries that shall be attempted
before saving is abortedIRuntimeExceptionObjectNotPersistentExceptionObjectsNotPersistentExceptionSaveExceptionServerConnectionExceptionFeatureNotAvailableExceptionpublic KeyRange getIdRange(long size) throws IRuntimeException, ServerConnectionException
getIdRange in interface ServerConnectionIIRuntimeExceptionServerConnectionExceptionpublic java.lang.Long getNextId()
throws IRuntimeException,
ServerConnectionException
getNextId in interface ServerConnectionIIRuntimeExceptionServerConnectionExceptionpublic BatchedBackendRequestI prepareQuery(java.lang.String s)
prepareQuery in interface ServerConnectionIpublic BatchedBackendRequestI prepareQuery(java.lang.String s, java.lang.Object[] o)
prepareQuery in interface ServerConnectionIpublic de.ipcon.db.core.QueryResultsI query(java.lang.String s)
query in interface ServerConnectionIpublic de.ipcon.db.core.QueryResultsI query(java.lang.String s,
java.lang.Object[] o)
query in interface ServerConnectionIpublic de.ipcon.db.core.QueryResultsI queryRelation(long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attributeName)
queryRelation in interface ServerConnectionIqueryRelation in class AbstractBackendConnectionpublic void execute(BatchedBackendRequestI[] bbrs) throws java.lang.IllegalArgumentException, IRuntimeException, ServerConnectionException
execute in interface ServerConnectionIjava.lang.IllegalArgumentExceptionIRuntimeExceptionServerConnectionExceptionpublic boolean exists(java.lang.Long id)
throws IRuntimeException,
ServerConnectionException
exists in interface ServerConnectionIIRuntimeExceptionServerConnectionExceptionpublic boolean exists(java.lang.Long id,
java.lang.Class<? extends BOI> classtip)
throws IRuntimeException,
ServerConnectionException
exists in interface ServerConnectionIexists in class AbstractBackendConnectionIRuntimeExceptionServerConnectionExceptionpublic BO getBO(java.lang.Long id) throws IRuntimeException, ObjectNotPersistentException, ObjectsNotPersistentException, ServerConnectionException
getBO in interface ServerConnectionIIRuntimeExceptionObjectNotPersistentExceptionObjectsNotPersistentExceptionServerConnectionExceptionpublic BO getBO(java.lang.Long id, java.lang.Class<? extends BOI> classtip) throws IRuntimeException, ObjectNotPersistentException, ObjectsNotPersistentException, ServerConnectionException
getBO in interface ServerConnectionIgetBO in class AbstractBackendConnectionIRuntimeExceptionObjectNotPersistentExceptionObjectsNotPersistentExceptionServerConnectionExceptionpublic BO[] getBOs(long[] ids) throws IRuntimeException, ObjectNotPersistentException, ObjectsNotPersistentException, ServerConnectionException
getBOs in interface ServerConnectionIIRuntimeExceptionObjectNotPersistentExceptionObjectsNotPersistentExceptionServerConnectionExceptionpublic BO[] getBOs(long[] ids, java.lang.Class<? extends BOI> classtip) throws IRuntimeException, ObjectNotPersistentException, ObjectsNotPersistentException, ServerConnectionException
getBOs in interface ServerConnectionIgetBOs in class AbstractBackendConnectionIRuntimeExceptionObjectNotPersistentExceptionObjectsNotPersistentExceptionServerConnectionExceptionpublic BO[] getBOs(java.lang.Long[] ids) throws IRuntimeException, ObjectNotPersistentException, ObjectsNotPersistentException, ServerConnectionException
getBOs in interface ServerConnectionIIRuntimeExceptionObjectNotPersistentExceptionObjectsNotPersistentExceptionServerConnectionExceptionpublic BO[] getBOs(java.lang.Long[] ids, java.lang.Class<? extends BOI> classtip) throws IRuntimeException, ObjectNotPersistentException, ObjectsNotPersistentException, ServerConnectionException
getBOs in interface ServerConnectionIgetBOs in class AbstractBackendConnectionIRuntimeExceptionObjectNotPersistentExceptionObjectsNotPersistentExceptionServerConnectionExceptionpublic BO[] getRelationBOs(java.lang.Long id, java.lang.Class<? extends BOI> classtip, java.lang.String attributeName) throws IRuntimeException, ServerConnectionException
getRelationBOs in interface ServerConnectionIgetRelationBOs in class AbstractBackendConnectionIRuntimeExceptionServerConnectionExceptionpublic void lockServer()
throws ServerConnectionException
lockServer in interface ServerConnectionIServerConnectionExceptionpublic void unlockServer()
throws ServerConnectionException
unlockServer in interface ServerConnectionIServerConnectionExceptionpublic void initiateServerShutdown()
throws ServerConnectionException
initiateServerShutdown in interface ServerConnectionIServerConnectionExceptionpublic void initiateServerShutdown(int cSecsDelay)
throws ServerConnectionException
initiateServerShutdown in interface ServerConnectionIServerConnectionExceptionpublic void initiateServerShutdown(int cSecsDelay,
java.lang.String msg)
throws ServerConnectionException
initiateServerShutdown in interface ServerConnectionIServerConnectionExceptionpublic void stopServerShutdown()
throws ServerConnectionException
stopServerShutdown in interface ServerConnectionIServerConnectionExceptionpublic void sendSystemMessage(java.lang.String msg)
throws ServerConnectionException
sendSystemMessage in interface ServerConnectionIServerConnectionExceptionpublic void sendSystemMessage(java.lang.String msg,
java.util.Map msgClients)
throws ServerConnectionException
sendSystemMessage in interface ServerConnectionIServerConnectionExceptionpublic void demandForcedClientDisconnect(int cSecsDelay)
throws ServerConnectionException
demandForcedClientDisconnect in interface ServerConnectionIServerConnectionExceptionpublic void demandForcedClientDisconnect(int cSecsDelay,
java.lang.String msg)
throws ServerConnectionException
demandForcedClientDisconnect in interface ServerConnectionIServerConnectionExceptionpublic void demandForcedClientDisconnect(int cSecsDelay,
java.lang.String msg,
java.util.Map msgClients)
throws ServerConnectionException
demandForcedClientDisconnect in interface ServerConnectionIServerConnectionExceptionpublic void cancelForcedClientDisconnect()
throws ServerConnectionException
cancelForcedClientDisconnect in interface ServerConnectionIServerConnectionExceptionpublic void cancelForcedClientDisconnect(java.util.Map msgClients)
throws ServerConnectionException
cancelForcedClientDisconnect in interface ServerConnectionIServerConnectionExceptionpublic boolean isOperational()
L10nPackProviderIisOperational in interface L10nPackProviderItrue if the provider is operational, false otherwise.public L10nPack[] getL10nPacks(java.lang.String[] packNames, java.lang.String localeName) throws IRuntimeException, ServerConnectionException
L10nPackProviderIL10nPack objects for multiple specified bundle names and a single locale.getL10nPacks in interface L10nPackProviderIpackNames - An array of String names of the L10n bundles to retrieve.localeName - The name of the Locale for which to retrieve the packs.L10nPacks corresponding to the requested bundle names,
or an empty array if none are found.IRuntimeExceptionServerConnectionExceptionpublic L10nPathEntry[] getL10nPath()
L10nPackProviderIThese path entries define the locations or priorities for searching localization resources within the overall L10n system.
getL10nPath in interface L10nPackProviderIL10nPathEntry objects.public void createExpiringToken(java.lang.String serviceName,
java.lang.String tokenName,
byte[] value,
long expiryms)
ExpiringTokenStorageProviderIcreateExpiringToken in interface ExpiringTokenStorageProviderIserviceName - name (fqn) of the service who provided the valuetokenName - name of the token variable which in conjunction with the service name provides a key to the valuevalue - the actual value, as byte arrayexpiryms - the time the value will be valid. After that time, the value is removed from the storepublic java.lang.String createExpiringToken(java.lang.String serviceName,
byte[] value,
long expiryms)
ExpiringTokenStorageProviderIcreateExpiringToken in interface ExpiringTokenStorageProviderIserviceName - name (fqn) of the service who provided the valuevalue - the actual value, as byte arrayexpiryms - the time the value will be valid. After that time, the value is removed from the storepublic byte[] retrieveExpiringToken(java.lang.String serviceName,
java.lang.String tokenName)
ExpiringTokenStorageProviderIretrieveExpiringToken in interface ExpiringTokenStorageProviderIserviceName - name (fqn) of the service who provided the valuetokenName - name of the token variable which in conjunction with the service name provides a key to the valuepublic byte[] destroyExpiringToken(java.lang.String serviceName,
java.lang.String tokenName)
ExpiringTokenStorageProviderIdestroyExpiringToken in interface ExpiringTokenStorageProviderIserviceName - name (fqn) of the service who provided the valuetokenName - name of the token variable which in conjunction with the service name provides a key to the valuepublic boolean isFTSActive()
throws IRuntimeException,
ServerConnectionException
isFTSActive in interface FTSTermInfoProviderIisFTSActive in interface FulltextSearcherIIRuntimeExceptionServerConnectionExceptionpublic java.lang.String getIdListAsString(java.lang.String ftClauses)
throws ServerConnectionException
getIdListAsString in interface FulltextSearcherIServerConnectionExceptionpublic java.lang.String getIdListAsString(java.lang.String ftClauses,
java.lang.String classname)
throws ServerConnectionException
getIdListAsString in interface FulltextSearcherIServerConnectionExceptionpublic long[] getIdList(java.lang.String ftClauses)
throws ServerConnectionException
getIdList in interface FulltextSearcherIServerConnectionExceptionpublic long[] getIdList(java.lang.String ftClauses,
java.lang.String classname)
throws ServerConnectionException
getIdList in interface FulltextSearcherIServerConnectionExceptionpublic java.lang.String[] getTermSuggestions(EntityI entity, java.lang.String term)
getTermSuggestions in interface FulltextSearcherIpublic java.lang.String[] getTermSuggestions(EntityI entity, java.lang.String term, int size)
getTermSuggestions in interface FulltextSearcherIpublic java.lang.String[] getTermSuggestions(EntityI entity, java.lang.String term, int size, boolean includeDeleted)
getTermSuggestions in interface FulltextSearcherIpublic java.lang.String[] getTermSuggestions(EntityI entity, java.lang.String term, int size, boolean includeDeleted, boolean morePopular)
getTermSuggestions in interface FulltextSearcherIpublic java.lang.String[] getTermSuggestions(EntityI entity, java.lang.String term, int size, boolean includeDeleted, boolean morePopular, float accuracy)
getTermSuggestions in interface FulltextSearcherIpublic java.lang.String[] getTermSuggestions(EntityI entity, java.lang.String term, int size, boolean includeDeleted, boolean morePopular, float accuracy, java.lang.String propertyName)
getTermSuggestions in interface FulltextSearcherIpublic java.lang.String[] getTermSuggestions(EntityI entity, java.lang.String term, int size, boolean includeDeleted, boolean morePopular, float accuracy, java.lang.String propertyName, boolean withSubEntities)
getTermSuggestions in interface FulltextSearcherIpublic boolean isFTSAvailable()
throws IRuntimeException,
ServerConnectionException
isFTSAvailable in interface ServerConnectionIIRuntimeExceptionServerConnectionExceptionpublic TermInfoI[] getTermsRaw()
getTermsRaw in interface FTSTermInfoProviderIpublic TermInfoI[] getTermsRaw(EntityI entity)
getTermsRaw in interface FTSTermInfoProviderIpublic TermInfoI[] getTermsRaw(EntityI entity, int size)
getTermsRaw in interface FTSTermInfoProviderIpublic TermInfoI[] getTermsRaw(EntityI entity, int size, boolean includeDeleted)
getTermsRaw in interface FTSTermInfoProviderIpublic TermInfoI[] getTermsRaw(EntityI entity, int size, boolean includeDeleted, java.lang.String[] propertyNames)
getTermsRaw in interface FTSTermInfoProviderIpublic TermInfoI[] getTermsRaw(EntityI entity, int size, boolean includeDeleted, java.lang.String[] propertyNames, boolean sortByName)
getTermsRaw in interface FTSTermInfoProviderIpublic TermInfoI[] getTermsRaw(EntityI entity, int size, boolean includeDeleted, java.lang.String[] propertyNames, boolean sortByName, boolean withSubEntities)
getTermsRaw in interface FTSTermInfoProviderIpublic TermInfoI[] getTermsFromServer()
public TermInfoI[] getTermsFromServer(EntityI entity, java.lang.String regex, int size)
public TermInfoI[] getTermsFromServer(EntityI entity, java.lang.String regex, int size, boolean includeDeleted)
public TermInfoI[] getTermsFromServer(EntityI entity, java.lang.String regex, int size, boolean includeDeleted, java.lang.String[] propertyNames)
public TermInfoI[] getTermsFromServer(EntityI entity, java.lang.String regex, int size, boolean includeDeleted, java.lang.String[] propertyNames, boolean sortByName)
public TermInfoI[] getTermsFromServer(EntityI entity, java.lang.String regex, int size, boolean includeDeleted, java.lang.String[] propertyNames, boolean sortByName, boolean withSubEntities)
public ClientSessionInfo[] getClientSessionInfos()
getClientSessionInfos in interface ServerConnectionIpublic int getRoundTrips()
getRoundTrips in interface ServerConnectionIpublic java.lang.String getURLPrefix()
getURLPrefix in interface ServerConnectionIpublic java.lang.String getAddress()
getAddress in interface ServerConnectionIpublic java.lang.String toString()
toString in interface ServerConnectionItoString in class java.lang.Objectpublic java.lang.String getDomain()
getDomain in interface ServerConnectionIpublic void setDomain(java.lang.String $44)
public int getPort()
getPort in interface ServerConnectionIpublic void setPort(int $45)
public int getMinPool()
getMinPool in interface ServerConnectionIpublic void setMinPool(int $46)
public int getMaxPool()
getMaxPool in interface ServerConnectionIpublic void setMaxPool(int $47)
public java.lang.String getSubVersion()
getSubVersion in interface ServerConnectionIpublic void setSubVersion(java.lang.String $48)
public boolean isTls()
isTls in interface ServerConnectionIpublic void setTls(boolean $49)
public java.lang.Integer getPosition()
public void setPosition(java.lang.Integer $50)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.