Comments (7)
I don't think it's required, lastModificationTime is good enough.
from jpos.
Would it be ok to have a max-age property, and deleting files with old timestamps?
Difference with RotateLogListener is that e don't have the age (and is not really simple to derive from the name due to the format ability).
Anyway we could do simple patches to DailyLogListener but maybe it would need to be deprecated in favor of something like (Cron|Quartz)RoteateLogListener based on quartz or something similar like cron4j.
from jpos.
We have a quartz
module in jPOS-EE, works great, but I'd like to keep it there and not add it to jPOS. Perhaps it's easier to deal with a copies
and just keep the most recent n
copies, like we do with RotateLogListener
. For max-age
I think we need to rely on the operating system to give us the creation date, if we can get that accurately across OSs, then I'm fine too. We'll have to experiment a bit.
from jpos.
from jpos.
Sure. Appreciate that. Wonder if we want to go with modification date. On a second thought, I talked about creation date
, but modification date
is good too, if for some reason an operator has edited the file, it might just mean she wants to keep it for a little longer, so no harm keeping it.
from jpos.
I tend to overthink, but would it be worthy to add an option to select the modification or creation date usage?
I don't know if all OSs have record of the two dates. At least it seems linux does not and the Basic File class only provides lastModificationTime, we could use java.nio.file.attribute and use the creationTime but at least in some basic testing I did in my machine it returns the same for the two attributes.
So I don't know if it worthy the extra code to obtain that attributes from the java.nio.file package.
from jpos.
This has been implemented in PR181 (#181). Property is actually called maxage
.
from jpos.
Related Issues (20)
- Allow to load environment properties from multiple files in `Q2` `-E` option. HOT 2
- Base24Channel is not escaping `ETX` bytes at send time. HOT 2
- BitMap seems to be mismatched HOT 5
- Bug of CheckFields.setConfiguration HOT 1
- Any good first issue? HOT 5
- The trailer is unable to sent from Jpos server to the source. HOT 4
- The trailer is not added to the JPOS response. HOT 2
- New POSCapability helper
- Add Q2 switch to exit on failed deploy HOT 7
- Memory Leak in TransactionManager's redeployed participants
- QMUX Sequencing Issue HOT 3
- SimpleKeyFile.getKeys() seems to load the key file for every key.
- Q2.deployElement doesn't write the destination file atomically, which can make the deploy polling to fail HOT 2
- using BERTLVAsciiHexPackager and AsciiHexInterpreter returns incorrect uninterpretLength HOT 5
- Channel Class that wraps the JMS objects HOT 1
- Help validate ARQC using JCESecurityModule HOT 4
- When two Q2 services are connected, the response content cannot be received. HOT 1
- 2.1.9 - Compatibility with JDK8 HOT 1
- Protect name in Track1 of the ISOUtil.protect HOT 5
- About the rotation of q2 logs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpos.