Class WatchesSummary
- java.lang.Object
- 
- org.apache.zookeeper.server.watch.WatchesSummary
 
- 
 public class WatchesSummary extends Object A summary of watch information. This class is immutable.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringKEY_NUM_CONNECTIONSThe key in the map returned bytoMap()for the number of connections.static StringKEY_NUM_PATHSThe key in the map returned bytoMap()for the number of paths.static StringKEY_NUM_TOTAL_WATCHESThe key in the map returned bytoMap()for the total number of watches.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumConnections()Gets the number of connections (sessions) that have set watches.intgetNumPaths()Gets the number of paths that have watches set on them.intgetTotalWatches()Gets the total number of watches set.Map<String,Object>toMap()Converts this summary to a map.
 
- 
- 
- 
Field Detail- 
KEY_NUM_CONNECTIONSpublic static final String KEY_NUM_CONNECTIONS The key in the map returned bytoMap()for the number of connections.- See Also:
- Constant Field Values
 
 - 
KEY_NUM_PATHSpublic static final String KEY_NUM_PATHS The key in the map returned bytoMap()for the number of paths.- See Also:
- Constant Field Values
 
 - 
KEY_NUM_TOTAL_WATCHESpublic static final String KEY_NUM_TOTAL_WATCHES The key in the map returned bytoMap()for the total number of watches.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getNumConnectionspublic int getNumConnections() Gets the number of connections (sessions) that have set watches.- Returns:
- number of connections
 
 - 
getNumPathspublic int getNumPaths() Gets the number of paths that have watches set on them.- Returns:
- number of paths
 
 - 
getTotalWatchespublic int getTotalWatches() Gets the total number of watches set.- Returns:
- total watches
 
 
- 
 
-