Driftsinstruktioner för hantering av TAK integration i VP
Konfigurera fil att lagra lokal TAK cache
I VP's konfigurationsfil konfigureras filen där den lokala TAK cachen skall lagras och vara tillgänglig för VP. Läs mer om konfigurationsparametrar i VP, stycket Hantering av VP's lokala cache för Tjänsteadresseringskatalogen.
Följande är ett exempel på hur konfigurationen kan göras i vp-config-override.properties
################################################################# # Properties for service "resetVagvalCache" # # RESETVAGVALCACHE_INBOUND_URI=URI for reset cache # RESETVAGVALCACHE_PORT=Port number for reset cache # LOCAL_TAK_CACHE=Path to file where local TAK cache should exist ################################################################# LOCAL_TAK_CACHE=${user.home}${file.separator}.tk.devtest.localCache
Genomföra en reset av TAK cache och resultatet rapporterat
- Adressen för att ladda om TAK cache enligt nedan, notera att portnr (23000) är konfigurerbart i VP's konfigurationsfil vp-config-override.properties.
localhost:23000/resetcache
- En lyckad uppdatering av lokal TAK cache resulterar i ett svar enligt nedan.
Initialize VagvalAgent TAK resources... Succeeded to get virtualizations and/or permissions from TAK, save to local TAK copy... Succesfully saved virtualizations and permissions to local TAK copy: /home/mule/.tk.devtest.localCache Init VagvalAgent loaded number of permissions: 162 Init VagvalAgent loaded number of virtualizations: 117
- En misslyckad uppdatering, dvs att VP faller tillbaka på en tidigare version av lokal TAK cache, ger följande resultat
Initialize VagvalAgent TAK resources... Failed to get virtualizations and/or permissions from TAK, restore from local TAK copy... Succesfully restored virtualizations and permissions from local TAK copy: /home/mule/.tk.devtest.localCache Init VagvalAgent loaded number of permissions: 153 Init VagvalAgent loaded number of virtualizations: 114
- I VPs applikationslog, <MULE_HOME>/logs/mule-app-vp.log, loggas motsvarande information om resultatet på en reset TAK cache.
2013-09-10 09:59:35,112 INFO org.mule.module.logging.DispatchingLogger - Start force a reset of VagvalAgent... 2013-09-10 09:59:35,117 INFO org.mule.module.logging.DispatchingLogger - Initialize VagvalAgent TAK resources... 2013-09-10 09:59:35,118 INFO org.mule.module.logging.DispatchingLogger - Fetch all virtualizations from TAK... 2013-09-10 09:59:35,304 INFO org.mule.module.logging.DispatchingLogger - Fetch all permissions from TAK... 2013-09-10 09:59:35,468 INFO org.mule.module.logging.DispatchingLogger - Save virtualizations and permissions to local TAK copy: /home/mule/.tk.devtest.localCache 2013-09-10 09:59:35,491 INFO org.mule.module.logging.DispatchingLogger - Init VagvalAgent loaded number of permissions: 162 2013-09-10 09:59:35,493 INFO org.mule.module.logging.DispatchingLogger - Init VagvalAgent loaded number of virtualizations: 117 2013-09-10 09:59:35,493 INFO org.mule.module.logging.DispatchingLogger - Init VagvalAgent done 2013-09-10 09:59:35,494 INFO org.mule.module.logging.DispatchingLogger - Successfully force reset VagvalAgent