|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hypergraphdb.peer.RemotePeer
public abstract class RemotePeer
| Constructor Summary | |
|---|---|
RemotePeer()
|
|
RemotePeer(java.lang.String name)
|
|
| Method Summary | |
|---|---|
abstract HGHandle |
add(java.lang.Object atom)
Adds the atom on the remote peer. |
abstract void |
copyFrom(HGPersistentHandle handle)
Copies the atom with a given handle from the remote peer to the local peer. |
abstract void |
copyTo(HGHandle handle)
Copies the atom from a given handle from the local peer to the remote peer. |
abstract void |
define(HGPersistentHandle handle,
java.lang.Object atom)
Similar to add but with a given handle |
java.util.List<?> |
endBatch()
After this call, the operations will be imediatelly sent to the remote peer. |
java.util.List<?> |
flushBatch()
Sends the current list of queued operations to the remote peer. |
abstract java.lang.Object |
get(HGHandle handle)
|
HyperGraphPeer |
getLocalPeer()
|
java.lang.String |
getName()
|
boolean |
insideBatch()
|
abstract java.util.ArrayList<?> |
query(HGQueryCondition condition,
boolean getObjects)
Executes a query on the remote peer |
abstract HGHandle |
remove(HGPersistentHandle handle)
Removes the handle from the remote peer. |
abstract void |
replace(HGPersistentHandle handle,
java.lang.Object atom)
Replaces the atom with the given handle on the remote peer. |
void |
setLocalPeer(HyperGraphPeer localPeer)
|
void |
setName(java.lang.String name)
|
void |
startBatch()
Starts a batch. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemotePeer()
public RemotePeer(java.lang.String name)
| Method Detail |
|---|
public abstract java.util.ArrayList<?> query(HGQueryCondition condition,
boolean getObjects)
condition - a HGQueryCondition to be executed on the remote peer.getObjects - if true the actual objects are returned, otherwise the client
will just get a set of handles.
public abstract java.lang.Object get(HGHandle handle)
handle - The handle of the atom to be retrieved
public abstract HGHandle add(java.lang.Object atom)
atom - The atom to be added
public abstract void define(HGPersistentHandle handle,
java.lang.Object atom)
handle - atom - public abstract void copyTo(HGHandle handle)
handle - public abstract void copyFrom(HGPersistentHandle handle)
handle - public abstract HGHandle remove(HGPersistentHandle handle)
handle - the handle to remove from the remote peer.
public abstract void replace(HGPersistentHandle handle,
java.lang.Object atom)
handle - the handle of the atom to be replacedatom - the new atompublic void startBatch()
public java.util.List<?> endBatch()
public java.util.List<?> flushBatch()
public boolean insideBatch()
public java.lang.String getName()
public void setName(java.lang.String name)
public HyperGraphPeer getLocalPeer()
public void setLocalPeer(HyperGraphPeer localPeer)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||