public class GraniteRemoteClient extends PhysicalDataSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
bounds |
static int |
buffer_size |
static java.net.Socket |
clientAlarmSocket |
static java.net.Socket |
connectionSocket |
java.lang.String |
ctrlMsg |
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 long |
start |
static int |
statusFlag |
static int[] |
upper |
static int[] |
upperPartitioningArray |
static int[] |
upperSpaceArray |
static java.net.ServerSocket |
welcomeSocket |
BIG_ENDIAN, bufferBounds, bufferDimension, bufferSteps, byteBuffers, directMemoryLimit, endian, LITTLE_ENDIAN, maxBufferSize, maxGapSize, readCounter, readLength, url
fdlDescriptor, isActivated, name, wsName
attributeOrder, axisOrdering, axisWeights, dataOrder, dimensionality, numAttributes, pointOrder, recordDesc
Constructor and Description |
---|
GraniteRemoteClient(java.lang.String name,
RecordDescriptor recordDesc,
ISBounds theBounds,
AxisOrdering ordering,
java.lang.String URL,
java.lang.String serverURL)
GraniteRemoteClient class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Open the server socket on the client side.
|
void |
buildBounds(ISBounds srcBounds)
Builds the bounds string to be sent to the RemoteUDPServer.
|
static void |
bytesToFloats(float[] floatDst,
byte[] bytes,
int numBytes)
private method, convert bytes into floats.
|
static void |
bytesToShorts(short[] shortDst,
byte[] bytes,
int numBytes)
private method, convert bytes into shorts.
|
void |
clearCache()
Clear the filesystem cache on the server.
|
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.
|
int |
GetBufferSize() |
int |
GetDataSize() |
protected void |
getStencilBlocks(DataBlockCollection dstBlock)
this method will extract data from datasource on remote server using UDT or UDP logic.
|
protected void |
getStencilBlocks(DSBlockStencil stencil)
this method will extract data from datasource on remote server using UDT or UDP logic.
|
static void |
main(java.lang.String[] args)
GraniteRemoteClient main.
|
protected void |
pdatumUDP(Datum datum,
IndexSpaceID did)
this method will extract data from datasource on remote server using UDT or UDP logic.
|
protected void |
psubblockUDP(BasicBlock dstBlock,
ISBounds dstBounds,
ISBounds srcBounds)
this method will extract data from datasource on remote server using UDT or UDP logic.
|
void |
ReceiveData()
File transfer client program.
|
void |
SendBounds(java.lang.String bounds) |
static int |
SendControlCode(byte b)
Send the given byte to the master thread on the server.
|
void |
SendFileName(java.lang.String FileInfo) |
void |
SendPartitionListLengthInfo(java.lang.String partitionListLengthString) |
void |
SendStencilInfo(java.lang.String stencilInfo) |
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() |
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, setByteOrder, setMaxBufferSize, setMaxGapSize, toString, toString
checkActivated, copyBestID, create, create, create, createRemote, createRemote, createRemoteClient, createRemoteClient, createRemoteDataSource, createRemoteDataSource, createRemoteDataSourceUDP, createRemoteUDP, createRemoteUDP, dumpData, getFDLDescriptor, getMetadataCollection, getName, getStatistics, getValues, isActivated, setMetadataCollection
byteSize, computeOffset, computeOffset, copyBounds, createDataBlock, createDataBlock, createDataBlock, createDatum, createDatum, createDatum, createDatum, createDatum, createDatum, datum, datum, datum, dim, getAttributeNames, getAxisOrdering, getAxisWeight, getAxisWeights, getBounds, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytesByAttribute, getBytesByAttribute, getBytesByPoint, getBytesByPoint, getDataOrder, getDimensionsArray, getDouble, getDoubles, getDoubles, getDoubles, getDoubles, getDoubles, getDoubles, getDoublesByAttribute, getDoublesByAttribute, getDoublesByPoint, getDoublesByPoint, getFloat, getFloats, getFloats, getFloats, getFloats, getFloats, getFloats, getFloatsByAttribute, getFloatsByAttribute, getFloatsByPoint, getFloatsByPoint, getInt, getInts, getInts, getInts, getInts, getInts, getInts, getIntsByAttribute, getIntsByAttribute, getIntsByPoint, getIntsByPoint, getLowerBoundsArray, getNumAttributes, getRecordDescriptor, getShort, getShorts, getShorts, getShorts, getShorts, getShorts, getShorts, getShortsByAttribute, getShortsByAttribute, getShortsByPoint, getShortsByPoint, getStorageType, getUpperBoundsArray, getValues, getValuesByAttribute, getValuesByPoint, longVolume, setAxisOrdering, setBounds, setRecordDescriptor, size, subblock, subblock, subblock, subblock, subblock, subblock, subblock, useBytesOnly, volume
public static int buffer_size
public static java.net.ServerSocket welcomeSocket
public static java.net.Socket connectionSocket
public static java.net.Socket clientAlarmSocket
public static java.net.InetAddress ip
public static java.lang.String ipStr
public java.lang.String ctrlMsg
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
public GraniteRemoteClient(java.lang.String name, RecordDescriptor recordDesc, ISBounds theBounds, AxisOrdering ordering, java.lang.String URL, java.lang.String serverURL)
public static void setFileName(java.lang.String s)
public void SendFileName(java.lang.String FileInfo)
public void SendStencilInfo(java.lang.String stencilInfo)
public void SendPartitionListLengthInfo(java.lang.String partitionListLengthString)
public void SendBounds(java.lang.String bounds)
public int GetBufferSize()
public int GetDataSize()
public void activate()
activate
in class DataSource
public void deactivate()
deactivate
in class PhysicalDataSource
public 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 static void bytesToFloats(float[] floatDst, byte[] bytes, int numBytes)
public static void bytesToShorts(short[] shortDst, byte[] bytes, int numBytes)
public DataBlock subblock(ISBounds db)
subblock
in interface Indexable
subblock
in class DataCollection
public void ReceiveData()
public static void ClientToServerStencilPartitionList(byte[] b, int length)
public static int SendControlCode(byte b)
public void clearCache()
clearCache
in class DataSource
public static void main(java.lang.String[] args)