pushlet.properties 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. #
  2. # Pushlet configuration.
  3. # Place this file in the CLASSPATH (e.g. WEB-INF/classes) or directly under WEB-INF.
  4. #
  5. # $Id: pushlet.properties,v 1.13 2007/12/07 12:57:40 justb Exp $
  6. #
  7. #
  8. #
  9. #
  10. config.version=1.0.2
  11. #
  12. # CLASS FACTORY SPECIFICATION
  13. #
  14. # Change these if you want to override any of the core classes
  15. # within the Pushlet framework with your own custom classes.
  16. #
  17. # Examples:
  18. # - custom SessionManager for authorisation
  19. # - maintain lists of active subjects (topics)
  20. # - send events on subscription
  21. # - plug in custom logging like log4j
  22. # Note that you must maintain the semantics of each class !
  23. # Below are the default properties for the core classes.
  24. controller.class=nl.justobjects.pushlet.core.Controller
  25. dispatcher.class=nl.justobjects.pushlet.core.Dispatcher
  26. logger.class=nl.justobjects.pushlet.util.Log4jLogger
  27. # logger.class=nl.justobjects.pushlet.util.DefaultLogger
  28. sessionmanager.class=nl.justobjects.pushlet.core.SessionManager
  29. session.class=nl.justobjects.pushlet.core.Session
  30. subscriber.class=nl.justobjects.pushlet.core.Subscriber
  31. subscription.class=nl.justobjects.pushlet.core.Subscription
  32. # sessionmanager.maxsessions=200
  33. #
  34. # DISPATCHER
  35. #
  36. # TODO: allow properties to be maintained in
  37. # a user dir
  38. # config.redirect=/etc/pushlet.properties
  39. #
  40. # LOGGING
  41. #
  42. # log level (trace(6) debug(5) info (4), warn(3), error(2), fatal(1))
  43. # default is info(4)
  44. log.level=4
  45. #
  46. # LOCAL EVENT SOURCES
  47. #
  48. # should local sources be loaded ?
  49. sources.activate=true
  50. #
  51. # SESSION
  52. #
  53. # algoritm to generate session key:
  54. # values: "randomstring" (default) or "uuid".
  55. # session.id.generation=uuid
  56. session.id.generation=randomstring
  57. # length of generated session key when using "randomstring" generation
  58. session.id.size=10
  59. # Overall session lease time in minutes
  60. # Mainly used for clients that do not perform
  61. # listening, e.g. when publishing only.
  62. session.timeout.mins=5
  63. #
  64. # EVENT QUEUE
  65. #
  66. # Properties for per-client data event queue
  67. # Size for
  68. queue.size=24
  69. queue.read.timeout.millis=20000
  70. queue.write.timeout.millis=20
  71. #
  72. # LISTENING MODE
  73. #
  74. # You may force all clients to use pull mode
  75. # for scalability
  76. listen.force.pull.all=false
  77. #
  78. # Comma-separated list of User Agent substrings.
  79. # Force these browsers to use pull mode, since they
  80. # don't support JS streaming, matching is done using
  81. # String.indexOf() with lowercased agent strings
  82. # use multiple criteria with &.
  83. #
  84. listen.force.pull.agents=safari
  85. #
  86. # PULL MODE
  87. #
  88. # time server should wait on refresing pull client
  89. pull.refresh.timeout.millis=45000
  90. # minimum/maximum wait time client should wait before refreshing
  91. # server provides a random time between these values
  92. #this time is tell server how to refresh ,now (1s-2s to refresh)
  93. pull.refresh.wait.min.millis=1000
  94. pull.refresh.wait.max.millis=1100
  95. #
  96. # POLL MODE
  97. #
  98. # time server should wait on refresing poll client
  99. poll.refresh.timeout.millis=60000
  100. # minimum/maximum wait time client should wait before refreshing
  101. # server provides a random time between these values
  102. poll.refresh.wait.min.millis=6000
  103. poll.refresh.wait.max.millis=10000