public class SocketDataSource extends LinkedDataSource
| Modifier and Type | Field and Description |
|---|---|
protected Runnable |
comm
Code for monitoring socket for incoming source data changes.
|
protected ObjectInputStream |
in
The input stream for the socket connection.
|
protected ObjectOutputStream |
out
The output stream for the socket connection.
|
protected Socket |
socket
The socket connection for this SocketDataSource.
|
DEBUG, name| Constructor and Description |
|---|
SocketDataSource(String name)
Construct a SocketDataSource with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
getSocket()
Return the socket connection for this SocketDataSource.
|
void |
open(String id)
Link to the given socket, updating the local data whenever an
update event is sent through that socket.
|
void |
writeObject(Object o)
Writes the specified object out to the socket.
|
dataChanged, getName, getReference, isAliveprotected Socket socket
protected ObjectOutputStream out
protected ObjectInputStream in
protected Runnable comm
public SocketDataSource(String name)
public void open(String id) throws IOException, VisADException, RemoteException
open in class LinkedDataSourceIOExceptionVisADExceptionRemoteExceptionpublic Socket getSocket()
public void writeObject(Object o)
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.