01: /*
02: * File: heartbeat.java
03: * Project: jMOS, com.aranova.java.jmos.messages
04: * Revision: 0.9 - Inicial
05: * Date: 18-oct-2005 17:31:33
06: *
07: * Copyright (C) Aragón Innovación Tecnológica S.L.L.
08: * All rights reserved.
09: *
10: * This software is distributed under the terms of the Aranova License version 1.0.
11: * See the terms of the Aranova License in the documentation provided with this software.
12: */
13:
14: package com.aranova.java.jmos.messages.profile0;
15:
16: import java.util.Date;
17:
18: import com.aranova.java.jmos.annotations.MOSAttribute;
19: import com.aranova.java.jmos.annotations.MOSMessage;
20: import com.aranova.java.jmos.enums.TypePort;
21: import com.aranova.java.jmos.messages.Message;
22:
23: /**
24: * Profile 0 - Connection Confidence Indicator.<BR>
25: * <b>Purpose</b><BR>
26: * Message sent for the purpose of verifying network and application continuity.<BR>
27: * <b>Response</b><BR>
28: * {@link heartbeat heartbeat}<BR>
29: * <b>Port</b><BR>
30: * MOS Lower Port (10540) - Media Object Metadata<BR>
31: * MOS Upper Port (10541) - Running Order<BR>
32: *
33: * @author <a href="http://www.aranova.net/contactar/">Daniel Sánchez</a>
34: * @version 0.9.1
35: * @since 0.9
36: */
37: @MOSMessage(name="heartbeat",profile=0,port={TypePort.LowerPort,TypePort.UpperPort},response=heartbeat.class)
38: public class heartbeat extends Message {
39: @MOSAttribute(name="time")
40: private Date _time;
41:
42: /**
43: * @return Returns the time.
44: */
45: public Date getTime() {
46: return _time;
47: }
48:
49: /**
50: * @param time The time to set.
51: */
52: public void setTime(final Date time) {
53: _time = time;
54: }
55: }
|