Add shutdown hook.
[controller.git] / opendaylight / config / shutdown-api / src / main / java / org / opendaylight / controller / config / shutdown / ShutdownService.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.config.shutdown;
9
10 import com.google.common.base.Optional;
11
12 public interface ShutdownService {
13
14     /**
15      * Shut down the server.
16      *
17      * @param inputSecret must match configured secret of the implementation
18      * @param reason Optional string to be logged while shutting down
19      */
20     void shutdown(String inputSecret, Optional<String> reason);
21 }