|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.transport.multicast.MulticastLinkFactory
public class MulticastLinkFactory
This is a multicast implementation of the LinkFactory Interface. No properties need to be setup during the initialization of the MulticastLink Factory. To enable receipt and sending of data to a given multicast group the user needs to specify the MulticastHost (which must be a valid multicast address) and MulticastPort information.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
MulticastLinkFactory()
|
|
| Method Summary | |
|---|---|
boolean |
canManageLinkMigrationOfType(String linkType)
Indicates if this factory can manage migration of links of a certain type |
Link |
createLink(Properties linkProperties)
Create a communication link based on the properties that have been specified. |
void |
dispose()
This method is used to garbage collect any resources associated with the link factory |
String |
getManagedLinksType()
Return the type of all the links created/managed by this factory |
TransportHandler |
getTransportHandler()
|
void |
handleInboundMulticastLinkRequest(InetAddress remoteAddress,
int remotePort)
|
boolean |
loadLinkFactoryServices()
Starts communication services. |
static void |
main(String[] args)
|
void |
manageLinkMigration(Link link)
Used to migrate communications of a link to the one supported by links managed by this factory |
void |
reportLinkLoss(Link linkLost)
|
void |
setLinkFactoryProperties(Properties factoryProperties)
|
void |
setLinkStatusInterval(long interval)
Set the interval for checking status of all links managed by this factory to the one specified in the argument |
void |
setTransportHandler(TransportHandler transportHandler)
Sets the reference to the transport handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MulticastLinkFactory()
| Method Detail |
|---|
public void setLinkFactoryProperties(Properties factoryProperties)
setLinkFactoryProperties in interface LinkFactorypublic String getManagedLinksType()
getManagedLinksType in interface LinkFactory
public Link createLink(Properties linkProperties)
throws TransportException
createLink in interface LinkFactoryTransportExceptionpublic void setLinkStatusInterval(long interval)
setLinkStatusInterval in interface LinkFactory
public boolean loadLinkFactoryServices()
throws TransportException
loadLinkFactoryServices in interface LinkFactoryTransportExceptionpublic boolean canManageLinkMigrationOfType(String linkType)
canManageLinkMigrationOfType in interface LinkFactory
public void manageLinkMigration(Link link)
throws TransportException
manageLinkMigration in interface LinkFactoryTransportExceptionpublic void setTransportHandler(TransportHandler transportHandler)
setTransportHandler in interface LinkFactorypublic void dispose()
dispose in interface LinkFactory
public void handleInboundMulticastLinkRequest(InetAddress remoteAddress,
int remotePort)
public void reportLinkLoss(Link linkLost)
public TransportHandler getTransportHandler()
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||