Class SessionsOverviewJSONCreator

  • All Implemented Interfaces:
    ServerTabJSONCreator<java.util.Map<java.lang.String,​java.lang.Object>>, java.util.function.Function<java.util.UUID,​java.util.Map<java.lang.String,​java.lang.Object>>

    @Singleton
    public class SessionsOverviewJSONCreator
    extends java.lang.Object
    implements ServerTabJSONCreator<java.util.Map<java.lang.String,​java.lang.Object>>
    Creates JSON payload for /server-page Sessions tab.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> createJSONAsMap​(java.util.UUID serverUUID)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • SessionsOverviewJSONCreator

        @Inject
        public SessionsOverviewJSONCreator​(DBSystem dbSystem,
                                           Formatters formatters)
    • Method Detail

      • createJSONAsMap

        public java.util.Map<java.lang.String,​java.lang.Object> createJSONAsMap​(java.util.UUID serverUUID)
        Specified by:
        createJSONAsMap in interface ServerTabJSONCreator<java.util.Map<java.lang.String,​java.lang.Object>>