J - The type of SimJobs supported.Q - The type of SimQueues supported.P - The type used for QoS.public interface SimQueueQoS<J extends SimJob,Q extends SimQueueQoS,P> extends SimQueueOrJobQoS<J,Q,P>, SimQueue<J,Q>
SimQueue with explicit QoS support.Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
SimQueue.AutoRevocationPolicySimEntity.Action, SimEntity.UnknownNotificationTypePolicy, SimEntity.UnknownOperationPolicy| Modifier and Type | Method and Description |
|---|---|
SimQueueQoS<J,Q,P> |
getCopySimQueue()
Overridden in order to restrict the return type.
|
P |
getDefaultJobQoS()
Gets the default QoS value used by this queue for jobs that have
null QoS value. |
Map<P,Set<J>> |
getJobsQoSMap()
Gets the mapping QoS values onto jobs currently visiting this queue with that particular QoS value.
|
getQoS, getQoSClass, setQoS, setQoSClassarrive, getAutoRevocationPolicy, getJobs, getJobsInServiceArea, getJobsInWaitingArea, getNumberOfJobs, getNumberOfJobsInServiceArea, getNumberOfJobsInWaitingArea, getServerAccessCredits, isJob, isJobInServiceArea, isJobInWaitingArea, isQueueAccessVacation, isStartArmed, revoke, revoke, setAutoRevocationPolicy, setQueueAccessVacation, setServerAccessCreditsdoAfterNotifications, doOperation, getEventList, getLastUpdateTime, getRegisteredNotificationTypes, getRegisteredOperations, getSimEntityListeners, getUnknownNotificationTypePolicy, getUnknownOperationPolicy, isIgnoreEventListReset, registerSimEntityListener, resetEntity, setIgnoreEventListReset, setName, setUnknownNotificationTypePolicy, setUnknownOperationPolicy, toStringDefault, unregisterSimEntityListener, updateSimQueueQoS<J,Q,P> getCopySimQueue() throws UnsupportedOperationException
SimQueue.
The new object has the same (concrete) type as the original, but starts without jobs and without external listeners.
Its initial state must be as if SimEntity.resetEntity() was invoked on the queue.
Note that the semantics of this method are much less strict than the Object.clone () method.
Typically, concrete classes will implement this by returning a new SimQueue object.
This way, we circumvent the problem of cloning objects with final (for good reasons) fields.
getCopySimQueue in interface SimQueue<J extends SimJob,Q extends SimQueueQoS>SimQueue.UnsupportedOperationException - If the operation is not supported (yet); this should be considered a software error.Map<P,Set<J>> getJobsQoSMap()
Each SimJob present returning (valid) non-null QoS value from SimQoS.getQoS()
must be in present in only that value set,
and the union of these value sets must exactly match SimQueue.getJobs().
Jobs returning null from SimQoS.getQoS() must be put in a value set corresponding to
getDefaultJobQoS().
Note that many concrete subclasses will impose an ordering on the keys and/or on the value sets.
SimQueue.getJobs(),
SimQoS.getQoS(),
getDefaultJobQoS()P getDefaultJobQoS()
null QoS value.null QoS value.SimQoS.getQoS()Copyright © 2018. All rights reserved.