Class TournamentService
- java.lang.Object
-
- org.powertac.visualizer.service_ptac.TournamentService
-
- All Implemented Interfaces:
javax.jms.MessageListener
@EnableScheduling @Service @Configuration public class TournamentService extends Object implements javax.jms.MessageListener
- Author:
- Jurica Babic, Govert Buijs, Erik Kemperman
-
-
Constructor Summary
Constructors Constructor Description TournamentService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTick()
void
afterPropertiesSet()
String
getTournamentState()
void
init()
Called on initialization to start message feeder and state machine.void
onMessage(javax.jms.Message message)
-
-
-
Method Detail
-
afterPropertiesSet
@PostConstruct public void afterPropertiesSet() throws Exception
- Throws:
Exception
-
init
public void init()
Called on initialization to start message feeder and state machine.
-
getTournamentState
public String getTournamentState()
-
onMessage
public void onMessage(javax.jms.Message message)
- Specified by:
onMessage
in interfacejavax.jms.MessageListener
-
addTick
@Scheduled(fixedRate=30000L) public void addTick()
-
-