view Sphinx/source/plugins/java/Changes.java @ 1121:f45af556efae Orthanc-1.12.5

Orthanc 1.12.5
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 17 Dec 2024 18:46:02 +0100
parents df28170c2af3
children
line wrap: on
line source

import be.uclouvain.orthanc.Callbacks;
import be.uclouvain.orthanc.ChangeType;
import be.uclouvain.orthanc.Functions;
import be.uclouvain.orthanc.ResourceType;

public class Changes {
    static {
        Callbacks.register(new Callbacks.OnChange() {
            @Override
            public void call(ChangeType changeType, ResourceType resourceType, String resourceId) {
                switch (changeType) {
                case ORTHANC_STARTED:
                    Functions.logWarning("Orthanc has started");
                    break;

                case ORTHANC_STOPPED:
                    Functions.logWarning("Orthanc has stopped");
                    break;

                default:
                    break;
                }
            }
        });
    }
}