View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.teamcomm.server.protocol.messages;
2   
3   import cz.cuni.amis.pogamut.ut2004.communication.messages.custom.ControlMessageField;
4   import cz.cuni.amis.pogamut.ut2004.communication.messages.custom.ControlMessageType;
5   import cz.cuni.amis.pogamut.ut2004.teamcomm.server.UT2004TCServer;
6   
7   /**
8    * {@link UT2004TCServer} hearbeat... 
9    * @author Jimmy
10   */
11  @ControlMessageType(type="TCControlServerAlive")
12  public class TCControlServerAlive extends TCControlMessage {
13  
14  	@ControlMessageField(index=1)
15  	private String host;
16  	
17  	@ControlMessageField(index=1)
18  	private Integer port;
19  	
20  	public TCControlServerAlive() {
21  	}
22  
23  	public String getHost() {
24  		return host;
25  	}
26  
27  	public void setHost(String host) {
28  		this.host = host;
29  	}
30  
31  	public Integer getPort() {
32  		return port;
33  	}
34  
35  	public void setPort(Integer port) {
36  		this.port = port;
37  	}
38  
39  }