org.duracloud.services.hellowebappwrapper
Class HelloWebappWrapper

java.lang.Object
  extended by org.duracloud.services.BaseService
      extended by org.duracloud.services.hellowebappwrapper.HelloWebappWrapper
All Implemented Interfaces:
ComputeService, org.osgi.service.cm.ManagedService

public class HelloWebappWrapper
extends BaseService
implements ComputeService, org.osgi.service.cm.ManagedService

This class acts at the OSGi service representative of webapp deployed as a DuraCloud service.

Author:
Andrew Woods Date: Dec 10, 2009

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.duracloud.services.ComputeService
ComputeService.ServiceStatus
 
Field Summary
 
Fields inherited from interface org.duracloud.services.ComputeService
DELIM, ERROR_KEY, REPORT_KEY, STARTTIME_KEY, STATUS_KEY, STOPTIME_KEY, SYSTEM_PREFIX
 
Constructor Summary
HelloWebappWrapper()
           
 
Method Summary
 java.lang.String describe()
           
 java.util.Map<java.lang.String,java.lang.String> getServiceProps()
           
 java.lang.String getUrl()
           
 WebAppUtil getWebappUtil()
           
 java.lang.String getWebappWarName()
           
 void setUrl(java.lang.String url)
           
 void setWebappUtil(WebAppUtil webappUtil)
           
 void setWebappWarName(java.lang.String webappWarName)
           
 void start()
           
 void stop()
           
 java.lang.String toString()
           
 void updated(java.util.Dictionary config)
           
 
Methods inherited from class org.duracloud.services.BaseService
doneWorking, getError, getServiceId, getServiceStatus, getServiceWorkDir, setError, setReportId, setServiceId, setServiceStatus, setServiceWorkDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.duracloud.services.ComputeService
getServiceId, getServiceStatus, getServiceWorkDir, setServiceWorkDir
 

Constructor Detail

HelloWebappWrapper

public HelloWebappWrapper()
Method Detail

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface ComputeService
Overrides:
start in class BaseService
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface ComputeService
Overrides:
stop in class BaseService
Throws:
java.lang.Exception

getServiceProps

public java.util.Map<java.lang.String,java.lang.String> getServiceProps()
Specified by:
getServiceProps in interface ComputeService
Overrides:
getServiceProps in class BaseService

describe

public java.lang.String describe()
                          throws java.lang.Exception
Specified by:
describe in interface ComputeService
Overrides:
describe in class BaseService
Throws:
java.lang.Exception

updated

public void updated(java.util.Dictionary config)
             throws org.osgi.service.cm.ConfigurationException
Specified by:
updated in interface org.osgi.service.cm.ManagedService
Throws:
org.osgi.service.cm.ConfigurationException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getWebappUtil

public WebAppUtil getWebappUtil()

setWebappUtil

public void setWebappUtil(WebAppUtil webappUtil)

getUrl

public java.lang.String getUrl()

setUrl

public void setUrl(java.lang.String url)

getWebappWarName

public java.lang.String getWebappWarName()

setWebappWarName

public void setWebappWarName(java.lang.String webappWarName)


Copyright © 2009-2011 DuraSpace. All Rights Reserved.