Serializer end-of work notification ?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Serializer end-of work notification ?

cmarchand

 

 

Hello,

 

I have a transformation pipe with many Serializer in. I would like to know when a particular Serializer has terminated its job, so when the close() event has been sent. Is there a way to be notified of this, without wrapping the serializer in a awful thing of my own ?

 

Best regards,

Christophe


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Serializer end-of work notification ?

Michael Kay
I don't think you need an "awful thing" of your own. Just insert into the pipeline a class that extends ProxyReceiver and implements one method, the close() method.

Michael Kay
Saxonica

On 14 Apr 2016, at 08:39, [hidden email] wrote:

 
 

Hello,

 

I have a transformation pipe with many Serializer in. I would like to know when a particular Serializer has terminated its job, so when the close() event has been sent. Is there a way to be notified of this, without wrapping the serializer in a awful thing of my own ?

 

Best regards,

Christophe

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Serializer end-of work notification ?

cmarchand
As a Serializer does no have a setDestination(Destination), I must put the ProxyReceiver before the Serializer in the pipe.
Am I certain, if I put the ProxyReceiver just before the Serializer, that when the ProxyReceiver.close() method is called, the output of the serializer is flushed and closed ?

The idea is to notify another program that it can process the file generated by the Serializer...

Best regards,
Christophe

Le 14/04/2016 13:11, Michael Kay a écrit :
I don't think you need an "awful thing" of your own. Just insert into the pipeline a class that extends ProxyReceiver and implements one method, the close() method.

Michael Kay
Saxonica

On 14 Apr 2016, at 08:39, [hidden email] wrote:

 
 

Hello,

 

I have a transformation pipe with many Serializer in. I would like to know when a particular Serializer has terminated its job, so when the close() event has been sent. Is there a way to be notified of this, without wrapping the serializer in a awful thing of my own ?

 

Best regards,

Christophe

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Serializer end-of work notification ?

Michael Kay
Well, I'm not sure exactly what you mean by "the Serializer" here. The serializer is a pipeline of filters which you can customize using the SerializerFactory class. You could in fact customize it by creating a subclass of XMLEmitter (which is the final step in the pipeline) and overriding its close() method to sent a notification immediately after calling super.close(). But my own approach would be to insert another step into the pipeline whose close method issues the notification immediately after doing super.close() - the effect is much the same.

Michael Kay
Saxonica


On 14 Apr 2016, at 14:14, Christophe Marchand <[hidden email]> wrote:

As a Serializer does no have a setDestination(Destination), I must put the ProxyReceiver before the Serializer in the pipe.
Am I certain, if I put the ProxyReceiver just before the Serializer, that when the ProxyReceiver.close() method is called, the output of the serializer is flushed and closed ?

The idea is to notify another program that it can process the file generated by the Serializer...

Best regards,
Christophe

Le 14/04/2016 13:11, Michael Kay a écrit :
I don't think you need an "awful thing" of your own. Just insert into the pipeline a class that extends ProxyReceiver and implements one method, the close() method.

Michael Kay
Saxonica

On 14 Apr 2016, at 08:39, [hidden email][hidden email] wrote:

 
 

Hello,

 

I have a transformation pipe with many Serializer in. I would like to know when a particular Serializer has terminated its job, so when the close() event has been sent. Is there a way to be notified of this, without wrapping the serializer in a awful thing of my own ?

 

Best regards,

Christophe

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Serializer end-of work notification ?

cmarchand
Ok, thanks a lot !

Best,
Christophe

Le 14/04/2016 21:39, Michael Kay a écrit :
Well, I'm not sure exactly what you mean by "the Serializer" here. The serializer is a pipeline of filters which you can customize using the SerializerFactory class. You could in fact customize it by creating a subclass of XMLEmitter (which is the final step in the pipeline) and overriding its close() method to sent a notification immediately after calling super.close(). But my own approach would be to insert another step into the pipeline whose close method issues the notification immediately after doing super.close() - the effect is much the same.

Michael Kay
Saxonica


On 14 Apr 2016, at 14:14, Christophe Marchand <[hidden email]> wrote:

As a Serializer does no have a setDestination(Destination), I must put the ProxyReceiver before the Serializer in the pipe.
Am I certain, if I put the ProxyReceiver just before the Serializer, that when the ProxyReceiver.close() method is called, the output of the serializer is flushed and closed ?

The idea is to notify another program that it can process the file generated by the Serializer...

Best regards,
Christophe

Le 14/04/2016 13:11, Michael Kay a écrit :
I don't think you need an "awful thing" of your own. Just insert into the pipeline a class that extends ProxyReceiver and implements one method, the close() method.

Michael Kay
Saxonica

On 14 Apr 2016, at 08:39, [hidden email] wrote:

 
 

Hello,

 

I have a transformation pipe with many Serializer in. I would like to know when a particular Serializer has terminated its job, so when the close() event has been sent. Is there a way to be notified of this, without wrapping the serializer in a awful thing of my own ?

 

Best regards,

Christophe

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Loading...