|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A reliable multicast channel manager. Several different implementations of the ChannelManager interface are provided, depending on whether it's local or remote. This interface includes methods that are shared by both secondary and primary channel managers. It is extended by the PrimaryChannelManager interface, which adds methods unique to primary channel managers. To get a ChannelManager object, use LocalPCM.getLocalPCM().
PrimaryChannelManager,
LocalPCM| Method Summary | |
void |
addChannelListChangeListener(com.sun.multicast.reliable.channel.ChannelListChangeListener listener)
Add a ChannelListChangeListener to the listener list. |
boolean |
authenticate(java.lang.String identity,
java.lang.String key)
Authenticate with the ChannelManager. |
Channel |
getChannel(long channelID)
Get the Channel that goes with a given channel ID. |
int |
getChannelCount()
Get the number of channels accessible to this principal on this channel manager. |
long[] |
getChannelList(java.lang.String channelName,
java.lang.String applicationName)
Get an array of channel IDs for all the channels accessible to this principal on this channel manager that match the channel and application names given. |
int |
getRegisteredReceiverCount()
Get the number of registered receivers for the ChannelManager. |
java.lang.String[] |
getRegisteredReceiverList()
Get an array of principal names for all the registered receivers on this channel manager. |
int |
getRegistrationFailureCount()
Get the number of registration failures for the ChannelManager. |
boolean |
isEnabled()
Tests whether the channel manager is enabled. |
void |
removeChannelListChangeListener(com.sun.multicast.reliable.channel.ChannelListChangeListener listener)
Remove a ChannelListChangeListener from the listener list. |
void |
setEnabled(boolean b)
Sets whether the channel manager is enabled. |
| Method Detail |
public boolean authenticate(java.lang.String identity,
java.lang.String key)
throws RMException,
java.rmi.RemoteException
identity - the identity to be establishedkey - the authorization key to be usedtrue if authentication succeeded;
false otherwiseRMException - if a
reliable-multicast-related exception occursjava.rmi.RemoteException - if an RMI-related exception occurs
public int getChannelCount()
throws RMException,
java.rmi.RemoteException
RMException - if a
reliable-multicast-related exception occursjava.rmi.RemoteException - if an RMI-related exception occurs
public long[] getChannelList(java.lang.String channelName,
java.lang.String applicationName)
throws RMException,
java.rmi.RemoteException
channelName - channel name to match (null to match any)applicationName - application name to match (null to match any)RMException - if a
reliable-multicast-related exception occursjava.rmi.RemoteException - if an RMI-related exception occurs
public Channel getChannel(long channelID)
throws RMException,
ChannelNotFoundException,
java.rmi.RemoteException
channelID - channel ID whose Channel is requestedRMException - if a
reliable-multicast-related exception occursChannelNotFoundException - if there is no Channel with the given IDjava.rmi.RemoteException - if an RMI-related exception occurs
public int getRegisteredReceiverCount()
throws RMException,
java.rmi.RemoteException
RMException - if a
reliable-multicast-related exception occursjava.rmi.RemoteException - if an RMI-related exception occurs
public java.lang.String[] getRegisteredReceiverList()
throws RMException,
java.rmi.RemoteException
RMException - if a
reliable-multicast-related exception occursjava.rmi.RemoteException - if an RMI-related exception occurs
public int getRegistrationFailureCount()
throws RMException,
java.rmi.RemoteException
RMException - if a
reliable-multicast-related exception occursjava.rmi.RemoteException - if an RMI-related exception occurs
public void setEnabled(boolean b)
throws RMException,
java.rmi.RemoteException
b - if true, enable the channel manager;
otherwise, disable itRMException - if a
reliable-multicast-related exception occursjava.rmi.RemoteException - if an RMI-related exception occurs
public boolean isEnabled()
throws RMException,
java.rmi.RemoteException
RMException - if a
reliable-multicast-related exception occursjava.rmi.RemoteException - if an RMI-related exception occurs
public void addChannelListChangeListener(com.sun.multicast.reliable.channel.ChannelListChangeListener listener)
throws RMException,
java.rmi.RemoteException
listener - the listener to be addedRMException - if a
reliable-multicast-related exception occursjava.rmi.RemoteException - if an RMI-related exception occurs
public void removeChannelListChangeListener(com.sun.multicast.reliable.channel.ChannelListChangeListener listener)
throws RMException,
java.rmi.RemoteException
listener - the listener to be removedRMException - if a
reliable-multicast-related exception occursjava.rmi.RemoteException - if an RMI-related exception occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.