001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)DeploymentUnitInfo.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: /**
030: * DeploymentUnit.java
031: *
032: * Copyright 2004-2006 Sun Microsystems, Inc. All Rights Reserved.
033: *
034: * Created on May 8, 2006, 5:07 PM
035: */package com.sun.jbi.management.system;
036:
037: /**
038: * Class which enacpsulates information on a Service Unit and its Target Component.
039: *
040: * @author Sun Microsystems, Inc.
041: */
042: public class DeploymentUnitInfo {
043:
044: /**
045: * Servuice Unit
046: */
047: private String mSuName;
048:
049: /**
050: * Component
051: */
052: private String mCompName;
053:
054: /**
055: * The Service Unit Jar Name.
056: */
057: private String mSuJarName;
058:
059: /**
060: * The Service Unit Jar Location.
061: */
062: private String mSuJarPath;
063:
064: /** Creates a new instance of DeploymentUnit */
065: public DeploymentUnitInfo(String suName, String componentName,
066: String suJarName, String saUnzipPath) {
067: mSuName = suName;
068: mCompName = componentName;
069: mSuJarName = suJarName;
070: mSuJarPath = saUnzipPath + java.io.File.separator + suJarName;
071: }
072:
073: /**
074: * @return the Service Unit name.
075: */
076: public String getServiceUnit() {
077: return mSuName;
078: }
079:
080: /**
081: * @return the Target Component Name
082: */
083: public String getTargetComponent() {
084: return mCompName;
085: }
086:
087: /**
088: * @return the location of the Service Unit jar
089: */
090: public String getServiceUnitJarPath() {
091: return mSuJarPath;
092: }
093:
094: /**
095: * @return the Name of the Service Unit jar
096: */
097: public String getServiceUnitJarName() {
098: return mSuJarName;
099: }
100:
101: /**
102: * @return the Service Unit Root Path
103: */
104: public String getServiceUnitRoot() {
105: return getTargetComponent() + "_" + getServiceUnit();
106: }
107: }
|