Class SmartFoxServer

java.lang.Object
com.smartfoxserver.SmartFoxServer

public final class SmartFoxServer extends Object
Main Server class, provides access to a series of services that can be sometimes useful for more advanced operations.

Typically recommend to search the API first: SFSApi and if you don't find what you need check the SmartFoxServer class.

  • Method Details

    • getInstance

      public static SmartFoxServer getInstance()
      Obtain a reference to the current server instance
      Returns:
    • getVersion

      public String getVersion()
      Obtain the server version number
      Returns:
      current version number
    • getLSManager

      public com.smartfoxserver.entities.managers.ILSManager getLSManager()
      Internal
    • getServiceProvider

      public com.smartfoxserver.core.service.IServiceProvider getServiceProvider()
      Internal
    • getUIDGenerator

      public IDGenerator getUIDGenerator()
      Internal
    • start

      public void start()
      Internal
    • getRestartCount

      public int getRestartCount()
      Internal
    • restart

      public void restart()
      Internal
    • halt

      public void halt()
      Internal
    • isStarted

      public boolean isStarted()
      Internal
    • isProcessControlAllowed

      public boolean isProcessControlAllowed()
      Internal
    • getTraceMonitor

      public com.smartfoxserver.util.monitor.ITraceMonitor getTraceMonitor()
      Internal
    • getMailService

      public IMailerService getMailService()
      Provides a reference to the Mail Service
      Returns:
      reference to the SFSPostOffice
      See Also:
    • getTaskScheduler

      public TaskScheduler getTaskScheduler()
      Internal
      Instead use SFSApi.getScheduler()
    • getEventManager

      public com.smartfoxserver.core.ISFSEventManager getEventManager()
      Internal
    • getZoneManager

      public com.smartfoxserver.entities.managers.IZoneManager getZoneManager()
      Internal
    • getExtensionManager

      public com.smartfoxserver.entities.managers.IExtensionManager getExtensionManager()
      Internal
    • getBannedUserManager

      public com.smartfoxserver.entities.managers.IBannedUserManager getBannedUserManager()
      Internal
    • getInvitationManager

      public InvitationManager getInvitationManager()
      Internal
    • getUserManager

      public com.smartfoxserver.entities.managers.IUserManager getUserManager()
      Internal
      Instead use Zone.getUserById(int) or Zone.getUserByName(String)
    • getSessionManager

      public com.smartfoxserver.bitswarm.sessions.ISessionManager getSessionManager()
      Internal
    • getConfigurator

      public com.smartfoxserver.config.IConfigurator getConfigurator()
      Internal
    • getMinClientApiVersion

      public com.smartfoxserver.util.ApiVersion getMinClientApiVersion()
      Internal
    • getAPIManager

      public APIManager getAPIManager()
      The API Manager gives access to all the specialized server API such as the BuddyAPI, GameAPI, MMOAPI
    • getStatsManager

      public com.smartfoxserver.entities.managers.IStatsManager getStatsManager()
      Internal
    • getHttpServer

      public com.smartfoxserver.http.IHttpServer getHttpServer()
      Internal
    • getEmbeddeDB

      public EmbeddedDBService getEmbeddeDB()
      Internal
    • getAnalyticsDataManager

      public com.smartfoxserver.analytics.AnalyticsDataManager getAnalyticsDataManager()
      Internal
    • getUptime

      public com.smartfoxserver.util.ServerUptime getUptime()
      Internal
    • getEventThreadPool

      public ExecutorService getEventThreadPool()
      Internal