|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A primary channel manager. Several different implementations of the PrimaryChannelManager interface may be provided (local, remote, etc.). This interface includes methods unique to primary channel managers. It extends the ChannelManager interface, which includes methods that are shared by both secondary and primary channel managers. To get a PrimaryChannelManager object, use LocalPCM.getLocalPCM().
ChannelManager
,
LocalPCM
Method Summary | |
void |
addSCM(java.lang.String principal)
Adds a principal to the list of secondary channel managers (SCMs) authorized to communicate with this channel manager. |
Channel |
createChannel()
Create a new Channel. |
void |
fileChannel(Channel channel,
java.lang.String fileName)
Serialize and store a channel in a file. |
int |
getChannelLimit()
Gets the maximum number of channels that this PCM can own. |
int |
getOwnedChannelCount()
Gets the number of channels owned by this channel manager. |
long[] |
getOwnedChannelList()
Gets a list of channel IDs for channels owned by this channel manager. |
int |
getSCMCount()
Gets the number of secondary channel managers (SCMs) authorized to communicate with this channel manager. |
java.lang.String[] |
getSCMList()
Gets a copy of the list of secondary channel managers (SCMs) authorized to communicate with this channel manager. |
Channel |
readChannel(java.lang.String fileName)
Read a serialized channel from a file. |
void |
removeSCM(java.lang.String principal)
Removes a principal from the list of secondary channel managers (SCMs) authorized to communicate with this channel manager. |
void |
setChannelLimit(int limit)
Set the maximum number of channels that this PCM can own. |
Methods inherited from interface com.sun.multicast.reliable.channel.ChannelManager |
addChannelListChangeListener, authenticate, getChannel, getChannelCount, getChannelList, getRegisteredReceiverCount, getRegisteredReceiverList, getRegistrationFailureCount, isEnabled, removeChannelListChangeListener, setEnabled |
Method Detail |
public Channel createChannel() throws LimitExceededException, RMException, java.rmi.RemoteException
LimitExceededException
- if the PCM's channel limit has been reachedRMException
- if a
reliable-multicast-related exception occursjava.rmi.RemoteException
- if an RMI-related exception occurspublic void setChannelLimit(int limit) throws LimitExceededException, RMException, java.rmi.RemoteException
limit
- the new channel limitLimitExceededException
- if the PCM already
has more channels than the new limitRMException
- if a
reliable-multicast-related exception occursjava.rmi.RemoteException
- if an RMI-related exception occurspublic int getChannelLimit() throws RMException, java.rmi.RemoteException
RMException
- if a
reliable-multicast-related exception occursjava.rmi.RemoteException
- if an RMI-related exception occurspublic void addSCM(java.lang.String principal) throws RMException, java.rmi.RemoteException
principal
- the principal name to be addedRMException
- if a
reliable-multicast-related exception occursjava.rmi.RemoteException
- if an RMI-related exception occurspublic void removeSCM(java.lang.String principal) throws RMException, java.rmi.RemoteException
principal
- the principal name to be removedRMException
- if a
reliable-multicast-related exception occursjava.rmi.RemoteException
- if an RMI-related exception occurspublic int getSCMCount() throws RMException, java.rmi.RemoteException
RMException
- if a
reliable-multicast-related exception occursjava.rmi.RemoteException
- if an RMI-related exception occurspublic java.lang.String[] getSCMList() throws RMException, java.rmi.RemoteException
RMException
- if a
reliable-multicast-related exception occursjava.rmi.RemoteException
- if an RMI-related exception occurspublic int getOwnedChannelCount() throws RMException, java.rmi.RemoteException
RMException
- if a
reliable-multicast-related exception occursjava.rmi.RemoteException
- if an RMI-related exception occurspublic long[] getOwnedChannelList() throws RMException, java.rmi.RemoteException
RMException
- if a
reliable-multicast-related exception occursjava.rmi.RemoteException
- if an RMI-related exception occurspublic Channel readChannel(java.lang.String fileName) throws java.io.IOException, java.lang.ClassNotFoundException
fileName
- the name of the file to store the channeljava.io.IOException
- is raised if failure to read from filepublic void fileChannel(Channel channel, java.lang.String fileName) throws java.io.IOException
channel
- the channel to be stored in a filefileName
- the name of the file to store the channeljava.io.IOException
- is raised if failure to write to file
|
|||||||||
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.