|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.remotecommand.DiscoveryManager
public class DiscoveryManager
Purpose: Detects new members of a logical TopLink cluster.
Description: Each RemoteCommandManager has its own DiscoveryManager, which handles the detection of other remote command services as they become available. The DiscoveryManager is an active object (in that it extends Thread) and becomes a separate thread when it is started using startDiscovery().
Discovery is done through the use of a multicast. Each discovery manager joins the multicast group and announces itself to the group. As it receives service announcements from other discovery managers it notifies the RCM to establish connections to and from the new service.
RemoteCommandManager
,
MulticastSocket
Field Summary | |
---|---|
static int |
DEFAULT_ANNOUNCEMENT_DELAY
|
static java.lang.String |
DEFAULT_MULTICAST_GROUP
Default value constants |
static int |
DEFAULT_MULTICAST_PORT
|
static int |
DEFAULT_PACKET_TIME_TO_LIVE
|
Constructor Summary | |
---|---|
DiscoveryManager(RemoteCommandManager mgr)
Constructors to create a discvovery manager. |
|
DiscoveryManager(java.lang.String address,
int port,
int delay,
RemoteCommandManager mgr)
|
|
DiscoveryManager(java.lang.String address,
int port,
RemoteCommandManager mgr)
|
Method Summary | |
---|---|
int |
getAnnouncementDelay()
Return the amount of time in millis that the service should wait between the time that this Remote Service is available and a session announcement is sent out to other discovery managers. |
java.lang.String |
getMulticastGroupAddress()
Return the host adddress of the multicast group. |
int |
getMulticastPort()
Return the multicast port used for discovery. |
int |
getPacketTimeToLive()
Returns the number of hops the data packets of the session annoucemnt will take before expiring. |
boolean |
isDiscoveryStopped()
ADVANCED: Return true if discovery has been stopped at the time this method is called. |
void |
setAnnouncementDelay(int millisecondsToDelay)
Set the amount of time in millis that the service should wait between the time that this Remote Service is available and a session announcement is sent out to other discovery managers. |
void |
setMulticastGroupAddress(java.lang.String address)
Set the host adddress of the multicast group. |
void |
setMulticastPort(int port)
Set the multicast port used for discovery. |
void |
setPacketTimeToLive(int newPacketTimeToLive)
Set the number of hops the data packets of the session annoucemnt will take before expiring. |
void |
startDiscovery()
ADVANCED: Announce the local service and join the cluster |
void |
stopDiscovery()
ADVANCED: Stop accepting announcements from other services becoming available. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_MULTICAST_GROUP
DiscoveryManager
public static final int DEFAULT_MULTICAST_PORT
public static final int DEFAULT_PACKET_TIME_TO_LIVE
public static final int DEFAULT_ANNOUNCEMENT_DELAY
Constructor Detail |
---|
public DiscoveryManager(RemoteCommandManager mgr)
public DiscoveryManager(java.lang.String address, int port, RemoteCommandManager mgr)
public DiscoveryManager(java.lang.String address, int port, int delay, RemoteCommandManager mgr)
Method Detail |
---|
public void startDiscovery()
public void stopDiscovery()
public boolean isDiscoveryStopped()
public void setAnnouncementDelay(int millisecondsToDelay)
public int getAnnouncementDelay()
public java.lang.String getMulticastGroupAddress()
public void setMulticastGroupAddress(java.lang.String address)
public void setMulticastPort(int port)
public int getMulticastPort()
public int getPacketTimeToLive()
public void setPacketTimeToLive(int newPacketTimeToLive)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |