|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A multicast address allocator. This interface must be implemented by any allocator that wishes to plug into the Multicast Address Management Service Provider Interface (MAMSPI). Most applications should access multicast address allocators through the MulticastAddressManager class.
Several different allocators will be supplied with JRMS (SASA, SAPA, etc.).
MulticastAddressManager
Method Summary | |
Lease |
allocateAddresses(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. |
java.lang.String |
getAllocatorName()
Get the name used to identify the allocator. |
ScopeList |
getScopeList(AddressType addressType)
Get the multicast scope list. |
void |
init()
Inform the allocator that the MulticastAddressManager is now managing it. |
void |
term()
Inform the allocator that the MulticastAddressManager is no longer managing it. |
Method Detail |
public void init() throws AddressAllocationException
javax.jrms.addralloc.AddressAllocationException
- if the allocator does not want to be managedpublic void term()
public java.lang.String getAllocatorName()
public ScopeList getScopeList(AddressType addressType) throws AddressAllocationException
AddressAllocationException
- if an exception was encounteredpublic Lease allocateAddresses(Scope scope, int ttl, int count, java.util.Date requestedStartTime, java.util.Date requiredStartTime, int requestedDuration, int requiredDuration, AddressSet addressesRequested) throws AddressAllocationException, NoAddressAvailableException
This method is used by the MulticastAddressManager when its allocateAddresses method has been called.
scope
- the administrative scope requestedcount
- the number of multicast addresses requested (usually one)ttl
- the maximum ttl that will be usedrequestedStartTime
- 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 requirements
|
|||||||||
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.