mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-05 23:22:47 +00:00
Implements configuration for WorldEventDispatcherService
This commit is contained in:
@@ -186,7 +186,7 @@ public class SoftCacheService extends AbstractService implements CacheService {
|
|||||||
while ((en = (SoftEntry) refQueue.poll()) != null) {
|
while ((en = (SoftEntry) refQueue.poll()) != null) {
|
||||||
K key = en.getKey();
|
K key = en.getKey();
|
||||||
if (log.isDebugEnabled())
|
if (log.isDebugEnabled())
|
||||||
log.debug("{} : cleaned up {} for key: {}", cacheName, key);
|
log.debug("{} : cleaned up value for key: {}", cacheName, key);
|
||||||
cacheMap.remove(key);
|
cacheMap.remove(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ public class WeakCacheService extends AbstractService implements CacheService {
|
|||||||
while ((en = (Entry) refQueue.poll()) != null) {
|
while ((en = (Entry) refQueue.poll()) != null) {
|
||||||
K key = en.getKey();
|
K key = en.getKey();
|
||||||
if (log.isDebugEnabled())
|
if (log.isDebugEnabled())
|
||||||
log.debug("{}: cleaned up for key: {}", cacheName, key);
|
log.debug("{}: cleaned up value for key: {}", cacheName, key);
|
||||||
cacheMap.remove(key);
|
cacheMap.remove(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,11 @@
|
|||||||
<!-- DAO Module configuration -->
|
<!-- DAO Module configuration -->
|
||||||
<dao module="com.l2jserver.service.database.JDBCDAOModule" />
|
<dao module="com.l2jserver.service.database.JDBCDAOModule" />
|
||||||
|
|
||||||
<!-- OrientDB database service -->
|
<!-- ###################################################################### -->
|
||||||
|
<!-- ########################### CORE SERVICES ############################ -->
|
||||||
|
<!-- ###################################################################### -->
|
||||||
|
<!-- Those services provide basic core features and are required for server
|
||||||
|
startup process -->
|
||||||
<service interface="com.l2jserver.service.database.DatabaseService"
|
<service interface="com.l2jserver.service.database.DatabaseService"
|
||||||
implementation="com.l2jserver.service.database.GameServerOrientDatabaseService">
|
implementation="com.l2jserver.service.database.GameServerOrientDatabaseService">
|
||||||
<!-- Whether the database schema should be updated at startup -->
|
<!-- Whether the database schema should be updated at startup -->
|
||||||
@@ -17,8 +21,6 @@
|
|||||||
<authentication username="admin" password="admin" />
|
<authentication username="admin" password="admin" />
|
||||||
</connection>
|
</connection>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<!-- Virtual file system service -->
|
|
||||||
<service interface="com.l2jserver.service.core.vfs.VFSService"
|
<service interface="com.l2jserver.service.core.vfs.VFSService"
|
||||||
implementation="com.l2jserver.service.core.vfs.TrueZipVFSService">
|
implementation="com.l2jserver.service.core.vfs.TrueZipVFSService">
|
||||||
<!-- Configures the root of the server data. Where all the files are placed. -->
|
<!-- Configures the root of the server data. Where all the files are placed. -->
|
||||||
@@ -29,43 +31,17 @@
|
|||||||
<data root="data.zip" />
|
<data root="data.zip" />
|
||||||
</fileSystem>
|
</fileSystem>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<!-- Template service configuration -->
|
|
||||||
<service interface="com.l2jserver.service.game.template.TemplateService"
|
|
||||||
implementation="com.l2jserver.service.game.template.XMLTemplateService">
|
|
||||||
<!-- The root where template data is located. Relative to the "data file
|
|
||||||
system" -->
|
|
||||||
<templates root="template/" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<!-- Network service -->
|
|
||||||
<service interface="com.l2jserver.service.network.NetworkService"
|
|
||||||
implementation="com.l2jserver.service.network.NettyNetworkService">
|
|
||||||
<!-- The port in which the server should listen for incoming connections -->
|
|
||||||
<!-- NOTE: this port must be open manually on any firewall or router that
|
|
||||||
is between you and other players. If you wish to play on the same machine
|
|
||||||
you normally don't need to change anything here nor in the firewall. -->
|
|
||||||
<server listen="0.0.0.0:7777" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<!-- Logging service -->
|
|
||||||
<service interface="com.l2jserver.service.core.LoggingService"
|
|
||||||
implementation="com.l2jserver.service.core.Log4JLoggingService">
|
|
||||||
<logger name="" level="ERROR" />
|
|
||||||
<logger name="com.l2jserver" level="INFO" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<!-- ###################################################################### -->
|
|
||||||
<!-- ########################### CORE SERVICES ############################ -->
|
|
||||||
<!-- ###################################################################### -->
|
|
||||||
<!-- Those services provide basic core features and are required for server
|
|
||||||
startup process -->
|
|
||||||
<service interface="com.l2jserver.service.core.threading.ThreadService"
|
<service interface="com.l2jserver.service.core.threading.ThreadService"
|
||||||
implementation="com.l2jserver.service.core.threading.ThreadServiceImpl" />
|
implementation="com.l2jserver.service.core.threading.ThreadServiceImpl" />
|
||||||
<service interface="com.l2jserver.service.configuration.ConfigurationService"
|
<service interface="com.l2jserver.service.configuration.ConfigurationService"
|
||||||
implementation="com.l2jserver.service.configuration.XMLConfigurationService" />
|
implementation="com.l2jserver.service.configuration.XMLConfigurationService" />
|
||||||
<service interface="com.l2jserver.service.cache.CacheService"
|
<service interface="com.l2jserver.service.cache.CacheService"
|
||||||
implementation="com.l2jserver.service.cache.SoftCacheService" />
|
implementation="com.l2jserver.service.cache.SoftCacheService" />
|
||||||
|
<service interface="com.l2jserver.service.core.LoggingService"
|
||||||
|
implementation="com.l2jserver.service.core.Log4JLoggingService">
|
||||||
|
<logger name="" level="ERROR" />
|
||||||
|
<logger name="com.l2jserver" level="INFO" />
|
||||||
|
</service>
|
||||||
|
|
||||||
|
|
||||||
<!-- ###################################################################### -->
|
<!-- ###################################################################### -->
|
||||||
@@ -123,6 +99,13 @@
|
|||||||
in the system and configure the system accordingly, set it to 0 -->
|
in the system and configure the system accordingly, set it to 0 -->
|
||||||
<threading count="0" />
|
<threading count="0" />
|
||||||
</service>
|
</service>
|
||||||
|
<!-- Template service configuration -->
|
||||||
|
<service interface="com.l2jserver.service.game.template.TemplateService"
|
||||||
|
implementation="com.l2jserver.service.game.template.XMLTemplateService">
|
||||||
|
<!-- The root where template data is located. Relative to the "data file
|
||||||
|
system" -->
|
||||||
|
<templates root="template/" />
|
||||||
|
</service>
|
||||||
|
|
||||||
|
|
||||||
<!-- ####################################################################### -->
|
<!-- ####################################################################### -->
|
||||||
@@ -132,6 +115,14 @@
|
|||||||
server software to the player computer running the game client. Although
|
server software to the player computer running the game client. Although
|
||||||
not required, without them, becomes impossible to connect to the server in
|
not required, without them, becomes impossible to connect to the server in
|
||||||
order to play the game. -->
|
order to play the game. -->
|
||||||
|
<service interface="com.l2jserver.service.network.NetworkService"
|
||||||
|
implementation="com.l2jserver.service.network.NettyNetworkService">
|
||||||
|
<!-- The port in which the server should listen for incoming connections -->
|
||||||
|
<!-- NOTE: this port must be open manually on any firewall or router that
|
||||||
|
is between you and other players. If you wish to play on the same machine
|
||||||
|
you normally don't need to change anything here nor in the firewall. -->
|
||||||
|
<server listen="0.0.0.0:7777" />
|
||||||
|
</service>
|
||||||
<service interface="com.l2jserver.service.network.keygen.BlowfishKeygenService"
|
<service interface="com.l2jserver.service.network.keygen.BlowfishKeygenService"
|
||||||
implementation="com.l2jserver.service.network.keygen.SecureBlowfishKeygenService" />
|
implementation="com.l2jserver.service.network.keygen.SecureBlowfishKeygenService" />
|
||||||
<service interface="com.l2jserver.service.network.gameguard.GameGuardService"
|
<service interface="com.l2jserver.service.network.gameguard.GameGuardService"
|
||||||
|
|||||||
@@ -10,7 +10,11 @@
|
|||||||
<!-- DAO Module configuration -->
|
<!-- DAO Module configuration -->
|
||||||
<dao module="com.l2jserver.service.database.JDBCDAOModule" />
|
<dao module="com.l2jserver.service.database.JDBCDAOModule" />
|
||||||
|
|
||||||
<!-- JDBC database service -->
|
<!-- ###################################################################### -->
|
||||||
|
<!-- ########################### CORE SERVICES ############################ -->
|
||||||
|
<!-- ###################################################################### -->
|
||||||
|
<!-- Those services provide basic core features and are required for server
|
||||||
|
startup process -->
|
||||||
<service interface="com.l2jserver.service.database.DatabaseService"
|
<service interface="com.l2jserver.service.database.DatabaseService"
|
||||||
implementation="com.l2jserver.service.database.GameServerJDBCDatabaseService">
|
implementation="com.l2jserver.service.database.GameServerJDBCDatabaseService">
|
||||||
<!-- Whether the database schema should be updated at startup -->
|
<!-- Whether the database schema should be updated at startup -->
|
||||||
@@ -28,8 +32,6 @@
|
|||||||
<pool max-active="20" max-idle="20" min-idle="5" />
|
<pool max-active="20" max-idle="20" min-idle="5" />
|
||||||
</connection>
|
</connection>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<!-- Virtual file system service -->
|
|
||||||
<service interface="com.l2jserver.service.core.vfs.VFSService"
|
<service interface="com.l2jserver.service.core.vfs.VFSService"
|
||||||
implementation="com.l2jserver.service.core.vfs.TrueZipVFSService">
|
implementation="com.l2jserver.service.core.vfs.TrueZipVFSService">
|
||||||
<!-- Configures the root of the server data. Where all the files are placed. -->
|
<!-- Configures the root of the server data. Where all the files are placed. -->
|
||||||
@@ -40,26 +42,12 @@
|
|||||||
<data root="data/" />
|
<data root="data/" />
|
||||||
</fileSystem>
|
</fileSystem>
|
||||||
</service>
|
</service>
|
||||||
|
<service interface="com.l2jserver.service.core.threading.ThreadService"
|
||||||
<!-- Template service configuration -->
|
implementation="com.l2jserver.service.core.threading.ThreadServiceImpl" />
|
||||||
<service interface="com.l2jserver.service.game.template.TemplateService"
|
<service interface="com.l2jserver.service.configuration.ConfigurationService"
|
||||||
implementation="com.l2jserver.service.game.template.XMLTemplateService">
|
implementation="com.l2jserver.service.configuration.XMLConfigurationService" />
|
||||||
<!-- The root where template data is located. Relative to the "data file
|
<service interface="com.l2jserver.service.cache.CacheService"
|
||||||
system" -->
|
implementation="com.l2jserver.service.cache.SoftCacheService" />
|
||||||
<templates root="template/" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<!-- Network service -->
|
|
||||||
<service interface="com.l2jserver.service.network.NetworkService"
|
|
||||||
implementation="com.l2jserver.service.network.NettyNetworkService">
|
|
||||||
<!-- The port in which the server should listen for incoming connections -->
|
|
||||||
<!-- NOTE: this port must be open manually on any firewall or router that
|
|
||||||
is between you and other players. If you wish to play on the same machine
|
|
||||||
you normally don't need to change anything here nor in the firewall. -->
|
|
||||||
<server listen="0.0.0.0:7777" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<!-- Logging service -->
|
|
||||||
<service interface="com.l2jserver.service.core.LoggingService"
|
<service interface="com.l2jserver.service.core.LoggingService"
|
||||||
implementation="com.l2jserver.service.core.Log4JLoggingService">
|
implementation="com.l2jserver.service.core.Log4JLoggingService">
|
||||||
<logger name="" level="ERROR" />
|
<logger name="" level="ERROR" />
|
||||||
@@ -76,19 +64,6 @@
|
|||||||
level="INFO" />
|
level="INFO" />
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<!-- ###################################################################### -->
|
|
||||||
<!-- ########################### CORE SERVICES ############################ -->
|
|
||||||
<!-- ###################################################################### -->
|
|
||||||
<!-- Those services provide basic core features and are required for server
|
|
||||||
startup process -->
|
|
||||||
<service interface="com.l2jserver.service.core.threading.ThreadService"
|
|
||||||
implementation="com.l2jserver.service.core.threading.ThreadServiceImpl" />
|
|
||||||
<service interface="com.l2jserver.service.configuration.ConfigurationService"
|
|
||||||
implementation="com.l2jserver.service.configuration.XMLConfigurationService" />
|
|
||||||
<service interface="com.l2jserver.service.cache.CacheService"
|
|
||||||
implementation="com.l2jserver.service.cache.SoftCacheService" />
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ###################################################################### -->
|
<!-- ###################################################################### -->
|
||||||
<!-- ########################### GAME SERVICES ############################ -->
|
<!-- ########################### GAME SERVICES ############################ -->
|
||||||
<!-- ###################################################################### -->
|
<!-- ###################################################################### -->
|
||||||
@@ -144,7 +119,12 @@
|
|||||||
in the system and configure the system accordingly, set it to 0 -->
|
in the system and configure the system accordingly, set it to 0 -->
|
||||||
<threading count="0" />
|
<threading count="0" />
|
||||||
</service>
|
</service>
|
||||||
|
<service interface="com.l2jserver.service.game.template.TemplateService"
|
||||||
|
implementation="com.l2jserver.service.game.template.XMLTemplateService">
|
||||||
|
<!-- The root where template data is located. Relative to the "data file
|
||||||
|
system" -->
|
||||||
|
<templates root="template/" />
|
||||||
|
</service>
|
||||||
|
|
||||||
<!-- ####################################################################### -->
|
<!-- ####################################################################### -->
|
||||||
<!-- ########################## NETWORK SERVICES ########################### -->
|
<!-- ########################## NETWORK SERVICES ########################### -->
|
||||||
@@ -153,6 +133,14 @@
|
|||||||
server software to the player computer running the game client. Although
|
server software to the player computer running the game client. Although
|
||||||
not required, without them, becomes impossible to connect to the server in
|
not required, without them, becomes impossible to connect to the server in
|
||||||
order to play the game. -->
|
order to play the game. -->
|
||||||
|
<service interface="com.l2jserver.service.network.NetworkService"
|
||||||
|
implementation="com.l2jserver.service.network.NettyNetworkService">
|
||||||
|
<!-- The port in which the server should listen for incoming connections -->
|
||||||
|
<!-- NOTE: this port must be open manually on any firewall or router that
|
||||||
|
is between you and other players. If you wish to play on the same machine
|
||||||
|
you normally don't need to change anything here nor in the firewall. -->
|
||||||
|
<server listen="0.0.0.0:7777" />
|
||||||
|
</service>
|
||||||
<service interface="com.l2jserver.service.network.keygen.BlowfishKeygenService"
|
<service interface="com.l2jserver.service.network.keygen.BlowfishKeygenService"
|
||||||
implementation="com.l2jserver.service.network.keygen.SecureBlowfishKeygenService" />
|
implementation="com.l2jserver.service.network.keygen.SecureBlowfishKeygenService" />
|
||||||
<service interface="com.l2jserver.service.network.gameguard.GameGuardService"
|
<service interface="com.l2jserver.service.network.gameguard.GameGuardService"
|
||||||
|
|||||||
Reference in New Issue
Block a user