|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TransportHandler
The transport handler interface provides an intermediary between the protocol layers and the underlying transport implementations. Among the operations supported by the transport handler interface are the ability to
| Method Summary | |
|---|---|
void |
closeAllLinks()
Close all links that have been initiated by the hosting node |
void |
closeLinks(Object naradaBrokeringId)
Eliminate all links associated with communicating with the specified naradaBrokering id |
void |
closeLinks(String linkId)
Close all links associated with the specified Id. |
void |
dataReceived(byte[] data,
Object linkIdentifier)
Upon receipt of data at a link that has an assigned NaradaBrokering identifier, this is the method that is used. |
void |
dataReceived(byte[] data,
String linkIdentifier)
byte[] signifies the data received over a communication link. |
void |
disposeAllCommunicationResources()
|
String[] |
enumerateLinks()
Enumerate the list of links available. |
String[] |
getListOfCommunicationProtocolsSupported()
Provides a list of transport services that are supported by the node |
PerformanceMeasurement |
getMeasurementService()
Retrieves the management service |
Hashtable |
getRegisteredLinks()
|
Hashtable |
getSupportedTransportProtocols()
Gets the list of registered transport protocols along with the property list associated with these protocols. |
TransmissionManager |
getTransmissionManager()
Retrieve the TransmissionManager, which keeps track of ongoing transmissions. |
void |
loadCommunicationsOfType(Properties properties,
String communicationsType)
Used to load a specific communications handler |
void |
manageLinkLoss(Link link)
This method is to be invoked by link factories to report communication failure in one of the links (reported in argument) that it manages |
boolean |
manageLinkMigrationRequest(Link link,
String migrateTo)
This method is to be invoked by link to request migration of transport protocols for one of its managed links |
void |
mapLinkToBrokerNode(String linkId,
Object naradaBrokeringId,
Object brokerConnectionIdentifier)
This method is invoked from the protocol layers, after assigning a NaradaBrokering id |
void |
mapLinkToClientNode(String linkId,
Object naradaBrokeringId,
Object clientIdentifier)
This method is invoked from the protocol layers, after assigning a NaradaBrokering id |
void |
registerLink(LinkFactory linkFactory,
Link link)
This method is invoked by a link factory when it has successfully set up a connection based on the specific transport protocol. |
void |
sendData(byte[] data,
Object naradaBrokeringId)
Used to send a stream of bytes to a NaradaBrokering node |
void |
sendData(byte[] data,
Object naradaBrokeringId,
String dataType)
Used to send a stream of bytes to a NaradaBrokering node. |
void |
sendData(byte[] data,
Object naradaBrokeringId,
String linkType,
String dataType)
Used to send a stream of bytes to a NaradaBrokering node, using a specified communication type. |
void |
sendData(byte[] data,
String unitializedNode)
Send data to an unitialized node (or a node to which connection is initiated for the first time). |
void |
sendData(byte[] data,
String unitializedNode,
String dataType)
Send data to an unitialized node (or a node to which connection is initiated for the first time). |
void |
setLinkStatusIntervals(LinkFactory connectionHandler,
long pingIntervals)
Sets the interval size for a connection status checks for links managed by a specific link factory. |
void |
setLinkStatusIntervals(long pingIntervals)
This is used to set the interval size at which tests on connection status need to be performed. |
void |
setupAlternateLink(Properties linkProperties,
Object naradaBrokeringId,
String linkType,
long keepAliveTime)
Used by the protocol layers to setup alternate links for communication based on the type of data that is being routed. |
String |
setupLink(Properties linkProperties,
String linkType)
This is used to setup a communication link between 2 NaradaBrokering end points. |
void |
shutdown()
|
| Method Detail |
|---|
void setLinkStatusIntervals(long pingIntervals)
void setLinkStatusIntervals(LinkFactory connectionHandler,
long pingIntervals)
String[] getListOfCommunicationProtocolsSupported()
void loadCommunicationsOfType(Properties properties,
String communicationsType)
throws TransportException
TransportException
void registerLink(LinkFactory linkFactory,
Link link)
void manageLinkLoss(Link link)
boolean manageLinkMigrationRequest(Link link,
String migrateTo)
void dataReceived(byte[] data,
String linkIdentifier)
void dataReceived(byte[] data,
Object linkIdentifier)
String setupLink(Properties linkProperties,
String linkType)
throws TransportException
TransportException
void setupAlternateLink(Properties linkProperties,
Object naradaBrokeringId,
String linkType,
long keepAliveTime)
throws TransportException
TransportException
void sendData(byte[] data,
String unitializedNode)
throws TransportException
TransportException
void sendData(byte[] data,
Object naradaBrokeringId)
throws TransportException
TransportException
void sendData(byte[] data,
String unitializedNode,
String dataType)
throws TransportException
TransportException
void sendData(byte[] data,
Object naradaBrokeringId,
String dataType)
throws TransportException
TransportException
void sendData(byte[] data,
Object naradaBrokeringId,
String linkType,
String dataType)
throws TransportException
TransportExceptionString[] enumerateLinks()
void closeLinks(Object naradaBrokeringId)
void closeLinks(String linkId)
void closeAllLinks()
void disposeAllCommunicationResources()
void mapLinkToClientNode(String linkId,
Object naradaBrokeringId,
Object clientIdentifier)
void mapLinkToBrokerNode(String linkId,
Object naradaBrokeringId,
Object brokerConnectionIdentifier)
PerformanceMeasurement getMeasurementService()
Hashtable getRegisteredLinks()
void shutdown()
Hashtable getSupportedTransportProtocols()
TransmissionManager getTransmissionManager()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||