|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SourceInterface
Common representation of a source client application connection to the RBNB server.
| Field Summary | |
|---|---|
static byte |
ACCESS_APPEND
append to an existing archive. |
static byte |
ACCESS_CREATE
create a new archive. |
static byte |
ACCESS_LOAD
read an existing archive. |
static byte |
ACCESS_NONE
do not access an archive. |
| Fields inherited from interface com.rbnb.api.ClientInterface |
|---|
CLIENT, FOREVER, MIRROR, PLUGIN |
| Method Summary | |
|---|---|
void |
clearCache()
Clears the contents of the Cache. |
Object |
clone()
Clones this object. |
Rmap |
deleteChannels(Rmap channelsI)
Deletes one or more channels from the SourceInterface. |
long |
getAframes()
Gets the maximum number of frames allowed in the archive. |
boolean |
getAkeep()
Gets the keep archive flag. |
byte |
getAmode()
Gets the archive access mode. |
long |
getAsize()
Gets the maximum amount of memory usage allowed for the archive. |
long |
getCframes()
Gets the maximum number of frames allowed in the cache. |
boolean |
getCkeep()
Gets the keep cache flag. |
long |
getCsize()
Gets the maximum amount of memory usage allowed for the cache. |
int |
getNfs()
Gets the number of cache FrameSets. |
void |
register(Rmap rmapI)
Updates the registration for this Source. |
void |
reset()
Reset this Source's ring buffer. |
void |
setAframes(long archiveFramesI)
Sets the maximum number of frames allowed in the archive. |
void |
setAkeep(boolean keepI)
Sets the keep archive flag. |
void |
setAmode(byte modeI)
Sets the archive access mode. |
void |
setAsize(long archiveSizeI)
Sets the maximum amount of memory usage allowed for the archive. |
void |
setCframes(long cacheFramesI)
Sets the maximum number of frames allowed in the cache. |
void |
setCkeep(boolean keepI)
Sets the keep cache flag. |
void |
setCsize(long cacheSizeI)
Sets the maximum amount of memory usage allowed for the cache. |
void |
setNfs(int frameSetsI)
Sets the number of cache FrameSets. |
| Methods inherited from interface com.rbnb.api.ClientInterface |
|---|
getRemoteID, getType, isRunning, setRemoteID, setType, tryReconnect |
| Methods inherited from interface com.rbnb.api.RegisteredInterface |
|---|
getRegistered |
| Methods inherited from interface com.rbnb.api.RmapInterface |
|---|
addChild, compareNames, compareNames, compareTo, findChild, findDescendant, getFullName, getName, getParent, removeChild, removeChildAt, setName, toString, toString |
| Methods inherited from interface com.rbnb.api.UsernameInterface |
|---|
getUsername, setUsername |
| Field Detail |
|---|
static final byte ACCESS_NONE
ACCESS_APPEND,
ACCESS_CREATE,
ACCESS_LOAD,
Constant Field Valuesstatic final byte ACCESS_LOAD
ACCESS_APPEND,
ACCESS_CREATE,
ACCESS_NONE,
Constant Field Valuesstatic final byte ACCESS_CREATE
ACCESS_APPEND,
ACCESS_LOAD,
ACCESS_NONE,
Constant Field Valuesstatic final byte ACCESS_APPEND
ACCESS_CREATE,
ACCESS_LOAD,
ACCESS_NONE,
Constant Field Values| Method Detail |
|---|
void clearCache()
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
Cache.
If there is an Archive, all data will be flushed to it
before the Cache is cleared to ensure that the data is not
lost.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
IOException - thrown if there is an error during I/O.
InterruptedException - thrown if the operation is interrupted.Object clone()
This same abstract declaration is also included in RmapInterface.java, but for some unknown reason J# gives a compiler error if it is not also included here.
clone in interface ClientInterfaceclone in interface RmapInterfaceCloneable
Rmap deleteChannels(Rmap channelsI)
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
SourceInterface.
Channels are deleted by deleting the RingBuffer that
contains them. If that RingBuffer contains more than one
channel, then the request must specify that all of the channels are to
be deleted or those that are specified will not be deleted.
channelsI - Rmap hierarchy specifying the channels
to be deleted.
Rmap containing status information for each of
the channels.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
IOException - thrown if there is an error during I/O.
IllegalArgumentException - thrown if the input Rmap is already a child of
another Rmap or if the input is null.
InterruptedException - thrown if the operation is interrupted.long getAframes()
setAframes(long)boolean getAkeep()
setAkeep(boolean)byte getAmode()
ACCESS_APPEND,
ACCESS_CREATE,
ACCESS_LOAD,
ACCESS_NONE,
setAmode(byte)long getAsize()
This method is not currently supported.
setAsize(long)long getCframes()
setCframes(long)boolean getCkeep()
setCkeep(boolean)long getCsize()
This method is not currently supported.
setCsize(long)int getNfs()
FrameSets.
FrameSets.setNfs(int)
void register(Rmap rmapI)
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
Source.
The input Rmap hierarchy is used to update the registration
for this Source. The hierarchy may contain
DataBlocks, but not time information. Those
DataBlocks are copied into the appropriate locations in the
registration map.
rmapI - the registration Rmap hierarchy.
AddressException - thrown if there is an addressing problem.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
InterruptedIOException - thrown if this operation is interrupted during I/O.
IOException - thrown if there is an error during I/O.
InterruptedException - thrown if this operation is interrupted.
void reset()
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
Source's ring buffer.
This method performs the functional equivalent of closing and re-opening
the Source. A completely new ring buffer is created to
replace the existing one.
AddressException - thrown if there is an addressing problem.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
InterruptedIOException - thrown if this operation is interrupted during I/O.
IOException - thrown if there is an error during I/O.
InterruptedException - thrown if this operation is interrupted.void setAframes(long archiveFramesI)
A value of -1 means that the archive is not limited to a maximum number of frames.
The following ratios should be positive integers:
If these ratios are not positive integers, then the
archiveFramesI - the archive limit in frames.
IllegalArgumentException - thrown if the archive limit specified is not a legal value:
getAframes(),
setCframes(long),
setNfs(int)void setAkeep(boolean keepI)
keepI - keep the archive on disk?getAkeep()void setAmode(byte modeI)
modeI - the archive access mode.ACCESS_APPEND,
ACCESS_CREATE,
ACCESS_LOAD,
ACCESS_NONE,
getAmode()void setAsize(long archiveSizeI)
A value of -1 means that the archive is not limited to a maximum amount of memory.
This method is not currently supported.
archiveSizeI - the archive size in bytes.
IllegalArgumentException - thrown if the archive size specified is not a legal value:
getAsize()
void setCframes(long cacheFramesI)
throws SerializeException,
EOFException,
IOException,
InterruptedException
A value of -1 means that the cache is not limited to a maximum number of frames.
The following ratios should be positive integers:
If these ratios are not positive integers, then the
cacheFramesI - the cache limit in frames.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
IOException - thrown if there is an error during I/O.
IllegalArgumentException - thrown if the cache limit specified is not a legal value:
IndexOutOfBoundsException - thrown if there are no children or the index is not in the
range 0 to # of children - 1.
InterruptedException - thrown if the operation is interrupted.getCframes(),
setAframes(long),
setNfs(int)void setCkeep(boolean keepI)
keepI - keep the cache in the server?getCkeep()void setCsize(long cacheSizeI)
A value of -1 means that the cache is not limited to a maximum amount of memory.
This method is not currently supported.
cacheSizeI - the cache size in bytes.
IllegalArgumentException - thrown if the cache size specified is not a legal value:
getCsize()void setNfs(int frameSetsI)
FrameSets.
The following ratios should be positive integers:
If these ratios are not positive integers, then the
frameSetsI - the number of cache FrameSets.
IllegalArgumentException - thrown if the number of cache FrameSets
specified is not a legal value:
getNfs(),
setAframes(long),
setCframes(long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||