
public class OClientConnection
extends java.lang.Object
| Constructor and Description |
|---|
OClientConnection(int id,
ONetworkProtocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire()
Acquires the connection.
|
void |
cleanSession() |
void |
close() |
void |
endOperation() |
boolean |
equals(java.lang.Object obj) |
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary |
getChannel() |
ONetworkProtocolData |
getData() |
ODatabaseDocumentInternal |
getDatabase() |
java.lang.String |
getDatabaseName() |
OBinaryRequestExecutor |
getExecutor() |
int |
getId() |
ONetworkProtocol |
getProtocol() |
java.lang.String |
getRemoteAddress()
Returns the remote network address in the format
|
OSecurityUser |
getServerUser() |
long |
getSince() |
OClientConnectionStats |
getStats() |
OToken |
getToken() |
java.lang.Boolean |
getTokenBased() |
byte[] |
getTokenBytes() |
boolean |
hasDatabase() |
int |
hashCode() |
void |
init(OServer server) |
boolean |
isDisconnectOnAfter() |
void |
release()
Releases an acquired connection.
|
void |
setData(ONetworkProtocolData data) |
void |
setDatabase(ODatabaseDocumentInternal database) |
void |
setDisconnectOnAfter(boolean disconnectOnAfter) |
void |
setProtocol(ONetworkProtocol protocol) |
void |
setServerUser(OSecurityUser serverUser) |
void |
setToken(com.orientechnologies.orient.core.security.OParsedToken parsedToken,
byte[] tokenBytes) |
void |
setTokenBased(java.lang.Boolean tokenBased) |
void |
setTokenBytes(byte[] tokenBytes) |
void |
statsUpdate() |
java.lang.String |
toString() |
boolean |
tryAcquireForExpire() |
void |
validateSession(byte[] tokenFromNetwork,
OTokenHandler handler,
ONetworkProtocolBinary protocol) |
public OClientConnection(int id,
ONetworkProtocol protocol)
public void close()
public void acquire()
public void release()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRemoteAddress()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary getChannel()
public ONetworkProtocol getProtocol()
public byte[] getTokenBytes()
public void validateSession(byte[] tokenFromNetwork,
OTokenHandler handler,
ONetworkProtocolBinary protocol)
public void cleanSession()
public void endOperation()
public void init(OServer server)
public java.lang.Boolean getTokenBased()
public void setTokenBased(java.lang.Boolean tokenBased)
public void setTokenBytes(byte[] tokenBytes)
public OToken getToken()
public int getId()
public long getSince()
public void setProtocol(ONetworkProtocol protocol)
public ODatabaseDocumentInternal getDatabase()
public boolean hasDatabase()
public java.lang.String getDatabaseName()
public void setDatabase(ODatabaseDocumentInternal database)
public OSecurityUser getServerUser()
public void setServerUser(OSecurityUser serverUser)
public ONetworkProtocolData getData()
public void setData(ONetworkProtocolData data)
public OClientConnectionStats getStats()
public void statsUpdate()
public void setDisconnectOnAfter(boolean disconnectOnAfter)
public boolean isDisconnectOnAfter()
public OBinaryRequestExecutor getExecutor()
public boolean tryAcquireForExpire()
public void setToken(com.orientechnologies.orient.core.security.OParsedToken parsedToken,
byte[] tokenBytes)
Copyright © 2009–2022 OrientDB. All rights reserved.