|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.multicast.allocation.MulticastAddressManager
A multicast address manager. The MulticastAddressManager class is the primary interface for multicast address management.
There is only one MulticastAddressManager object per Java VM. To get it, use the getMulticastAddressManager static method.
Constructor Summary | |
protected |
MulticastAddressManager()
Create a new MulticastAddressManager. |
Method Summary | |
void |
addAllocator(MulticastAddressAllocator allocator)
Add a MulticastAddressAllocator to the list of active allocators. |
Lease |
allocateAddresses(java.lang.String allocatorName,
Scope scope,
int ttl,
int count,
java.util.Date requestedStartTime,
java.util.Date requiredStartTime,
int requestedDuration,
int requiredDuration,
AddressSet addressesRequested)
Allocate one or more multicast addresses, matching the specified parameters. |
MulticastAddressAllocator |
findAllocator(java.lang.String name)
Find the allocator with the specified name. |
java.util.Enumeration |
getAllocators()
Get the list of active allocators. |
static MulticastAddressManager |
getMulticastAddressManager()
Get the MulticastAddressManager object for this Java VM. |
ScopeList |
getScopeList(AddressType addressType)
Get the multicast scope list. |
void |
removeAllocator(MulticastAddressAllocator allocator)
Remove a MulticastAddressAllocator from the list of active allocators. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected MulticastAddressManager()
Method Detail |
public static MulticastAddressManager getMulticastAddressManager()
public ScopeList getScopeList(AddressType addressType) throws AddressAllocationException
addressType
- the AddressType
requested (null if none)AddressAllocationException
- if an exception occurspublic Lease allocateAddresses(java.lang.String allocatorName, Scope scope, int ttl, int count, java.util.Date requestedStartTime, java.util.Date requiredStartTime, int requestedDuration, int requiredDuration, AddressSet addressesRequested) throws AddressAllocationException, NoAddressAvailableException
allocatorName
- the name of a specific allocator requested;
null if none (recommended)scope
- the administrative scope requestedttl
- the maximum ttl that will be usedcount
- the number of multicast addresses requested (usually one)requestedStartTime
- the requested start time (null if now)requiredStartTime
- the latest acceptable start time (null if now)requestedDuration
- the requested duration in seconds
(-1 if indefinite)requiredDuration
- the required duration in seconds
(-1 if indefinite)addressesRequested
- a requested address set (null if any will do)javax.jrms.addralloc.AddressAllocationException
- if an error occurredjavax.jrms.addralloc.NoAddressAvailableException
- if no address was available that met the requirementspublic void addAllocator(MulticastAddressAllocator allocator) throws AddressAllocationException
allocator
- the new allocatorjavax.jrms.addralloc.AddressAllocationException
- if
the request could not be satisfiedpublic void removeAllocator(MulticastAddressAllocator allocator) throws AddressAllocationException
allocator
- the allocator to be removedjavax.jrms.addralloc.AddressAllocationException
- if the request could not be satisfiedpublic java.util.Enumeration getAllocators() throws AddressAllocationException
javax.jrms.addralloc.AddressAllocationException
- if the request could not be satisfiedpublic MulticastAddressAllocator findAllocator(java.lang.String name) throws AddressAllocationException
name
- name to be foundjavax.jrms.addralloc.AddressAllocationException
- if the request could not be satisfied
|
|||||||||
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.