org.duracloud.services.script
Class ScriptService

java.lang.Object
  extended by org.duracloud.services.BaseService
      extended by org.duracloud.services.script.ScriptService
All Implemented Interfaces:
ComputeService, org.osgi.service.cm.ManagedService
Direct Known Subclasses:
ImageMagickService

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

Service which handles the calling of OS-dependent scripts in order to deploy and undeploy utilities within the DuraCloud service environment

Author:
Bill Branan Date: Dec 11, 2009

Nested Class Summary
static class ScriptService.OS
           
 
Nested classes/interfaces inherited from interface org.duracloud.services.ComputeService
ComputeService.ServiceStatus
 
Field Summary
 
Fields inherited from interface org.duracloud.services.ComputeService
ERROR_KEY
 
Constructor Summary
ScriptService()
           
 
Method Summary
 ScriptService.OS determineOS()
           
 java.util.Map<java.lang.String,java.lang.String> getServiceProps()
           
 void start()
           
 void stop()
           
 void updated(java.util.Dictionary config)
           
 
Methods inherited from class org.duracloud.services.BaseService
describe, getError, getServiceId, getServiceStatus, getServiceWorkDir, setError, setServiceId, setServiceStatus, setServiceWorkDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.duracloud.services.ComputeService
describe, getServiceId, getServiceStatus, getServiceWorkDir, setServiceWorkDir
 

Constructor Detail

ScriptService

public ScriptService()
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

determineOS

public ScriptService.OS determineOS()

getServiceProps

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

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


Copyright © 2009-2011 DuraSpace. All Rights Reserved.