|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.starhope.catullus.GaiusValeriusCatullus
public class GaiusValeriusCatullus
Gaius Valerius Catullus is the class moving data around between the client and server … WRITEME
Nested Class Summary | |
---|---|
(package private) static class |
GaiusValeriusCatullus.BoringSocketFactory
WRITEME: Document this type. |
(package private) static class |
GaiusValeriusCatullus.LocalServerSocketFactory
a simple factory to emit server sockets for RMI |
Field Summary | |
---|---|
private Registry |
registry
WRITEME: Document this brpocock@star-hope.org |
private static long |
serialVersionUID
Java serialisation unique ID |
private String |
serviceName
The name used for RMI binding; defaults to org.starhope.catullus.serviceName in the configuration, or, failing that, C.Valerius.Catullus |
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
GaiusValeriusCatullus()
default no-op constructor. |
|
GaiusValeriusCatullus(String newServiceName)
default no-op constructor |
Method Summary | ||
---|---|---|
private
|
getLocalPeer(S obj)
get a local peer class |
|
|
read(Class<T> klass,
int id)
WRITEME: Document this method brpocock@star-hope.org |
|
|
read(Class<T> klass,
String ident)
WRITEME: Document this method brpocock@star-hope.org |
|
|
remove(T obj)
WRITEME: Document this method brpocock@star-hope.org |
|
private static
|
setAll_annotatedClass(T dest,
T source,
Class<T> klass)
set all properties for an annotated class (using the Setter annotations and such) |
|
private static
|
setAll_getSetter(Class<T> klass,
Method m)
figure out what getter goes with a given setter |
|
private static
|
setAll_setFromGetter(T dest,
T source,
Class<T> klass,
Method m,
String getName,
Class<?>[] parameterTypes,
Class<?> kind,
Method getter)
set a property from a given getter |
|
(package private) static
|
setAll(T dest,
T source)
set all properties of a data record based upon its peer |
|
|
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.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final transient Registry registry
private final String serviceName
Constructor Detail |
---|
public GaiusValeriusCatullus() throws RemoteException, NotReadyException
RemoteException
- WRITEME
NotReadyException
- WRITEMEpublic GaiusValeriusCatullus(String newServiceName) throws NotReadyException, RemoteException
newServiceName
- WRITEME
NotReadyException
- WRITEME
RemoteException
- WRITEMEMethod Detail |
---|
static <T extends DataRecord> T setAll(T dest, T source) throws DataException
T
- type of the source and destinationdest
- the object to be altered to match the othersource
- the source from which properties are to be copied
DataException
- if the objects aren't compatibleprivate static <T extends DataRecord> void setAll_annotatedClass(T dest, T source, Class<T> klass) throws SecurityException, DataException
Setter
annotations and such)
T
- WRITEMEdest
- WRITEMEsource
- WRITEMEklass
- WRITEME
SecurityException
- WRITEME
DataException
- WRITEMEprivate static <T> String setAll_getSetter(Class<T> klass, Method m) throws DataException
T
- WRITEMEklass
- WRITEMEm
- WRITEME
DataException
- WRITEMEprivate static <T> void setAll_setFromGetter(T dest, T source, Class<T> klass, Method m, String getName, Class<?>[] parameterTypes, Class<?> kind, Method getter) throws DataException
T
- WRITEMEdest
- WRITEMEsource
- WRITEMEklass
- WRITEMEm
- WRITEMEgetName
- WRITEMEparameterTypes
- WRITEMEkind
- WRITEMEgetter
- WRITEME
DataException
- WRITEMEprivate <T extends DataRecord,S extends T> T getLocalPeer(S obj)
T
- class to locateS
- the specific class of the peerobj
- object whose peer to find
public <T extends DataRecord> T read(Class<T> klass, int id) throws NotFoundException
JavaRMIServer
read
in interface JavaRMIServer
T
- WRITEMEklass
- WRITEMEid
- WRITEME
NotFoundException
- if the record isn't foundJavaRMIServer.read(java.lang.Class,
int)
public <T extends DataRecord> T read(Class<T> klass, String ident) throws NotFoundException
JavaRMIServer
read
in interface JavaRMIServer
T
- WRITEMEklass
- WRITEMEident
- WRITEME
NotFoundException
- Read a data record locallyJavaRMIServer.read(java.lang.Class,
java.lang.String)
public <T extends DataRecord> void remove(T obj)
JavaRMIServer
remove
in interface JavaRMIServer
T
- WRITEMEobj
- WRITEMEJavaRMIServer.remove(org.starhope.appius.util.DataRecord)
public <T extends DataRecord> T write(T obj)
JavaRMIServer
write
in interface JavaRMIServer
T
- whatever type it might beobj
- WRITEME
JavaRMIServer.write(DataRecord)
public <T extends DataRecord> T writeSync(T obj) throws RemoteException
JavaRMIServer
writeSync
in interface JavaRMIServer
T
- WRITEMEobj
- WRITEME
RemoteException
- WRITEMEJavaRMIServer.writeSync(org.starhope.appius.util.DataRecord)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |