org.ozoneDB.core.DbRemote
Class DbLocalClient
java.lang.Object
|
+--org.ozoneDB.DxLib.DxObject
|
+--org.ozoneDB.DxLib.net.DxClient
|
+--org.ozoneDB.core.DbRemote.DbClient
|
+--org.ozoneDB.core.DbRemote.DbLocalClient
- All Implemented Interfaces:
- java.lang.Cloneable, DxCompatible, java.io.Serializable
- public class DbLocalClient
- extends DbClient
Note: the entire connection is synchronized when ExternalDatabase is sending
a command through; so synchronization of send/receive is not strictly needed
- Version:
- $Revision: 1.2 $Date: 2002/06/08 00:49:38 $
- Author:
- SMB
- See Also:
- Serialized Form
Fields inherited from class org.ozoneDB.core.DbRemote.DbClient |
db |
Fields inherited from class org.ozoneDB.DxLib.DxObject |
|
Constructor Summary |
DbLocalClient(org.ozoneDB.ExternalDatabase _db,
Env _env,
java.lang.String _user)
|
Method Summary |
void |
close()
|
protected java.lang.Object |
copyObject(java.lang.Object obj,
boolean updateLinks)
Copy the given object using ByteArrayStreams so all streamable
objects (all database objects) can be copied. |
ProxyObjectGate |
getProxyObjectGate()
Returns the ProxyObjectGate for this Client. |
java.io.ObjectInputStream |
inputStream()
|
boolean |
objectAvailable()
prueft ob daten im input stream liegen |
void |
onConnect()
Diese Methode wird ausgefuehrt, wenn Verbindung zum Server aufgenommen
wird. |
void |
onDeconnect()
Diese Methode wird analog zu onConnect() beim schliessen der Verbindung
aufgenommen. |
java.io.ObjectOutputStream |
outputStream()
|
java.lang.Object |
receive()
|
void |
send(java.lang.Object obj)
|
Methods inherited from class org.ozoneDB.core.DbRemote.DbClient |
user |
Methods inherited from class org.ozoneDB.DxLib.net.DxClient |
init |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
env
protected Env env
user
protected User user
currentCommand
protected DbCommand currentCommand
copyStream
protected java.io.ByteArrayOutputStream copyStream
proxyObjectGate
protected ProxyObjectGate proxyObjectGate
DbLocalClient
public DbLocalClient(org.ozoneDB.ExternalDatabase _db,
Env _env,
java.lang.String _user)
throws java.lang.Exception
send
public void send(java.lang.Object obj)
throws java.io.IOException
- Overrides:
send
in class DxClient
java.io.IOException
receive
public java.lang.Object receive()
throws java.io.IOException,
java.lang.ClassNotFoundException
- Overrides:
receive
in class DbClient
java.io.IOException
java.lang.ClassNotFoundException
copyObject
protected java.lang.Object copyObject(java.lang.Object obj,
boolean updateLinks)
throws java.io.IOException
- Copy the given object using ByteArrayStreams so all streamable
objects (all database objects) can be copied.
java.io.IOException
objectAvailable
public boolean objectAvailable()
- Description copied from class:
DxClient
- prueft ob daten im input stream liegen
- Overrides:
objectAvailable
in class DxClient
close
public void close()
throws java.io.IOException
- Overrides:
close
in class DxClient
java.io.IOException
onConnect
public void onConnect()
throws java.io.IOException
- Description copied from class:
DxClient
- Diese Methode wird ausgefuehrt, wenn Verbindung zum Server aufgenommen
wird. Sie kann ueberschrieben werden, um ein Verbindungsprotokoll zu
implementieren.
- Overrides:
onConnect
in class DxClient
java.io.IOException
onDeconnect
public void onDeconnect()
throws java.io.IOException
- Description copied from class:
DxClient
- Diese Methode wird analog zu onConnect() beim schliessen der Verbindung
aufgenommen.
- Overrides:
onDeconnect
in class DxClient
java.io.IOException
inputStream
public java.io.ObjectInputStream inputStream()
- Overrides:
inputStream
in class DxClient
outputStream
public java.io.ObjectOutputStream outputStream()
- Overrides:
outputStream
in class DxClient
getProxyObjectGate
public ProxyObjectGate getProxyObjectGate()
- Returns the ProxyObjectGate for this Client.
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.