|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.via.Via
public class Via
Field Summary | |
---|---|
private static ConcurrentHashMap<Class<? extends ViaMunita<?>>,ConcurrentSkipListSet<Map.Entry<String,Vector<Class<?>>>>> |
classMethodIntrospectionCache
WRITEME: document this field (brpocock@star-hope.org, Jan 15, 2010) munita (Via) |
private static ConcurrentSkipListSet<ViaHost> |
peers
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) peers (Via) |
private static String |
RPC_CALL
WRITEME: document this field (brpocock@star-hope.org, Jan 18, 2010) RPC_CALL (Via) |
private static ConcurrentHashMap<String,Socket> |
socketCache
|
Constructor Summary | |
---|---|
Via()
|
Method Summary | |
---|---|
private static void |
classReady(ViaMunita<?> o)
WRITEME: document this method (brpocock@star-hope.org, Jan 15, 2010) |
private static Object[] |
conformRPCArgs(ViaMunita<?> remote,
String methodName,
Object... args)
WRITEME: document this method (brpocock@star-hope.org, Jan 15, 2010) |
static void |
connect(ViaMunita<?> o)
WRITEME: document this method (brpocock@star-hope.org, Jan 13, 2010) |
private static Object |
deserialize(String in)
|
static void |
flush(ViaMunita<?> localHalf)
|
static String |
getPathFromURL(String url)
WRITEME: document this method (brpocock@star-hope.org, Jan 11, 2010) |
Set<ViaHost> |
getPeers()
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009) |
static int |
getPortNumberFromURL(String url)
WRITEME: document this method (brpocock@star-hope.org, Jan 11, 2010) |
static String |
getServerNameFromURL(String url)
WRITEME: document this method (brpocock@star-hope.org, Jan 11, 2010) |
static void |
joinPeers()
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009) |
static Object |
rpc(ViaMunita<?> remote,
String methodName,
Object... args)
|
private static String |
serialize(Object o)
WRITEME: document this method (brpocock@star-hope.org, Jan 18, 2010) |
private static void |
setRemote(ViaMunita<?> remote,
Method m,
SetRemote a)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final ConcurrentHashMap<Class<? extends ViaMunita<?>>,ConcurrentSkipListSet<Map.Entry<String,Vector<Class<?>>>>> classMethodIntrospectionCache
private static ConcurrentSkipListSet<ViaHost> peers
private static final String RPC_CALL
private static final ConcurrentHashMap<String,Socket> socketCache
Constructor Detail |
---|
public Via()
Method Detail |
---|
private static void classReady(ViaMunita<?> o)
o
- an object of the class to be made readyprivate static Object[] conformRPCArgs(ViaMunita<?> remote, String methodName, Object... args)
remote
- WRITEMEmethodName
- WRITEMEargs
- WRITEME
public static void connect(ViaMunita<?> o) throws DoNotCrossTheRubicon
o
- the local half of the connection to be connected to its
remote peer
DoNotCrossTheRubicon
- WRITEMEprivate static Object deserialize(String in) throws ViaCommunicationsException
in
- WRITEME
ViaCommunicationsException
- WRITEMEpublic static void flush(ViaMunita<?> localHalf)
localHalf
- Local half of the connectionpublic static String getPathFromURL(String url)
url
- WRITEME
public static int getPortNumberFromURL(String url)
url
- WRITEME
public static String getServerNameFromURL(String url)
url
- WRITEME
public static void joinPeers() throws NumberFormatException, UnknownHostException, IOException, NotFoundException
NumberFormatException
- WRITEME
UnknownHostException
- WRITEME
IOException
- WRITEME
NotFoundException
- WRITEMEpublic static Object rpc(ViaMunita<?> remote, String methodName, Object... args)
remote
- WRITEMEmethodName
- WRITEMEargs
- WRITEME
private static String serialize(Object o)
o
- WRITEME
private static void setRemote(ViaMunita<?> remote, Method m, SetRemote a)
remote
- WRITEMEm
- WRITEMEa
- WRITEMEpublic Set<ViaHost> getPeers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |