1 /**
2 * Copyright 2005-2006 the original author or authors.
3 *
4 * Licensed under the Gnu General Pubic License, Version 2.0 (the
5 * "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/gpl-license.php
9 *
10 * This program 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.
13 * See the Gnu General Public License for more details.
14 */
15 package org.figure8.join.businessobjects.environment;
16
17 import java.util.List;
18 /**
19 * This entity interface represents a Resource used by physical environments
20 * managed by Join. A Resource is typed and thus exposes its {@link ResourceType}.
21 * <br/>
22 * A Resource is also hosted on a specific machine and may provide access to
23 * the supported application log files.
24 * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
25 * @version $Revision: 1.1 $
26 */
27 public interface Resource{
28
29
30
31 /** @return This resource unique name */
32 public abstract String getName();
33
34 /** @return The path to directory where this resource stores log files */
35 public abstract String getLogDirPath();
36
37 /** @return The path to current log file for this resource */
38 public abstract String getLogFilePath();
39
40 /** @return The physical machine hosting this resource (if any) */
41 public abstract Machine getMachine();
42
43 /** @return The type of this resource */
44 public abstract ResourceType getResourceType();
45
46 /** @return The physical environments that are using this resource */
47 public abstract List getPhysicalEnvironments();
48 }
49