|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.okiproject.serviceapi.file.CabinetFactory
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 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.
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 |
public CabinetFactory()
Method Detail |
public static CabinetFactory getDefaultCabinetFactory()
public static java.util.Properties getTypes()
public Cabinet getCabinet(org.okiproject.serviceapi.guid.GUID guid)
guid
- public Cabinet createCabinet()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |