
public class OClientConnection extends 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(Object obj) |
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary |
getChannel() |
ONetworkProtocolData |
getData() |
com.orientechnologies.orient.core.db.ODatabaseDocumentInternal |
getDatabase() |
int |
getId() |
ONetworkProtocol |
getProtocol() |
String |
getRemoteAddress()
Returns the remote network address in the format
|
OServerUserConfiguration |
getServerUser() |
long |
getSince() |
OClientConnectionStats |
getStats() |
com.orientechnologies.orient.core.metadata.security.OToken |
getToken() |
Boolean |
getTokenBased() |
byte[] |
getTokenBytes() |
int |
hashCode() |
void |
init(OServer server) |
boolean |
isDisconnectOnAfter() |
void |
release()
Releases an acquired connection.
|
void |
setData(ONetworkProtocolData data) |
void |
setDatabase(com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database) |
void |
setDisconnectOnAfter(boolean disconnectOnAfter) |
void |
setProtocol(ONetworkProtocol protocol) |
void |
setServerUser(OServerUserConfiguration serverUser) |
void |
setToken(com.orientechnologies.orient.core.metadata.security.OToken token) |
void |
setTokenBased(Boolean tokenBased) |
void |
setTokenBytes(byte[] tokenBytes) |
void |
statsUpdate() |
String |
toString() |
void |
validateSession(byte[] tokenFromNetwork,
OTokenHandler handler,
ONetworkProtocolBinary protocol) |
public OClientConnection(int id,
ONetworkProtocol protocol)
throws IOException
IOExceptionpublic void close()
public void acquire()
public void release()
public String getRemoteAddress()
public 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 Boolean getTokenBased()
public void setTokenBased(Boolean tokenBased)
public void setTokenBytes(byte[] tokenBytes)
public com.orientechnologies.orient.core.metadata.security.OToken getToken()
public void setToken(com.orientechnologies.orient.core.metadata.security.OToken token)
public int getId()
public long getSince()
public void setProtocol(ONetworkProtocol protocol)
public com.orientechnologies.orient.core.db.ODatabaseDocumentInternal getDatabase()
public void setDatabase(com.orientechnologies.orient.core.db.ODatabaseDocumentInternal database)
public OServerUserConfiguration getServerUser()
public void setServerUser(OServerUserConfiguration serverUser)
public ONetworkProtocolData getData()
public void setData(ONetworkProtocolData data)
public OClientConnectionStats getStats()
public void statsUpdate()
public void setDisconnectOnAfter(boolean disconnectOnAfter)
public boolean isDisconnectOnAfter()
Copyright © 2009–2016 OrientDB. All rights reserved.