|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientInterface
Common representation of a client application connection to an
| Field Summary | |
|---|---|
static byte |
CLIENT
general-purpose client connection. |
static long |
FOREVER
wait until a response appears (block forever). |
static byte |
MIRROR
mirror connection. |
static byte |
PLUGIN
plug-in connection. |
| Method Summary | |
|---|---|
Object |
clone()
Clones this object. |
String |
getRemoteID()
Gets the remote identification. |
byte |
getType()
Gets the type of client connection. |
boolean |
isRunning()
Is this ClientInterface running? |
void |
setRemoteID(String remoteIDI)
Sets the remote identification. |
void |
setType(byte typeI)
Sets the type of client connection. |
boolean |
tryReconnect()
Try to reconnect to an existing ClientHandler? |
| 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 CLIENT
MIRROR,
PLUGIN,
Constant Field Valuesstatic final byte MIRROR
CLIENT,
PLUGIN,
Constant Field Valuesstatic final byte PLUGIN
CLIENT,
MIRROR,
Constant Field Valuesstatic final long FOREVER
| Method Detail |
|---|
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 RmapInterfaceCloneableString getRemoteID()
setRemoteID(String)byte getType()
CLIENT,
MIRROR,
PLUGIN,
setType(byte)
boolean isRunning()
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
ClientInterface running?
Client 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.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.
remoteIDI - the remote identification.getRemoteID()void setType(byte typeI)
typeI - the type of client connection.CLIENT,
getType(),
MIRROR,
PLUGINboolean tryReconnect()
ClientHandler?
If this method returns true, then the server will look for
an existing ClientHandler when the client represented by
the ClientInterface logs in. If a match is found, then the
server will try to reconnect to that existing handler rather than start
a new one.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||