org.okiproject.serviceapi.file
Class CabinetFactory

java.lang.Object
  |
  +--org.okiproject.serviceapi.file.CabinetFactory
All Implemented Interfaces:
java.io.Serializable

public class CabinetFactory
extends java.lang.Object
implements java.io.Serializable

Copyright (c) 2001 Massachusetts Institute of Technology

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


The installation has several implementations of CabinetFactory available.

The application calls either org.okiproject.serviceapi.file.getDefaultCabinetFactory() or org.okiproject.serviceapi.file.getTypes() and after examining the features of the available types of CabinetFactory implementations, calls org.okiproject.serviceapi.file.getCabinetFactory(type) to get a CabinetFactory to use.

Once there is a CabinetFactory implementation available, a new Cabinet is created from the factory using createCabinet(), e.g. cabinetFactoryImpl.createCabinet()

Or, to reuse an existing cabinet, use org.okiproject.serviceapi.file.getCabinet(guid)

A CabinetFactory implementation has some of the characteristics of a filesystem implementation. Different filesystems support different maximum file lengths, some may be journaled, some may support RAID.


$Source: /cvs/oki/org/okiproject/serviceapi/doc/file/org/okiproject/serviceapi/file/CabinetFactory.html,v $

See Also:
Serialized Form

Constructor Summary
CabinetFactory()
           
 
Method Summary
 Cabinet createCabinet()
          Method createCabinet
 Cabinet getCabinet(org.okiproject.serviceapi.guid.GUID guid)
          Method getCabinet
static CabinetFactory getDefaultCabinetFactory()
          Method getDefaultCabinetFactory
static java.util.Properties getTypes()
          Method getTypes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CabinetFactory

public CabinetFactory()
Method Detail

getDefaultCabinetFactory

public static CabinetFactory getDefaultCabinetFactory()
Method getDefaultCabinetFactory
Returns:
 

getTypes

public static java.util.Properties getTypes()
Method getTypes
Returns:
 

getCabinet

public Cabinet getCabinet(org.okiproject.serviceapi.guid.GUID guid)
Method getCabinet
Parameters:
guid -  
Returns:
 

createCabinet

public Cabinet createCabinet()
Method createCabinet
Returns: