KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > server > engine > dm > ejb > ManagementRemote


1 /**
2  * Copyright (C) 2003-2005 Funambol
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19
20 package sync4j.server.engine.dm.ejb;
21
22 import java.rmi.RemoteException JavaDoc;
23
24 import sync4j.framework.engine.dm.ManagementException;
25 import sync4j.framework.notification.NotificationException;
26
27 /**
28   *
29   * @author Stefano Nichele
30   * @version $Id: ManagementRemote.java,v 1.1 2005/05/16 17:32:56 nichele Exp $
31   *
32   */

33 public interface ManagementRemote extends javax.ejb.EJBObject JavaDoc
34  {
35
36      /**
37       * Performs a bootstrap with the given parameter
38       * @param messageType the type of the message. See {@link NotificationConstants}
39       * @param transportType the type of the transport. See {@link NotificationConstants}
40       * @param deviceUri the device uri
41       * @param phoneNumber the phone number of the device
42       * @param username the user name with which the device will do the next device management
43       * @param password the password with which the device will do the next device management
44       * @param info application specific info
45       *
46       * @throws RemoteException if a error occurs
47       */

48      public void bootstrap(int messageType, int transportType, String JavaDoc deviceUri, String JavaDoc phoneNumber, String JavaDoc
49                             username, String JavaDoc password, String JavaDoc info)
50      throws RemoteException JavaDoc, NotificationException, ManagementException;
51
52
53
54     /**
55      * Sends a notification message to the device with the given phoneNumber
56      * @param messageType the type of the notification message as define in <code>NotificationConstants<code>
57      * @param transportType the type of the transport as define in <code>NotificationConstants<code>
58      * @param phoneNumber the phone number
59      * @param operation application specific operation to be performed
60      * @param info application specific detail information
61      *
62      * @throws NotificationException in case of errors
63      */

64     public void sendNotification( int messageType ,
65                                   int transportType ,
66                                   String JavaDoc phoneNumber ,
67                                   String JavaDoc operation ,
68                                   String JavaDoc info )
69     throws RemoteException JavaDoc, NotificationException, ManagementException;
70
71     /**
72      * Executes the management sequence identified by the given operation name.
73      *
74      * @param phoneNumber the phone number
75      * @param operation the management operation name
76      * @param info application specific detail information
77      *
78      * @throws RemoteException in case of RMI errors,
79      * ManagementException if a error occurs in the management engine,
80      * NotificationException if an error occurs in the notification process
81      */

82     public void executeManagementOperation( String JavaDoc phoneNumber ,
83                                             String JavaDoc operation ,
84                                             String JavaDoc info )
85     throws RemoteException JavaDoc, ManagementException, NotificationException;
86
87
88  }
Popular Tags