d368dc45cea37aaff01d68cf4569af5ebc3f536e
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / apps / devicemanager / impl / src / main / java / org / opendaylight / mwtn / deviceMonitor / impl / Checker.java
1 /**
2  * (c) highstreet technologies GmbH
3  */
4 package org.opendaylight.mwtn.deviceMonitor.impl;
5
6 import org.slf4j.Logger;
7 import org.slf4j.LoggerFactory;
8
9 /**
10  * Steps to Monitor the connection to a network element during state connected
11  */
12 abstract class Checker {
13
14     @SuppressWarnings("unused")
15     private static final Logger LOG = LoggerFactory.getLogger(Checker.class);
16
17     /**
18      * Check action.
19      * @return true if reachable, false if not
20      */
21     abstract boolean isReachableOnce();
22
23     /**
24      * Procedure to check the connection of one mountpoint
25      * @return true if reachable, false if not
26      */
27     boolean isConnected() {
28         return isReachableOnce();
29     }
30 }
31