01: /*
02: * Timer: The timer class
03: * Copyright (C) 2006-2007 Rift IT Contracting
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2.1 of the License, or (at your option) any later version.
09: *
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;
25: import java.rmi.RemoteException;
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 {
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 name)
45: throws RemoteException, 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 name, String location)
58: throws RemoteException;
59: }
|