gtrianta1965 / ServiceWatcher

Standalone java application for Service Monitoring
0 stars 0 forks source link

Service.java: ArrayIndexOutOfBounds Exception #14

Closed androklis closed 7 years ago

androklis commented 7 years ago

When 2 or more services adding a status message to statusLog ArrayList in the same time.

androklis commented 7 years ago

Added a new method in ServiceOrchestrator.java: addStatusLog(status), which is protected to avoid conflicts.

androklis commented 7 years ago

My mistake no protected modifier just add synchronized after method's modifier to make it thread safe