|
Remote System Explorer DataStore Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.dstore.core.util.Sender
This class is used for sending data to a socket in the DataStore communication layer.
| Constructor Summary | |
|---|---|
Sender(Socket socket,
DataStore dataStore)
Constructor |
|
| Method Summary | |
|---|---|
void |
requestClass(DataElement classRequest)
Requests a class from the client |
void |
sendAppendFile(DataElement objectRoot,
byte[] bytes,
int size,
boolean binary)
Sends the bytes of a file through the socket to be appended to a file on the other end |
void |
sendClass(DataElement classElement)
Sends a class through the socket |
void |
sendDocument(DataElement objectRoot,
int depth)
Sends a DataStore tree of data through the socket |
void |
sendDocument(String document)
Sends a string through the socket |
void |
sendFile(DataElement objectRoot,
byte[] bytes,
int size,
boolean binary)
Sends the bytes of a file through the socket |
void |
sendKeepAliveConfirmation(DataElement document)
|
void |
sendKeepAliveRequest(DataElement document)
|
void |
sendRemoteClassRunnable(DataElement objectRoot,
IRemoteClassInstance runnable)
|
Socket |
socket()
Returns the associated socket |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Sender(Socket socket,
DataStore dataStore)
socket - the associated socketdataStore - the associated DataStore| Method Detail |
public Socket socket()
public void sendDocument(String document)
sendDocument in interface ISenderdocument - the string to send
public void sendFile(DataElement objectRoot,
byte[] bytes,
int size,
boolean binary)
objectRoot - the object representing the file to sendbytes - the bytes to send over the socketsize - the number of bytes to send over the socketbinary - indicates whether to send the bytes and binary or textpublic void sendClass(DataElement classElement)
classElement - the object representing the class to send
public void sendAppendFile(DataElement objectRoot,
byte[] bytes,
int size,
boolean binary)
objectRoot - the object representing the file to sendbytes - the bytes to send over the socketsize - the number of bytes to send over the socketbinary - indicates whether to send the bytes and binary or text
public void sendDocument(DataElement objectRoot,
int depth)
sendDocument in interface ISenderobjectRoot - the root of the tree to senddepth - the depth of the tree to sendpublic void requestClass(DataElement classRequest)
public void sendRemoteClassRunnable(DataElement objectRoot,
IRemoteClassInstance runnable)
public void sendKeepAliveRequest(DataElement document)
public void sendKeepAliveConfirmation(DataElement document)
|
Remote System Explorer DataStore Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||