Class Socks5RepositoryMDBean

java.lang.Object
tigase.db.beans.MDRepositoryBean<T>
tigase.db.beans.MDRepositoryBeanWithStatistics<Socks5Repository>
tigase.socks5.repository.Socks5RepositoryMDBean
All Implemented Interfaces:
tigase.db.DataSourceAware, tigase.kernel.beans.Initializable, tigase.kernel.beans.RegistrarBean, tigase.kernel.beans.RegistrarBeanWithDefaultBeanClass, tigase.kernel.beans.UnregisterAware, Socks5Repository, tigase.stats.ComponentStatisticsProvider, tigase.stats.StatisticsProviderIfc

@Bean(name="repository", parent=Socks5ProxyComponent.class, active=true) public class Socks5RepositoryMDBean extends tigase.db.beans.MDRepositoryBeanWithStatistics<Socks5Repository> implements Socks5Repository
Created by andrzej on 06.03.2017.
  • Constructor Details

    • Socks5RepositoryMDBean

      public Socks5RepositoryMDBean()
  • Method Details

    • getDefaultBeanClass

      public Class<?> getDefaultBeanClass()
      Specified by:
      getDefaultBeanClass in interface tigase.kernel.beans.RegistrarBeanWithDefaultBeanClass
    • getTransferLimits

      public Limits getTransferLimits() throws tigase.db.TigaseDBException
      Specified by:
      getTransferLimits in interface Socks5Repository
      Throws:
      tigase.db.TigaseDBException
    • getTransferLimits

      public Limits getTransferLimits(String domain) throws tigase.db.TigaseDBException
      Specified by:
      getTransferLimits in interface Socks5Repository
      Throws:
      tigase.db.TigaseDBException
    • getTransferLimits

      public Limits getTransferLimits(tigase.xmpp.jid.BareJID user_id) throws tigase.db.TigaseDBException
      Specified by:
      getTransferLimits in interface Socks5Repository
      Throws:
      tigase.db.TigaseDBException
    • getTransferUsed

      public long getTransferUsed() throws tigase.db.TigaseDBException
      Specified by:
      getTransferUsed in interface Socks5Repository
      Throws:
      tigase.db.TigaseDBException
    • getTransferUsedByInstance

      public long getTransferUsedByInstance(String instance) throws tigase.db.TigaseDBException
      Specified by:
      getTransferUsedByInstance in interface Socks5Repository
      Throws:
      tigase.db.TigaseDBException
    • getTransferUsedByDomain

      public long getTransferUsedByDomain(String domain) throws tigase.db.TigaseDBException
      Specified by:
      getTransferUsedByDomain in interface Socks5Repository
      Throws:
      tigase.db.TigaseDBException
    • getTransferUsedByUser

      public long getTransferUsedByUser(tigase.xmpp.jid.BareJID user_id) throws tigase.db.TigaseDBException
      Specified by:
      getTransferUsedByUser in interface Socks5Repository
      Throws:
      tigase.db.TigaseDBException
    • createTransferUsedByConnection

      public long createTransferUsedByConnection(tigase.xmpp.jid.BareJID user_id, Socks5ConnectionType type, tigase.xmpp.jid.BareJID instance) throws tigase.db.TigaseDBException
      Specified by:
      createTransferUsedByConnection in interface Socks5Repository
      Throws:
      tigase.db.TigaseDBException
    • updateTransferUsedByConnection

      public void updateTransferUsedByConnection(tigase.xmpp.jid.BareJID user_id, long stream_id, long transferred_bytes) throws tigase.db.TigaseDBException
      Specified by:
      updateTransferUsedByConnection in interface Socks5Repository
      Throws:
      tigase.db.TigaseDBException
    • setDataSource

      public void setDataSource(tigase.db.DataSource dataSource)
      Specified by:
      setDataSource in interface tigase.db.DataSourceAware
    • findClassForDataSource

      protected Class<? extends Socks5Repository> findClassForDataSource(tigase.db.DataSource dataSource) throws tigase.db.DBInitException
      Specified by:
      findClassForDataSource in class tigase.db.beans.MDRepositoryBean<Socks5Repository>
      Throws:
      tigase.db.DBInitException