/** * @param req * @param container * @param maybeActive Array of requests, can be null, which are being registered * in this group. These will be ignored for purposes of checking whether stuff * is activated when it shouldn't be. It is perfectly okay to have req be a * member of maybeActive. * * FIXME: Either get rid of the debugging code and therefore get rid of maybeActive, * or make req a SendableRequest[] and register them all at once. */ void innerRegister(SendableRequest req, ClientContext context, SendableRequest[] maybeActive) { if(isInsertScheduler && req instanceof BaseSendableGet) throw new IllegalArgumentException("Adding a SendableGet to an insert scheduler!!"); if((!isInsertScheduler) && req instanceof SendableInsert) throw new IllegalArgumentException("Adding a SendableInsert to a request scheduler!!"); if(isInsertScheduler != req.isInsert()) throw new IllegalArgumentException("Request isInsert="+req.isInsert()+" but my isInsertScheduler="+isInsertScheduler+"!!"); short prio = req.getPriorityClass(); if(logMINOR) Logger.minor(this, "Still registering "+req+" at prio "+prio+" for "+req.getClientRequest()+" ssk="+this.isSSKScheduler+" insert="+this.isInsertScheduler); addToGrabArray(prio, req.getClient(), req.getSchedulerGroup(), req, context); if(logMINOR) Logger.minor(this, "Registered "+req+" on prioclass="+prio); }