edu.harvard.syrah.pyxida.api
Class ExternalAPI
java.lang.Object
HTTPCallbackHandler
edu.harvard.syrah.pyxida.api.ExternalAPI
- All Implemented Interfaces:
- ExternalAPIIF
public class ExternalAPI
- extends HTTPCallbackHandler
- implements ExternalAPIIF
Method Summary |
protected void |
cb(CBResult result,
AddressIF remoteAddr,
java.lang.String path,
java.lang.String requestData,
cbResponse)
|
void |
createProxyCoord(java.lang.String remoteNodeStr,
int lease,
cbResult)
|
void |
destroyProxyCoord(java.lang.String remoteNodeStr,
cbResult)
|
void |
estimateRTT(java.lang.String nodeA,
java.lang.String nodeB,
cbDistance)
|
void |
getLocalCoord( cbLocalCoord)
Returns a coordinate
of either a substrate node or a local proxy node |
void |
getLocalError( cbLocalError)
|
void |
getProxyCoord(java.lang.String remoteNodeStr,
cbProxyCoord)
|
void |
getRemoteCoord(java.lang.String remoteNodeStr,
cbRemoteCoord)
|
void |
getRemoteCoords(java.util.Hashtable<java.lang.String,java.lang.Object> remoteNodesMap,
cbRemoteCoords)
|
void |
renewProxyCoord(java.lang.String remoteNodeStr,
int lease,
cbResult)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalAPI
public ExternalAPI(NCManager ncManager)
createProxyCoord
public void createProxyCoord(java.lang.String remoteNodeStr,
int lease,
cbResult)
- Specified by:
createProxyCoord
in interface ExternalAPIIF
getProxyCoord
public void getProxyCoord(java.lang.String remoteNodeStr,
cbProxyCoord)
- Specified by:
getProxyCoord
in interface ExternalAPIIF
destroyProxyCoord
public void destroyProxyCoord(java.lang.String remoteNodeStr,
cbResult)
- Specified by:
destroyProxyCoord
in interface ExternalAPIIF
estimateRTT
public void estimateRTT(java.lang.String nodeA,
java.lang.String nodeB,
cbDistance)
- Specified by:
estimateRTT
in interface ExternalAPIIF
getLocalCoord
public void getLocalCoord( cbLocalCoord)
- Description copied from interface:
ExternalAPIIF
- Returns a coordinate
of either a substrate node or a local proxy node
- Specified by:
getLocalCoord
in interface ExternalAPIIF
getRemoteCoords
public void getRemoteCoords(java.util.Hashtable<java.lang.String,java.lang.Object> remoteNodesMap,
cbRemoteCoords)
- Specified by:
getRemoteCoords
in interface ExternalAPIIF
getRemoteCoord
public void getRemoteCoord(java.lang.String remoteNodeStr,
cbRemoteCoord)
- Specified by:
getRemoteCoord
in interface ExternalAPIIF
getLocalError
public void getLocalError( cbLocalError)
- Specified by:
getLocalError
in interface ExternalAPIIF
renewProxyCoord
public void renewProxyCoord(java.lang.String remoteNodeStr,
int lease,
cbResult)
- Specified by:
renewProxyCoord
in interface ExternalAPIIF
cb
protected void cb(CBResult result,
AddressIF remoteAddr,
java.lang.String path,
java.lang.String requestData,
cbResponse)