Show deployment timestamp on wildfly

A contribution to wildfly to display when the deployed application was enabled or disabled, see below the attributes enabled-timestamp and disabled-timestamp.

[standalone@localhost:9990 /] ./deployment=jboss-kitchensink.war:read-resource
{
    "outcome" => "success",
    "result" => {
        "content" => [{"hash" => bytes {
            0x13, 0x75, 0x1e, 0x5f, 0xeb, 0x65, 0x1e, 0xe0,
            0x4f, 0x8e, 0x29, 0x33, 0x87, 0xf9, 0xec, 0xdf,
            0x1c, 0xa8, 0xff, 0xc7
        }}],
        "disabled-time" => 1411611922962L,
        "disabled-timestamp" => "2014-09-24 23:25:22,962 BRT",
        "enabled" => false,
        "enabled-time" => 1411611399707L,
        "enabled-timestamp" => "2014-09-24 23:16:39,707 BRT",
        "name" => "jboss-kitchensink.war",
        "persistent" => false,
        "runtime-name" => "jboss-kitchensink.war",
        "subdeployment" => undefined,
        "subsystem" => undefined
    }
}

I will add this feature to the web console, this will make it easier to track when the application was enabled and disabled.

Mostrar timestamp dos deployments no wildfly

Fiz uma contribuição para o wildfly, para mostrar o timestamp dos momentos que a aplicação foi habilitada e desabilitada, vejam os atributos enabled-timestamp e disabled-timestamp no exemplo abaixo.

[standalone@localhost:9990 /] ./deployment=jboss-kitchensink.war:read-resource
{
    "outcome" => "success",
    "result" => {
        "content" => [{"hash" => bytes {
            0x13, 0x75, 0x1e, 0x5f, 0xeb, 0x65, 0x1e, 0xe0,
            0x4f, 0x8e, 0x29, 0x33, 0x87, 0xf9, 0xec, 0xdf,
            0x1c, 0xa8, 0xff, 0xc7
        }}],
        "disabled-time" => 1411611922962L,
        "disabled-timestamp" => "2014-09-24 23:25:22,962 BRT",
        "enabled" => false,
        "enabled-time" => 1411611399707L,
        "enabled-timestamp" => "2014-09-24 23:16:39,707 BRT",
        "name" => "jboss-kitchensink.war",
        "persistent" => false,
        "runtime-name" => "jboss-kitchensink.war",
        "subdeployment" => undefined,
        "subsystem" => undefined
    }
}

Vou implementar essa funcionalidade na ferramenta de administração web, assim ficará fácil rastrear os momentos que a aplicação sofreu intervenções.