mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
fix: JavaUtils cache failed in windows env
This commit is contained in:
parent
afdf4a7dc2
commit
dc61bb4648
@ -53,8 +53,9 @@ public class JavaUtils {
|
||||
}
|
||||
catch (Throwable t) {
|
||||
log.warn("[JavaUtils] determinePackageVersion for clz[{}] failed, msg: {}", clz.getSimpleName(), t.toString());
|
||||
// windows 下无权限访问会一直报错一直重试,需要在此兼容
|
||||
return "UNKNOWN";
|
||||
}
|
||||
return null;
|
||||
}
|
||||
private static String getImplementationVersion(JarFile jarFile) throws IOException {
|
||||
return jarFile.getManifest().getMainAttributes().getValue(Attributes.Name.IMPLEMENTATION_VERSION);
|
||||
|
@ -24,6 +24,9 @@ public class AkkaMappingService {
|
||||
static {
|
||||
addMappingRule(RemoteConstant.S4W_PATH, "server_actor", "w-r-c-d");
|
||||
addMappingRule(RemoteConstant.S4S_PATH, "friend_actor", "friend-request-actor-dispatcher");
|
||||
|
||||
addMappingRule(RemoteConstant.WTT_PATH, "task_tracker", "task-tracker-dispatcher");
|
||||
addMappingRule(RemoteConstant.WPT_PATH, "processor_tracker", "processor-tracker-dispatcher");
|
||||
}
|
||||
|
||||
private static final String DEFAULT_DISPATCH_NAME = "common-dispatcher";
|
||||
|
@ -10,7 +10,7 @@ powerjob.worker.app-name=powerjob-worker-samples
|
||||
# Address of PowerJob-server node(s). Ip:port or domain. Multiple addresses should be separated with comma.
|
||||
powerjob.worker.server-address=127.0.0.1:7700,127.0.0.1:7701
|
||||
# transport protocol between server and worker
|
||||
powerjob.worker.protocol=http
|
||||
powerjob.worker.protocol=akka
|
||||
# Store strategy of H2 database. disk or memory. Default value is disk.
|
||||
powerjob.worker.store-strategy=disk
|
||||
# Max length of result. Results that are longer than the value will be truncated.
|
||||
|
Loading…
x
Reference in New Issue
Block a user