01: /*
02: * File: mosReqAll.java
03: * Project: jMOS, com.aranova.java.jmos.messages.profile1
04: * Revision: 0.9 - Inicial
05: * Date: 20-oct-2005 17:58:46
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.profile1;
15:
16: import com.aranova.java.jmos.annotations.MOSAttribute;
17: import com.aranova.java.jmos.annotations.MOSMessage;
18: import com.aranova.java.jmos.enums.TypePort;
19: import com.aranova.java.jmos.messages.Message;
20:
21: /**
22: * Profile 1 - Request All Object Data from MOS.<BR>
23: * <b>Purpose</b><BR>
24: * Method for the NCS to request the MOS to send it a {@link mosObj mosObj} message for every Object in the MOS. Pause, when greater than zero, indicates the number of seconds to pause between individual mosObj messages. Pause of zero indicates that all objects will be sent using the mosListAll message.<BR>
25: * <b>Response</b><BR>
26: * {@link mosAck mosAck} - which then initiates one of the following:<BR>
27: * {@link mosListAll mosListAll} - if pause = 0<BR>
28: * {@link mosObj mosObj} - if pause > 0<BR>
29: * <b>Port</b><BR>
30: * MOS Lower Port (10540) - Media Object Metadata<BR>
31: *
32: * @author <a href="http://www.aranova.net/contactar/">Daniel Sánchez</a>
33: * @version 0.9.1
34: * @since 0.9
35: */
36: @MOSMessage(name="mosReqAll",profile=1,port=TypePort.LowerPort,response={mosAck.class,mosListAll.class,mosObj.class})
37: public class mosReqAll extends Message {
38: @MOSAttribute(name="pause")
39: private Long _pause;
40:
41: /**
42: * @return Returns the pause.
43: */
44: public Long getPause() {
45: return _pause;
46: }
47:
48: /**
49: * @param pause The pause to set.
50: */
51: public void setPause(final Long pause) {
52: _pause = pause;
53: }
54: }
|