|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.multicast.reliable.simple.SimpleSender
A simple sender object. This class provides a single class that lets you send data as simply as possible. Multiple senders per channel, security, and out of order delivery are not supported.
Constructor Summary | |
SimpleSender(java.lang.String channelFileName)
Creates a SimpleSender a serialized channel stored in a file. |
|
SimpleSender(java.lang.String channelFileName,
boolean verbose)
|
|
SimpleSender(java.lang.String applicationName,
java.lang.String channelName,
java.util.Date startTime,
java.util.Date endTime,
Scope scope,
byte ttl)
Creates a SimpleSender with the parameters given. |
Method Summary | |
void |
close()
Leaves the multicast transport session gracefully. |
java.io.OutputStream |
getOutputStream()
Returns an OutputStream object that may be used to send data. |
TRAMTransportProfile |
getTRAMTransportProfile()
|
void |
waitTill(java.util.Date time)
Waits until a specific time. |
void |
waitTill(int numberReceivers)
Waits until a certain number of receivers are on the channel *** currently unsupported *** |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleSender(java.lang.String applicationName, java.lang.String channelName, java.util.Date startTime, java.util.Date endTime, Scope scope, byte ttl) throws RMException, java.io.IOException, java.rmi.RemoteException
applicationName
- the name of the applicationchannelName
- the name of the channelstartTime
- the time that the sender expects to start sending dataendTime
- the time that the sender expects to stop sending data
(null if unknown)scope
- the administrative scope requested (null to choose one
based on the ttl)ttl
- the time-to-live value for the data sent (1 is a good default)java.io.IOException
- if an I/O error occursRMException
- if a
reliable-multicast-related exception occursjava.rmi.RemoteException
- if an RMI-related exception occurspublic SimpleSender(java.lang.String channelFileName) throws RMException, java.io.IOException
channelFileName
- java.io.IOException
- if an I/O error occursRMException
- if a
reliable-multicast-related exception occurspublic SimpleSender(java.lang.String channelFileName, boolean verbose) throws RMException, java.io.IOException
Method Detail |
public void waitTill(java.util.Date time)
time
- the time to wait forpublic void waitTill(int numberReceivers) throws UnsupportedException, RMException
numberReceivers
- the number of receivers to wait forRMException
- if a
reliable-multicast-related exception occurspublic java.io.OutputStream getOutputStream() throws UnsupportedException, RMException
RMException
- if a reliable-multicast-related exception occursUnsupportedException
- if the operation is not supportedpublic void close()
public TRAMTransportProfile getTRAMTransportProfile()
|
|||||||||
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.