[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: get list of 'PTP ForceQueuing' messages waiting in Queue
Hi Marcel,
Job U've done works fine !
The update QoS now contains following
<queue index='0' size='1'>
</queue>
It 's what I need !
Just a bug,
It missing some line in
UpdateQoS.printOn()
to print the new item in qos...
I did that :
public final StringBuffer printOn(String extraOffset)
{
StringBuffer sb = new StringBuffer();
String offset = "\n ";
if (extraOffset == null) extraOffset = "";
offset += extraOffset;
sb.append(offset + "<qos> <!-- UpdateQoS -->");
if (state != null) {
sb.append(offset + " <state>");
sb.append(offset + " " + state);
sb.append(offset + " </state>");
}
if (sender != null) {
sb.append(offset + " <sender>");
sb.append(offset + " " + sender);
sb.append(offset + " </sender>");
}
if (subscriptionId != null) {
sb.append(offset + " <subscriptionId>");
sb.append(offset + " " + subscriptionId);
sb.append(offset + " </subscriptionId>");
}
// beg : NEW !!!
if( getQueueSize() >0 ){
sb.append(offset + " <queue index='"+getQueueIndex()+"'
size='"+getQueueSize()+"'");
sb.append(offset + " </queue>");
}
// end : NEW !!!
sb.append(offset + "</qos>\n");
return sb;
}
Cyrille
Cyrille Giquello a écrit :
> Hi,
>
> All the time the same subject from me ...
> I still trying to find a solution ...
>
> So,
> Will it be difficult to code a fonctionnality that :
>
> A client which get PTP ForceQueuing messages that are wainting for it in
> xmlBlaster's queue,
> would like to get the messages list to know when it will can logout
> after all updates.
>
> It should be for client which login only few times in a day. It has to
> know when updates are finished ...
>
> Perhaps it's not the way, if so, what is the mater for this need ?
>
> Thanx by advance for your comments ;o)
>
> Cyrille