KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > rift > coad > daemon > deployment > DeploymentDaemon


1 /*
2  * Timer: The timer class
3  * Copyright (C) 2006-2007 Rift IT Contracting
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * DeploymentDaemon.java
20  */

21
22 package com.rift.coad.daemon.deployment;
23
24 import java.rmi.Remote JavaDoc;
25 import java.rmi.RemoteException JavaDoc;
26
27 /**
28  * This Daemon allows users to remotely upload either Daemons or any other file
29  * to the Coadunation server.
30  *
31  * @author Glynn Chaldecott
32  */

33 public interface DeploymentDaemon extends Remote JavaDoc {
34     
35     /**
36      * This method is used when a user wishes to remotely deploy a Daemon to
37      * Coadunation.
38      *
39      * @param file This is a byte[] containing the contents of the jar file.
40      * @param name This is the name of the Daemon. Please note that for a
41      * windows installation it will require that the extension be included
42      * in the name.
43      */

44     public void daemonDeployer(byte[] file, String JavaDoc name)
45             throws RemoteException JavaDoc, DeploymentDaemonException;
46     
47     /**
48      * This method is used when a user needs to remotely upload a file to the
49      * Coadunation server.
50      *
51      * @param file This is a byte[] containing the contents of the file.
52      * @param name This is the name of the file.
53      * @param location This is the location that the file will be stored. Please
54      * note the for a windows installation the name will have to include the
55      * extension.
56      */

57     public void copyFile(byte[] file, String JavaDoc name, String JavaDoc location)
58             throws RemoteException JavaDoc;
59 }
60
Popular Tags