Rio Project 4.2 API Documentation



org.rioproject.monitor
Class AbstractOARDeployHandler

java.lang.Object
  extended by org.rioproject.monitor.AbstractOARDeployHandler
All Implemented Interfaces:
DeployHandler
Direct Known Subclasses:
FileSystemOARDeployHandler

public abstract class AbstractOARDeployHandler
extends Object
implements DeployHandler

An abstract DeployHandler providing support for ease of code. OperationalStrings are created and returned.


Field Summary
protected  Logger logger
           
protected  OpStringLoader opStringLoader
           
 
Constructor Summary
protected AbstractOARDeployHandler()
           
 
Method Summary
protected  void install(File oar, File installDir)
           
protected  DownloadRecord install(URL archive, File installDir)
           
 List<OperationalString> listofOperationalStrings()
          Get a list of OperationalStrings to deploy
 List<OperationalString> listofOperationalStrings(Date fromDate)
          Get a list of OperationalStrings to deploy starting from a Date
protected abstract  List<OperationalString> look(Date from)
           
protected  List<OperationalString> parseOAR(OAR oar, Date from)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

opStringLoader

protected OpStringLoader opStringLoader

logger

protected Logger logger
Constructor Detail

AbstractOARDeployHandler

protected AbstractOARDeployHandler()
Method Detail

look

protected abstract List<OperationalString> look(Date from)

listofOperationalStrings

public List<OperationalString> listofOperationalStrings()
Description copied from interface: DeployHandler
Get a list of OperationalStrings to deploy

Specified by:
listofOperationalStrings in interface DeployHandler
Returns:
A List of OperationalStrings to deploy. A new list is allocated each time. If there are no OperationalStrings to deploy, a zero-length list is returned

listofOperationalStrings

public List<OperationalString> listofOperationalStrings(Date fromDate)
Description copied from interface: DeployHandler
Get a list of OperationalStrings to deploy starting from a Date

Specified by:
listofOperationalStrings in interface DeployHandler
Parameters:
fromDate - OperationalString that has been added after the from date will be returned.
Returns:
A List of OperationalStrings to deploy. A new list is allocated each time. If there are no OperationalStrings to deploy, a zero-length list is returned

parseOAR

protected List<OperationalString> parseOAR(OAR oar,
                                           Date from)

install

protected DownloadRecord install(URL archive,
                                 File installDir)
                          throws IOException,
                                 OARException
Throws:
IOException
OARException

install

protected void install(File oar,
                       File installDir)
                throws IOException,
                       OARException
Throws:
IOException
OARException

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.