|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unh.sdb.datasource.DataCollection
edu.unh.sdb.datasource.DataSource
edu.unh.sdb.datasource.PhysicalDataSource
edu.unh.sdb.datasource.RemoteUDTClient
public class RemoteUDTClient
This class will read data from a remote datasource using UFTP logic.
Nested Class Summary | |
---|---|
static class |
RemoteUDTClient.ClientStarter
Thread class to start the Client. |
Field Summary | |
---|---|
static java.lang.String |
bounds
|
static java.net.Socket |
clientAlarmSocket
|
static int |
clientControlPort
|
static int |
clientDataPort
|
static java.net.Socket |
clientSocket
|
static java.net.Socket |
connectionSocket
|
static byte[] |
dstByteArray
|
static long |
end
|
static java.lang.String |
fileName
|
static int |
fileSize
|
static int |
globalVal
|
static java.net.InetAddress |
ip
|
static java.lang.String |
ipStr
|
static int[] |
lower
|
static int[] |
lowerPartitioningArray
|
static int[] |
lowerSpaceArray
|
static int |
serverAlarmPort
|
static int |
serverControlPort
|
static int |
serverDataPort
|
static long |
start
|
static int |
statusFlag
|
static int[] |
upper
|
static int[] |
upperPartitioningArray
|
static int[] |
upperSpaceArray
|
static java.net.ServerSocket |
welcomeSocket
|
Fields inherited from class edu.unh.sdb.datasource.PhysicalDataSource |
---|
BIG_ENDIAN, bufferBounds, bufferDimension, bufferSteps, byteBuffers, directMemoryLimit, endian, LITTLE_ENDIAN, maxBufferSize, maxGapSize, readCounter, readLength, url |
Fields inherited from class edu.unh.sdb.datasource.DataSource |
---|
fdlDescriptor, isActivated, name, wsName |
Fields inherited from class edu.unh.sdb.datasource.DataCollection |
---|
attributeOrder, axisOrdering, axisWeights, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc |
Constructor Summary | |
---|---|
RemoteUDTClient(java.lang.String name,
RecordDescriptor recordDesc,
ISBounds theBounds,
AxisOrdering ordering,
java.lang.String URL,
java.lang.String serverURL)
RemoteUDTClient class constructor. |
Method Summary | |
---|---|
void |
activate()
Open the server socket on the client side. |
void |
buildBounds(ISBounds srcBounds)
Builds the bounds string to be sent to the RemoteUDPServer. |
void |
clearCache()
Clear the filesystem cache on the server. |
static void |
ClientToServerControlInfo(java.lang.String s)
TCP Control Traffic to Server about missing packets. |
static void |
ClientToServerStencilPartitionList(byte[] b,
int length)
TCP Control Traffic to Server about Stencil's partition list. |
void |
datum(Datum datum,
IndexSpaceID did,
FieldIDMapper mp)
Get the Datum and fill its values in the passed Datum at positions specified by the corresponding FieldIDMapper. |
void |
datum(Datum datum,
IndexSpaceID did,
RecordSpec recSpec)
Get the Datum and fill its values in the passed Datum at positions specified by the corresponding RecordSpec. |
Datum |
datum(IndexSpaceID did)
Return the Datum corresponding to the given IndexSpaceID. |
Datum |
datum(IndexSpaceID did,
RecordSpec spec)
Return the Datum corresponding to the given IndexSpaceID. |
void |
deactivate()
Close the server socket on the client side. |
protected void |
getStencilBlocks(DataBlockCollection dstBlock)
this method will extract data from datasource on remote server using UFTP logic. |
protected void |
getStencilBlocks(DSBlockStencil stencil)
this method will extract data from datasource on remote server using UFTP logic. |
static void |
main(java.lang.String[] args)
RemoteUDTClient main. |
protected void |
pdatumUDP(Datum datum,
IndexSpaceID did)
this method will extract data from datasource on remote server using UFTP logic. |
protected void |
psubblockUDP(BasicBlock dstBlock,
ISBounds dstBounds,
ISBounds srcBounds)
this method will extract data from datasource on remote server using UFTP logic. |
static void |
ReceiveData()
File transfer client program. |
static void |
SendControlCode(byte b)
Send the given byte to the master thread on the server. |
static void |
ServerToClientControlInfo()
Server to Client Control Information regarding file size & packet size. |
static void |
setBasicBlockBounds(java.lang.String s)
Method to tell server the bounds for basic block construction. |
static void |
setFileName(java.lang.String s)
Sets the filename for transfer. |
void |
setRemoteDataSource(java.lang.String xmlFile,
java.lang.String dsName)
set the xml file for the remote datasource. |
void |
subblock(DataBlock dstBlock,
ISBounds dstBounds,
ISBounds srcBounds)
Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds. |
void |
subblock(DataBlock dstBlock,
ISBounds dstBounds,
ISBounds srcBounds,
FieldIDMapper mp)
Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds. |
void |
subblock(DataBlock dstBlock,
ISBounds dstBounds,
ISBounds srcBounds,
RecordSpec recSpec)
Reads a subblock defined by srcBounds into the region of the Datablock argument defined by dstBounds. |
void |
subblock(DSBlockStencil stencil)
Fill the datablocks specified as "active" in the DSBlockStencil. |
DataBlock |
subblock(ISBounds db)
Returns a spatial subset of the DataSource as delimited by the ISBounds argument. |
long |
transmitTime()
|
Methods inherited from class edu.unh.sdb.datasource.PhysicalDataSource |
---|
allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, allocateBuffer, deleteBuffer, deleteBuffer, deleteBuffers, equals, getBuffer, getBuffer, getBufferSize, getBufferSize, getByteOrder, getDataFileString, getMaxBufferSize, getReadCounter, getReadLength, getURL, initializeBuffers, isBigEndian, makeBestBuffer, resetReadCounter, setBufferByteOrder, setMaxBufferSize, setMaxGapSize, toString, toString |
Methods inherited from class edu.unh.sdb.datasource.DataSource |
---|
checkActivated, copyBestID, create, create, create, createRemote, createRemote, createRemoteClient, createRemoteClient, createRemoteDataSource, createRemoteDataSource, createRemoteDataSourceUDP, createRemoteUDP, createRemoteUDP, dumpData, getName, getValues, isActivated |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int serverDataPort
public static int serverControlPort
public static int serverAlarmPort
public static int clientDataPort
public static int clientControlPort
public static java.net.ServerSocket welcomeSocket
public static java.net.Socket connectionSocket
public static java.net.Socket clientSocket
public static java.net.Socket clientAlarmSocket
public static java.net.InetAddress ip
public static java.lang.String ipStr
public static java.lang.String fileName
public static int fileSize
public static int globalVal
public static long start
public static long end
public static int statusFlag
public static byte[] dstByteArray
public static int[] lower
public static int[] upper
public static int[] lowerSpaceArray
public static int[] upperSpaceArray
public static int[] lowerPartitioningArray
public static int[] upperPartitioningArray
public static java.lang.String bounds
Constructor Detail |
---|
public RemoteUDTClient(java.lang.String name, RecordDescriptor recordDesc, ISBounds theBounds, AxisOrdering ordering, java.lang.String URL, java.lang.String serverURL)
Method Detail |
---|
public static void setFileName(java.lang.String s)
public void activate()
activate
in class DataSource
public void deactivate()
deactivate
in class PhysicalDataSource
public static void setBasicBlockBounds(java.lang.String s) throws java.io.IOException
java.io.IOException
public void setRemoteDataSource(java.lang.String xmlFile, java.lang.String dsName)
public Datum datum(IndexSpaceID did)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum datum, IndexSpaceID did, RecordSpec recSpec)
datum
in interface Indexable
datum
in class DataCollection
public void datum(Datum datum, IndexSpaceID did, FieldIDMapper mp)
datum
in interface Indexable
datum
in class DataCollection
public Datum datum(IndexSpaceID did, RecordSpec spec)
datum
in interface Indexable
datum
in class DataCollection
protected void pdatumUDP(Datum datum, IndexSpaceID did)
public void subblock(DataBlock dstBlock, ISBounds dstBounds, ISBounds srcBounds, FieldIDMapper mp)
subblock
in interface Indexable
subblock
in class PhysicalDataSource
public void subblock(DataBlock dstBlock, ISBounds dstBounds, ISBounds srcBounds, RecordSpec recSpec)
subblock
in interface Indexable
subblock
in class PhysicalDataSource
public void subblock(DSBlockStencil stencil)
DataCollection
subblock
in class DataCollection
public void subblock(DataBlock dstBlock, ISBounds dstBounds, ISBounds srcBounds)
subblock
in interface Indexable
subblock
in class PhysicalDataSource
protected void psubblockUDP(BasicBlock dstBlock, ISBounds dstBounds, ISBounds srcBounds)
protected void getStencilBlocks(DSBlockStencil stencil)
protected void getStencilBlocks(DataBlockCollection dstBlock)
public void buildBounds(ISBounds srcBounds)
public long transmitTime()
public DataBlock subblock(ISBounds db)
subblock
in interface Indexable
subblock
in class DataCollection
public static void ReceiveData()
public static void ServerToClientControlInfo() throws java.io.IOException
java.io.IOException
public static void ClientToServerControlInfo(java.lang.String s) throws java.io.IOException
java.io.IOException
public static void ClientToServerStencilPartitionList(byte[] b, int length) throws java.io.IOException
java.io.IOException
public static void SendControlCode(byte b) throws java.io.IOException
java.io.IOException
public void clearCache()
clearCache
in class DataSource
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |