PageRenderTime 205ms CodeModel.GetById 193ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/protocols/ss7/m3ua/api/src/main/java/org/mobicents/protocols/ss7/m3ua/message/MessageType.java

http://mobicents.googlecode.com/
Java | 94 lines | 49 code | 13 blank | 32 comment | 0 complexity | 0f4c7962bd4ed530d54893b0e7acdc83 MD5 | raw file
 1/*
 2 * JBoss, Home of Professional Open Source
 3 * Copyright 2011, Red Hat, Inc. and individual contributors
 4 * by the @authors tag. See the copyright.txt in the distribution for a
 5 * full listing of individual contributors.
 6 *
 7 * This is free software; you can redistribute it and/or modify it
 8 * under the terms of the GNU Lesser General Public License as
 9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */
22
23package org.mobicents.protocols.ss7.m3ua.message;
24
25/**
26 * Defines valid message types.
27 * 
28 * @author kulikov
29 */
30public interface MessageType {
31    //Management (MGMT) Messages
32    public final static int ERROR = 0;
33    public final static int NOTIFY = 1;
34    
35    public final static String S_ERROR = "ERROR";
36    public final static String S_NOTIFY = "NOTIFY";
37    
38    //Transfer Messages
39    public final static int PAYLOAD = 1;
40    public final static String S_PAYLOAD = "DATA"; 
41    
42    //SS7 Signalling Network Management (SSNM) Messages
43    public final static int DESTINATION_UNAVAILABLE = 1;
44    public final static int DESTINATION_AVAILABLE = 2;
45    public final static int DESTINATION_STATE_AUDIT = 3;
46    public final static int SIGNALING_CONGESTION = 4;
47    public final static int DESTINATION_USER_PART_UNAVAILABLE = 5;
48    public final static int DESTINATION_RESTRICTED = 6;
49    
50    public final static String S_DESTINATION_UNAVAILABLE = "DUNA";
51    public final static String S_DESTINATION_AVAILABLE = "DAVA";
52    public final static String S_DESTINATION_STATE_AUDIT = "DAUD";
53    public final static String S_SIGNALING_CONGESTION = "SCON";
54    public final static String S_DESTINATION_USER_PART_UNAVAILABLE = "DUPU";
55    public final static String S_DESTINATION_RESTRICTED = "DRST";
56    
57    
58    //ASP State Maintenance (ASPSM) Messages
59    public final static int ASP_UP = 1;
60    public final static int ASP_DOWN = 2;
61    public final static int HEARTBEAT = 3;
62    public final static int ASP_UP_ACK = 4;
63    public final static int ASP_DOWN_ACK = 5;
64    public final static int HEARTBEAT_ACK = 6;
65    
66    public final static String S_ASP_UP = "ASPUP";
67    public final static String S_ASP_DOWN = "ASPDOWN";
68    public final static String S_HEARTBEAT = "HEARTBEAT";
69    public final static String S_ASP_UP_ACK = "ASPUPACK";
70    public final static String S_ASP_DOWN_ACK = "ASPDOWNACK";
71    public final static String S_HEARTBEAT_ACK = "HEARTBEATACK";
72    
73    //ASP Traffic Maintenance (ASPTM) Messages
74    public final static int ASP_ACTIVE = 1;
75    public final static int ASP_INACTIVE = 2;
76    public final static int ASP_ACTIVE_ACK = 3;
77    public final static int ASP_INACTIVE_ACK = 4;   
78    
79    public final static String S_ASP_ACTIVE = "ASPACTIVE";
80    public final static String S_ASP_INACTIVE = "ASPINACTIVE";
81    public final static String S_ASP_ACTIVE_ACK = "ASPACTIVEACK";
82    public final static String S_ASP_INACTIVE_ACK = "ASPINACTIVEACK";     
83    
84    //Routing Key Management (RKM) Messages
85    public final static int REG_REQUEST = 1;
86    public final static int REG_RESPONSE = 2;
87    public final static int DEREG_REQUEST = 3;
88    public final static int DEREG_RESPONSE = 4;
89    
90    public final static String S_REG_REQUEST = "REGREQ";
91    public final static String S_REG_RESPONSE = "REGRSP";
92    public final static String S_DEREG_REQUEST = "DEREGREQ";
93    public final static String S_DEREG_RESPONSE = "DEREGRESP";    
94}