|
||||||||||
| 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.ControllerHandle
public class ControllerHandle
Client-side object that represents a client controller application connection to an RBNB server.
| Field Summary |
|---|
| Fields inherited from class com.rbnb.api.Rmap |
|---|
PATHDELIMITER |
| Fields inherited from interface com.rbnb.api.ClientInterface |
|---|
CLIENT, FOREVER, MIRROR, PLUGIN |
| Method Summary | |
|---|---|
long |
bytesTransferred()
Calculates the total number of bytes transferred. |
String |
fetchAddressAuthorization(com.rbnb.api.ServerInterface si)
|
protected void |
finalize()
Finalizes this connection to the server. |
Rmap |
getRegistered(Rmap requestI)
Gets the list of registered Rmaps matching the requested
Rmap hierarchy. |
String |
getRemoteID()
Gets the remote identification. |
byte |
getType()
Gets the type of client connection. |
Username |
getUsername()
Gets the Username associated with this object. |
boolean |
isRunning()
Is this ClientHandle running? |
boolean |
isSynchronized()
Is this ClientHandle synchronized with the server? |
void |
mirror(Mirror mirrorI)
Mirrors data from or to a remote RBNB server. |
void |
sendAddressAuthorization(com.rbnb.api.ServerInterface si,
String auth)
|
void |
setRemoteID(String remoteIDI)
Sets the remote identification. |
void |
setType(byte typeI)
Sets the type of client connection. |
void |
setUsername(Username usernameI)
Sets the Username for this object. |
void |
start()
Starts the ClientHandle. |
void |
start(Client clientI)
Starts the specified Client. |
void |
start(Shortcut shortcutI)
Starts a shortcut connection. |
void |
stop()
Stops the ClientHandle. |
void |
stop(Client clientI)
Stops the Client. |
void |
stop(Server serverI)
Stops the local |
void |
stop(Shortcut shortcutI)
Stops a local Shortcut. |
void |
synchronizeWserver()
Synchronizes with the server. |
boolean |
tryReconnect()
Try to reconnect to an existing ClientHandler? |
| 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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rbnb.api.Controller |
|---|
clone |
| Methods inherited from interface com.rbnb.api.Client |
|---|
isSynchronized, start, start, start, stop, stop, stop, stop, synchronizeWserver |
| 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 |
| Method Detail |
|---|
public final long bytesTransferred()
public final void mirror(Mirror mirrorI)
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
mirror in interface ControllermirrorI - the Mirror command.
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 check is interrupted.
public String fetchAddressAuthorization(com.rbnb.api.ServerInterface si)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
AddressException
SerializeException
InterruptedIOException
IOException
InterruptedException
public void sendAddressAuthorization(com.rbnb.api.ServerInterface si,
String auth)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
AddressException
SerializeException
InterruptedIOException
IOException
InterruptedExceptionprotected final void finalize()
finalize in class Object
public Rmap getRegistered(Rmap requestI)
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
Rmaps matching the requested
Rmap hierarchy.
At this time the following Rmap hierarchies are
implemented:
Syntax notes:
/ indicates a child Rmap.
[/...] indicates an optional child Rmap with a name of
"...". This causes the registration maps of the children of the
Rmap to be expanded.
, indicates multiple children.
getRegistered in interface RegisteredInterfacerequestI - the requested Rmap hierarchy.
Rmap hierarchy containing the registered
Rmaps.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem during serialization.
EOFException - thrown if an EOF is encountered while getting the response.
IOException - thrown if there is a problem during I/O.
InterruptedException - thrown if the get is interrupted.
public final boolean isRunning()
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
ClientHandle running?
isRunning in interface ClientInterfaceClient running?
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.
IllegalStateException - thrown if the Client is in a bad state.
InterruptedException - thrown if the check is interrupted.
public void start()
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
ClientHandle.
start in interface ClientAddressException - 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.
IllegalStateException - thrown if:
ClientHandle has not been connected
to a server,ClientHandle is already running.
InterruptedException - thrown if the start is interrupted.stop()
public final void start(Client clientI)
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
Client.
start in interface ClientclientI - the Client.
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.stop(com.rbnb.api.Client)
public final void start(Shortcut shortcutI)
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
start in interface ClientshortcutI - the Shortcut.
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.stop(com.rbnb.api.Server)
public void stop()
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
ClientHandle.
stop in interface ClientAddressException - 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.
java.lang.InterruptedIOException - thrown if this operation is interrupted.
IOException - thrown if there is an error during I/O.
IllegalStateException - thrown if:
ClientHandle has not been connected
to a server,ClientHandle is already running.
InterruptedException - thrown if the start is interrupted.
InterruptedIOExceptionstart()
public final void stop(Client clientI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
Client.
stop in interface ClientclientI - the Client.
AddressException - thrown if there is an addressing problem.
SerializeException - thrown if there is a problem with the
Serialization.
java.lang.InterruptedIOException - thrown if this operation is interrupted.
IOException - thrown if there is a I/O problem.
InterruptedException - thrown if this operation is interrupted.
InterruptedIOExceptionstart(com.rbnb.api.Client)
public final void stop(Server serverI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
stop in interface ClientserverI - the Server.
AddressException - thrown if there is an addressing problem.
SerializeException - thrown if there is a problem with the
Serialization.
java.lang.InterruptedIOException - thrown if this operation is interrupted.
IOException - thrown if there is a I/O problem.
InterruptedException - thrown if this operation is interrupted.
InterruptedIOException
public final void stop(Shortcut shortcutI)
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
Shortcut.
stop in interface ClientshortcutI - the Shortcut.
AddressException - thrown if there is an addressing problem.
SerializeException - thrown if there is a problem with the
Serialization.
java.lang.InterruptedIOException - thrown if this operation is interrupted.
IOException - thrown if there is a I/O problem.
InterruptedException - thrown if this operation is interrupted.
InterruptedIOExceptionstart(com.rbnb.api.Shortcut)
public void synchronizeWserver()
throws AddressException,
SerializeException,
InterruptedIOException,
IOException,
InterruptedException
synchronizeWserver in interface ClientAddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the
Serialization.
IOException - thrown if there is a I/O problem.
InterruptedException - thrown if this operation is interrupted.
IllegalStateException - thrown if:
ClientHandle has not been connected
to a server,ClientHandle is not running.
InterruptedException - thrown if the synchronization is interrupted.
InterruptedIOExceptionpublic final String getRemoteID()
getRemoteID in interface ClientInterfacesetRemoteID(String)public final byte getType()
getType in interface ClientInterfaceClientInterface.CLIENT,
ClientInterface.MIRROR,
ClientInterface.PLUGIN,
setType(byte)public final Username getUsername()
Username associated with this object.
getUsername in interface UsernameInterfaceUsername.setUsername(com.rbnb.api.Username usernameI)public boolean isSynchronized()
ClientHandle synchronized with the server?
isSynchronized in interface Clientpublic final void setRemoteID(String remoteIDI)
The remote identification specifies the fully-qualified name of the remote RBNB object with which this RBNB object is communicating, if any.
setRemoteID in interface ClientInterfaceremoteIDI - the remote identification.getRemoteID()public final void setType(byte typeI)
setType in interface ClientInterfacetypeI - the type of client connection.ClientInterface.CLIENT,
getType(),
ClientInterface.MIRROR,
ClientInterface.PLUGINpublic final void setUsername(Username usernameI)
Username for this object.
setUsername in interface UsernameInterfaceusernameI - the Username.getUsername()public boolean tryReconnect()
ClientHandler?
Generally when a client logs into the server, and an existing
ClientHandler is found that matches, the new client is
renamed. This method should be overridden if that behavior needs to be
changed.
tryReconnect in interface ClientInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||