|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.intserv.Admission
This class is equipped on Scheduler to enable runtime admission control
on defines a unified interface for other protocols
(such as QoS-based routing and resource management protocols) to make/modify/release
a reservation, and to access installed reservations.
A reservation is defined in a flowspec which contains
a tspec and a rspec.
The tspec specifies the aggregate or the "maximum" traffic of the interested senders.
The rspec specifies the parameters used by the packet scheduler for serving the flow.
Scheduler,
Serialized Form| Field Summary | |
protected Scheduler |
scheduler
The scheduler being associated with this admission module. |
| Constructor Summary | |
Admission()
|
|
| Method Summary | |
SpecFlow |
addFlowspec(long[] tos_,
long[] tosmask_,
SpecFlow fspec_)
Installs a new flowspec. |
SpecFlow |
addFlowspec(long tos_,
long tosmask_,
SpecFlow fspec_)
Installs a new flowspec. |
SpecFlow |
addFlowspec(long tos_,
SpecFlow fspec_)
Installs a new flowspec. |
SpecAd |
advertisement(SpecAd adspec_)
Returns a new Adspec that summarizes the QoS of the path from the sender up to the current hop. |
void |
duplicate(java.lang.Object source_)
opies the content of the source_ object to this object. |
Scheduler |
getScheduler()
Returns the associated scheduler. |
java.lang.String |
info()
|
void |
removeAllFlowspecs()
|
SpecFlow |
removeFlowspec(int handle_)
Removes an installed flowspec by its handle. |
void |
reset()
Resets to the initial state. |
SpecFlow |
setFlowspec(int handle_,
long[] tos_,
long[] tosmask_,
SpecFlow fspec_)
Installs a new flowspec or changes an existing flowspec with the specified handle. |
| Methods inherited from class drcl.DrclObj |
clone, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Scheduler scheduler
| Constructor Detail |
public Admission()
| Method Detail |
public final SpecFlow addFlowspec(long tos_,
SpecFlow fspec_)
setFlowspec(-1, new long[]{tos_, null, fspec_)}.
public final SpecFlow addFlowspec(long tos_,
long tosmask_,
SpecFlow fspec_)
setFlowspec(-1, new long[]{tos_, new long[]{tosmask_}, fspec_)}.
public final SpecFlow addFlowspec(long[] tos_,
long[] tosmask_,
SpecFlow fspec_)
setFlowspec(-1, tos_, tosmask_, fspec_).
public SpecFlow setFlowspec(int handle_,
long[] tos_,
long[] tosmask_,
SpecFlow fspec_)
fspec_ is set to either
a valid value (success) or a negative value (failure).
A subclass may need to override this method to create its own
data structure for the successfully installed flow.
handle_ - the handle assigned to this flow, -1 if installing a new flow.tos_ - ID's of flows that share the flowspec.tosmask_ - masks of flow ID's.fspec_ - the flowspec.
public SpecFlow removeFlowspec(int handle_)
public SpecAd advertisement(SpecAd adspec_)
public void reset()
public void duplicate(java.lang.Object source_)
DrclObjsource_ object to this object.
he subclass must implement this method to realize DrclObj.clone().
duplicate in interface ObjectDuplicableduplicate in class DrclObjpublic java.lang.String info()
public void removeAllFlowspecs()
public Scheduler getScheduler()
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||