|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.multicast.advertising.Advertiser
Controls advertising of Advertisement objects.
Advertisement| Method Summary | |
static Advertiser |
getAdvertiser()
Returns a reference to the Advertiser. |
void |
run()
Overrides Thread's run method. |
void |
startAdvertising(Advertisement advertisement)
Starts advertising an Advertisement on the default advertising address. |
void |
startAdvertising(java.net.InetAddress advertisingAddress,
Advertisement advertisement)
Starts advertising an Advertisement on the specified advertising address. |
void |
startAdvertising(java.net.InetAddress advertisingAddress,
java.net.InetAddress address,
int ttl,
java.util.Date startTime,
java.util.Date endTime)
Starts advertising an address on the specified address. |
void |
startAdvertising(java.net.InetAddress address,
int ttl,
java.util.Date startTime,
java.util.Date endTime)
Starts advertising an address on the default advertising address. |
boolean |
stopAdvertising(Advertisement advertisement)
Stops advertising an Advertisement. |
boolean |
stopAdvertising(java.net.InetAddress address)
Stops advertising an address. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Advertiser getAdvertiser()
throws java.net.UnknownHostException
public void startAdvertising(java.net.InetAddress advertisingAddress,
java.net.InetAddress address,
int ttl,
java.util.Date startTime,
java.util.Date endTime)
throws java.io.IOException
advertisingAddress - the address on which to send the advertisementaddress - the address to be advertisedttl - the time-to-live to use in the advertisementstartTime - the time to start advertisingendTime - the time to stop advertising
public void startAdvertising(java.net.InetAddress advertisingAddress,
Advertisement advertisement)
throws java.io.IOException
advertisingAddress - the address on which to send the Advertisementadvertisement - the Advertisement to be advertised
public void startAdvertising(java.net.InetAddress address,
int ttl,
java.util.Date startTime,
java.util.Date endTime)
throws java.io.IOException
address - the address to be advertisedttl - the time-to-live to use in the advertisementstartTime - the time to start advertisingendTime - the time to stop advertising
public void startAdvertising(Advertisement advertisement)
throws java.io.IOException
advertisement - the Advertisement to be advertisedpublic boolean stopAdvertising(java.net.InetAddress address)
address - the address to stop advertisingtrue if the Advertisement was found;
false otherwisepublic boolean stopAdvertising(Advertisement advertisement)
true if the Advertisement was found;
false otherwisepublic void run()
run in interface java.lang.Runnable
|
|||||||||
| 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.