|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rbnb.api.Rmap
com.rbnb.api.Server
public class Server
Object representing a handle to an RBNB server.
| Field Summary |
|---|
| Fields inherited from class com.rbnb.api.Rmap |
|---|
PATHDELIMITER |
| Method Summary | |
|---|---|
Object |
clone()
Clones this object. |
Controller |
createController(String nameI)
Creates a Controller for this Server. |
static Mirror |
createMirror()
Creates a Mirror. |
PlugIn |
createPlugIn(String nameI)
Creates a PlugIn for this Server. |
Controller |
createRAMController(String nameI)
Creates a Controller that communicates via RAM. |
PlugIn |
createRAMPlugIn(String nameI)
Creates a PlugIn that communicates via RAM. |
Sink |
createRAMSink(String nameI)
Creates a Sink that communicates via RAM. |
Source |
createRAMSource(String nameI)
Creates a Source that communicates via RAM. |
static Shortcut |
createShortcut(String nameI,
String destinationAddressI,
double costI)
Creates a Shortcut object. |
Sink |
createSink(String nameI)
Creates a Sink for this Server. |
Source |
createSource(String nameI)
Creates a Source for this Server. |
String |
getAddress()
Gets the server address. |
boolean |
isRunning()
Is this Server running? |
static Server |
launchNewServer(String[] argsI)
Launches a new server based on the command line arguments. |
static void |
main(String[] argsI)
Main DataTurbine RBNB method. |
static Server |
newServerHandle(String nameI,
String addressI)
Creates a new Server handle to an RBNB server. |
void |
setAddress(String addressI)
Sets the server address. |
void |
start()
Starts the RBNB server as a thread in the current process. |
void |
start(String[] argsI)
Starts the RBNB server as a thread in the current process. |
void |
stop()
Stops the RBNB server. |
| Methods inherited from class com.rbnb.api.Rmap |
|---|
addChannel, addChild, addChildAt, addDataWithTimeReference, addMember, clone, collapse, compareNames, compareNames, compareNames, compareTo, compareTo, createFromName, extract, extract, extractFolders, extractFoldersAndChannels, extractNames, extractRmap, findChild, findDescendant, findMember, getChildAt, getChildren, getDblock, getFrange, getFullName, getMemberAt, getMembers, getName, getNchildren, getNmembers, getParent, getTrange, isImplemented, markLeaf, mergeWith, moveToBottom, moveToTop, nullify, removeChild, removeChildAt, removeMember, removeMemberAt, setDblock, setFrange, setName, setTrange, sortField, toNameHierarchy, toString, toString, xmlRegistration, xmlRegistration |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rbnb.api.RmapInterface |
|---|
addChild, compareNames, compareNames, compareTo, findChild, findDescendant, getFullName, getName, getParent, removeChild, removeChildAt, setName, toString, toString |
| Method Detail |
|---|
public final Controller createController(String nameI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
Controller for this Server.
nameI - the name of the Controller.
Controller.
AddressException - thrown if there is a problem with the address.
SerializeException - thrown if there is a problem with the serialization.
InterruptedIOException - thrown if this operation is interrupted during I/O
IOException - thrown if there is a problem with I/O.
InterruptedException - thrown if this operation is interrupted.createRAMController(String nameI)public static final Mirror createMirror()
Mirror.
Mirror.
public final PlugIn createPlugIn(String nameI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
PlugIn for this Server.
nameI - the name of the PlugIn.
PlugIn.
AddressException - thrown if there is a problem with the address.
SerializeException - thrown if there is a problem with the serialization.
InterruptedIOException - thrown if this operation is interrupted during I/O
IOException - thrown if there is a problem with I/O.
InterruptedException - thrown if this operation is interrupted.createRAMPlugIn(String nameI)
public final Controller createRAMController(String nameI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
Controller that communicates via RAM.
nameI - the name of the Controller
Controller.
AddressException - thrown if there is a problem with the address.
SerializeException - thrown if there is a problem with the serialization.
InterruptedIOException - thrown if this operation is interrupted during I/O
IOException - thrown if there is a problem with I/O.
InterruptedException - thrown if this operation is interrupted.createController(String nameI)
public final PlugIn createRAMPlugIn(String nameI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
PlugIn that communicates via RAM.
nameI - the name of the PlugIn
PlugIn.
AddressException - thrown if there is a problem with the address.
SerializeException - thrown if there is a problem with the serialization.
InterruptedIOException - thrown if this operation is interrupted during I/O
IOException - thrown if there is a problem with I/O.
InterruptedException - thrown if this operation is interrupted.createPlugIn(String nameI)
public final Sink createRAMSink(String nameI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
Sink that communicates via RAM.
nameI - the name of the Sink
Sink.
AddressException - thrown if there is a problem with the address.
SerializeException - thrown if there is a problem with the serialization.
InterruptedIOException - thrown if this operation is interrupted during I/O
IOException - thrown if there is a problem with I/O.
InterruptedException - thrown if this operation is interrupted.createSink(String nameI)
public final Source createRAMSource(String nameI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
Source that communicates via RAM.
nameI - the name of the Source
Source.
AddressException - thrown if there is a problem with the address.
SerializeException - thrown if there is a problem with the serialization.
InterruptedIOException - thrown if this operation is interrupted during I/O
IOException - thrown if there is a problem with I/O.
InterruptedException - thrown if this operation is interrupted.createSource(String nameI)
public static final Shortcut createShortcut(String nameI,
String destinationAddressI,
double costI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
Shortcut object.
nameI - the name of the Shortcut.destinationAddressI - the destination of the Shortcut.costI - the cost of the Shortcut.
Shortcut.
AddressException
SerializeException
InterruptedIOException
IOException
InterruptedException
public final Sink createSink(String nameI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
Sink for this Server.
nameI - the name of the Sink.
Sink.
AddressException - thrown if there is a problem with the address.
SerializeException - thrown if there is a problem with the serialization.
InterruptedIOException - thrown if this operation is interrupted during I/O
IOException - thrown if there is a problem with I/O.
InterruptedException - thrown if this operation is interrupted.createRAMSink(String nameI)
public final Source createSource(String nameI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
Source for this Server.
nameI - the name of the Source.
Source.
AddressException - thrown if there is a problem with the address.
SerializeException - thrown if there is a problem with the serialization.
InterruptedIOException - thrown if this operation is interrupted during I/O
IOException - thrown if there is a problem with I/O.
InterruptedException - thrown if this operation is interrupted.createRAMSource(String nameI)public final String getAddress()
setAddress(String)public boolean isRunning()
Server running?
Server running?
public static final Server launchNewServer(String[] argsI)
throws IllegalArgumentException,
Exception
argsI - the command line arguments.
Server handle.
IllegalArgumentException - if an illegal argument is found.
Exception - if any other error occurs.public static final void main(String[] argsI)
RBNB method.
argsI - the command line arguments.
public static final Server newServerHandle(String nameI,
String addressI)
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
Server handle to an RBNB server.
nameI - the server's name.
This field may be omitted if the server is an external
one. If so, the getName() method returns the actual
name of the Server once a
Client connection has been established.
addressI - the server's address.
Server handle.
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.
InterruptedIOException - thrown if this operation is interrupted during I/O.
IOException - thrown if there is an error during I/O.
InterruptedException - thrown if the operation is interrupted.
public final void setAddress(String addressI)
throws AddressException
addressI - the address of the server.
AddressException - thrown if the address is not legal.getAddress()
public void start()
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
AddressException - thrown if there is a problem completing the connection due
addressing problems.
SerializeException - thrown if there is a problem with the serialization.
InterruptedIOException - thrown if the I/O is interrupted.
IOException - thrown if there is a problem during I/O.
InterruptedException - thrown if this operation is interrupted.stop()
public void start(String[] argsI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
argsI - the command line arguments that should be processed by
the running server.
AddressException - thrown if there is a problem completing the connection due
addressing problems.
SerializeException - thrown if there is a problem with the serialization.
InterruptedIOException - thrown if the I/O is interrupted.
IOException - thrown if there is a problem during I/O.
InterruptedException - thrown if this operation is interrupted.stop()
public void stop()
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
All children of this Server object are stopped and removed
as children before the RBNB server itself is stopped.
If the server is not running locally, a control connection is made to it and is used to stop the server.
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.
IOException - thrown if there is an error during I/O.
InterruptedException - thrown if the start is interrupted.start()public 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 RmapInterfaceCloneable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||