|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.catullus.JavaRMIVehicle
public class JavaRMIVehicle
Vehicle for performing Java RMI RPC
| Field Summary | |
|---|---|
private String |
rmiURL
RMI naming URL |
(package private) JavaRMIServer |
server
RMI server object obtained from the naming service |
| Constructor Summary | |
|---|---|
JavaRMIVehicle()
|
|
| Method Summary | ||
|---|---|---|
void |
connect()
WRITEME: Document this method brpocock@star-hope.org |
|
void |
disconnect()
WRITEME: Document this method brpocock@star-hope.org |
|
String |
getURL()
|
|
|
read(Via<T> via,
Class<T> klass,
int id)
WRITEME: Document this method brpocock@star-hope.org |
|
|
read(Via<T> via,
Class<T> klass,
String ident)
WRITEME: Document this method brpocock@star-hope.org |
|
|
remove(T obj)
WRITEME: Document this method brpocock@star-hope.org |
|
void |
setURL(String newRMI_URL)
|
|
|
write(T obj)
WRITEME: Document this method brpocock@star-hope.org |
|
|
writeSync(T obj)
WRITEME: Document this method brpocock@star-hope.org |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String rmiURL
JavaRMIServer server
| Constructor Detail |
|---|
public JavaRMIVehicle()
| Method Detail |
|---|
public void connect()
throws NotFoundException,
CredentialExpiredException,
ForbiddenUserException,
NotReadyException,
ParameterException,
SerialDataException
Vehicle
connect in interface VehicleNotFoundException - perhaps the remote host is unreachable
CredentialExpiredException - the credentials may have once
been valid, but are not any more
ForbiddenUserException - the credentials are invalid
NotReadyException - the remote host might not be responding
ParameterException - general problem caused by the caller
SerialDataException - general problem caused in data
transferVehicle.connect()
public void disconnect()
throws SerialDataException,
AlreadyUsedException,
ParameterException
Vehicle
disconnect in interface VehicleSerialDataException - general problem caused by data
transfer
AlreadyUsedException - not connected
ParameterException - general problem caused by the callerVehicle.disconnect()public String getURL()
getURL in interface Vehicle
public <T extends DataRecord> T read(Via<T> via,
Class<T> klass,
int id)
throws NotReadyException,
NotFoundException
Vehicle
read in interface VehicleT - WRITEMEvia - WRITEMEklass - WRITEMEid - WRITEME
NotReadyException - if the server isn't connected
NotFoundException - if the object can't be foundVehicle.read(Via,java.lang.Class, int)
public <T extends DataRecord> T read(Via<T> via,
Class<T> klass,
String ident)
throws NotReadyException,
NotFoundException
Vehicle
read in interface VehicleT - WRITEMEvia - WRITEMEklass - WRITEMEident - WRITEME
NotReadyException - if the server isn't connected
NotFoundException - if the object can't be foundVehicle.read(Via,java.lang.Class,
String)
public <T extends DataRecord> void remove(T obj)
throws NotReadyException,
NotFoundException
Vehicle
remove in interface VehicleT - WRITEMEobj - WRITEME
NotReadyException - WRITEME
NotFoundException - WRITEMEVehicle.remove(org.starhope.appius.util.DataRecord)public void setURL(String newRMI_URL)
setURL in interface VehiclenewRMI_URL - the rmiURL to set
public <T extends DataRecord> T write(T obj)
throws NotReadyException
Vehicle
write in interface VehicleT - WRITEMEobj - WRITEME
NotReadyException - server not connected or readyVehicle.write(DataRecord)
public <T extends DataRecord> T writeSync(T obj)
throws NotReadyException
Vehicle
writeSync in interface VehicleT - WRITEMEobj - WRITEME
NotReadyException - WRITEMEVehicle.writeSync(org.starhope.appius.util.DataRecord)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||