[jboss-jira] [JBoss JIRA] (WFCORE-87) Display deployment timestamp
Claudio Miranda (JIRA)
issues at jboss.org
Fri Sep 5 16:30:00 EDT 2014
[ https://issues.jboss.org/browse/WFCORE-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999589#comment-12999589 ]
Claudio Miranda commented on WFCORE-87:
---------------------------------------
> I'm curious how that '"timestamp" => "Fri Sep 05 00:42:19 BRT 2014"' in your example was derived. Was it the time the deployment resource was added? That wouldn't be the
> upload time once the server is rebooted. Or you worked out some way to get hold of a file timestamp?
This is the piece of code that retrieve the timestamp. No matter if the server is restarted or enabled/disabled this timestamp is the same. It is the same timestamp of data/content/hash/content file
{code}
VirtualFile vfContent = contentRepository.getContent(contentItem.getHash());
Date contentLastModified = new Date(vfContent.getLastModified());
newModel.get(DeploymentAttributes.TIMESTAMP.getName()).set(contentLastModified.toString());
{code}
My experience with admin users on customers, says that option 1 would be the most interesting. As the most common storage mechanism for EAP/Wildfly is a local disk (file protocol) so they have access to the physical file. Perhaps there are users out there using other URL protocols, and the deployment time will not work with them.
But, I will follow your recommendation to use the enable/disable-time{stamp}. Later I can revisit this when things mature for me.
> Display deployment timestamp
> ----------------------------
>
> Key: WFCORE-87
> URL: https://issues.jboss.org/browse/WFCORE-87
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Domain Management
> Affects Versions: 1.0.0.Alpha5
> Reporter: Claudio Miranda
> Assignee: Brian Stansberry
> Priority: Minor
>
> Display the deployment timestamp, that is the date of last modified deployment. It is useful for users to see the date and time of deployments.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list