public final class GleamRecordSource extends CORBARecordSource
RecordSource implementation.CORBARecordSource.Move_hasNext, _hasPrevious, _heprep, _index, _isHepRep2, _server, _size, _supports, _tag, UNKNOWN| Constructor and Description |
|---|
GleamRecordSource(String name,
HepEventServer server,
Properties serverInfo) |
GleamRecordSource(String name,
HepEventServer server,
Properties serverInfo,
Properties datasetProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getServerCommand(CORBARecordSource.Move move,
long par,
org.freehep.record.source.RecordTag tag)
Returns the command that needs to be send to the CORBA server to position it for reading the specified record.
|
boolean |
hasRewind()
Returns true if this source in its current state can be rewound.
|
void |
jump(org.freehep.record.source.RecordTag tag)
Loads the record specified by the tag.
|
org.freehep.record.source.RecordTag |
parseTag(String s)
Returns a tag corresponding to the specified string.
|
protected void |
positionServer(CORBARecordSource.Move move,
long par,
org.freehep.record.source.RecordTag tag) |
void |
rewind()
Positions the cursor of this source before the first record.
|
protected void |
sendCommand(String command) |
boolean |
sendStop()
Sends "stop" command to the CORBA server, returns true if the server indicates this source needs to be closed.
|
protected void |
setCurrentIndex()
Sets _index to the index of the record for which the CORBA server is currently positioned.
|
protected void |
setCurrentTag()
Sets _tag to the tag of the record for which the CORBA server is currently positioned.
|
void |
shift(long numberOfRecords)
Loads the record specified by the offset with respect to the current cursor position.
|
boolean |
supportsRewind()
Returns true if this source supports rewind operation.
|
close, current, determineSize, getCurrentIndex, getCurrentRecord, getCurrentTag, getEstimatedSize, getHepRep, getRecordClass, hasCurrent, hasIndex, hasNext, hasPrevious, hasShift, jump, next, previous, releaseRecord, restorePosition, size, supportsCurrent, supportsIndex, supportsNext, supportsPrevious, supportsShift, supportsTagpublic GleamRecordSource(String name, HepEventServer server, Properties serverInfo)
public GleamRecordSource(String name, HepEventServer server, Properties serverInfo, Properties datasetProperties)
public void jump(org.freehep.record.source.RecordTag tag)
throws IOException,
org.freehep.record.source.NoSuchRecordException
jump in interface org.freehep.record.source.RecordSourcejump in class CORBARecordSourceorg.freehep.record.source.NoSuchRecordException - if this source does not have a record with the specified tag.IOException - if loading of the requested record fails.UnsupportedOperationException - if this source does not support access by tag.public void shift(long numberOfRecords)
throws IOException,
org.freehep.record.source.NoSuchRecordException
shift in interface org.freehep.record.source.RecordSourceshift in class CORBARecordSourceorg.freehep.record.source.NoSuchRecordException - if this source does not have a record with the specified offset.IOException - if loading of the requested record fails.UnsupportedOperationException - if this source does not support access by offset.protected String getServerCommand(CORBARecordSource.Move move, long par, org.freehep.record.source.RecordTag tag)
getServerCommand in class CORBARecordSourceprotected void setCurrentIndex()
CORBARecordSourcesetCurrentIndex in class CORBARecordSourceprotected void setCurrentTag()
CORBARecordSourcesetCurrentTag in class CORBARecordSourceprotected void positionServer(CORBARecordSource.Move move, long par, org.freehep.record.source.RecordTag tag) throws IOException, org.freehep.record.source.NoSuchRecordException
positionServer in class CORBARecordSourceIOExceptionorg.freehep.record.source.NoSuchRecordExceptionprotected void sendCommand(String command) throws org.freehep.record.source.NoSuchRecordException, IOException
sendCommand in class CORBARecordSourceorg.freehep.record.source.NoSuchRecordExceptionIOExceptionpublic boolean sendStop()
public boolean supportsRewind()
supportsRewind in interface org.freehep.record.source.RecordSourcesupportsRewind in class CORBARecordSourcepublic boolean hasRewind()
hasRewind in interface org.freehep.record.source.RecordSourcehasRewind in class CORBARecordSourcepublic void rewind()
throws IOException
rewind in interface org.freehep.record.source.RecordSourcerewind in class CORBARecordSourceUnsupportedOperationException - if this source does not support rewind.IOException - if rewinding fails for any reason.public org.freehep.record.source.RecordTag parseTag(String s)
parseTag in interface org.freehep.record.source.RecordSourceparseTag in class org.freehep.record.source.AbstractRecordSourceCopyright © 1996-2013 FreeHEP. All Rights Reserved.