|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--rrdService.service.RoundRobin | +--rrdService.service.RoundRobinLibrary
The class RoundRobinLibrary allows the managment of a group of rrd
RoundRobinLibraryItf
, Serialized FormFields inherited from class rrdService.service.RoundRobin |
mountFile, RRD_FILE, RRD_FILE_EXTENTION, RRD_LIBRARY, type |
Fields inherited from class java.rmi.server.UnicastRemoteObject |
csf, port, portFactoryParamTypes, portParamTypes, serialVersionUID, ssf |
Fields inherited from class java.rmi.server.RemoteServer |
log, logname |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Fields inherited from interface rrdService.service.LockItf |
DELETE, READ_WRITE |
Constructor Summary | |
RoundRobinLibrary(java.lang.String name)
Constructor of class RoundRobinLibrary |
Method Summary | |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
DataSourceContainer DSContainer,
RoundRobinArchive roundRobinArchive)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
DataSourceContainer DSContainer,
RoundRobinArchiveContainer RRAContainer)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
DataSource dataSource,
RoundRobinArchive roundRobinArchive)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
DataSource dataSource,
RoundRobinArchiveContainer RRAContainer)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
int steps,
DataSourceContainer DSContainer,
RoundRobinArchive roundRobinArchive)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
int steps,
DataSourceContainer DSContainer,
RoundRobinArchiveContainer RRAContainer)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
int steps,
DataSource dataSource,
RoundRobinArchive roundRobinArchive)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
int steps,
DataSource dataSource,
RoundRobinArchiveContainer RRAContainer)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
Time startTime,
DataSourceContainer DSContainer,
RoundRobinArchive roundRobinArchive)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
Time startTime,
DataSourceContainer DSContainer,
RoundRobinArchiveContainer RRAContainer)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
Time startTime,
DataSource dataSource,
RoundRobinArchive roundRobinArchive)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
Time startTime,
DataSource dataSource,
RoundRobinArchiveContainer RRAContainer)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
Time startTime,
int steps,
DataSourceContainer DSContainer,
RoundRobinArchive roundRobinArchive)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
Time startTime,
int steps,
DataSourceContainer DSContainer,
RoundRobinArchiveContainer RRAContainer)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
Time startTime,
int steps,
DataSource dataSource,
RoundRobinArchive roundRobinArchive)
createRoundRobinDataBase create a round robin database |
RoundRobinDataBaseItf |
createRoundRobinDataBase(java.lang.String fileName,
Time startTime,
int steps,
DataSource dataSource,
RoundRobinArchiveContainer RRAContainer)
createRoundRobinDataBase create a round robin database |
RoundRobinLibraryItf |
createSubLibrary(java.lang.String name)
createSubLibrary create a sub library in the current library |
int |
delete()
delete delete a rrd |
private int |
delete(java.io.File directory)
delete delete a rrd |
RoundRobinLibraryItf |
findLibrary(java.lang.String libraryName)
Returns RoundRobinLibraryItf according to its name null otherwise |
RoundRobinDataBaseItf |
findRRD(java.lang.String RRDName)
Returns RoundRobindataBaseItf according to its name null otherwise |
private long |
getRoundRobinLibrarySize(java.io.File directory)
getRoundRobinLibrarySize return the size in bytes of RRD |
long |
getSize()
getSize return the size in bytes of RRD |
RoundRobinContainer |
listRoundRobin()
ListRoundRobin returns an RoundRobinContainer |
RoundRobinDataBaseContainer |
listRoundRobinDataBase()
ListRoundRobinDataBase returns RoundRobinDataBaseContainer |
RoundRobinLibraryContainer |
listRoundRobinLibrary()
ListLibrary returns RoundRobinLibraryContainer |
private boolean |
lock(java.io.File directory,
int mode)
Lock a library acces return boolean true if the lock is taken |
boolean |
lockDelete()
Lock in deleting acces return boolean true if the lock is taken |
boolean |
lockRead()
Lock in reading acces return boolean true if the lock is taken |
boolean |
lockWrite()
Lock in writting acces return boolean true if the lock is taken |
private boolean |
unLock(java.io.File directory,
int mode)
unLock a library access return boolean true if the unlock is well done |
boolean |
unLockDelete()
Unlock in delete acces return boolean true if the lock is left |
boolean |
unLockRead()
Unlock in reading acces return boolean true if the lock is left |
boolean |
unLockWrite()
Unlock in writting acces return boolean true if the lock is left |
Methods inherited from class rrdService.service.RoundRobin |
getAbsolutePath, getLock, getMountFile, getName, getStatus, getType, isRoundRobinDataBase, isRoundRobinDataBase, isRoundRobinLibrary, isRoundRobinLibrary, isValideType, setLock, setMountFile, setType, throwException, throwRemoteException |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
|
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub, writeObject |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait |
Methods inherited from interface rrdService.service.RoundRobinItf |
getName, getType, isRoundRobinDataBase, isRoundRobinLibrary |
Constructor Detail |
public RoundRobinLibrary(java.lang.String name) throws java.lang.Exception
name
- the name of the RoundRobinLibraryMethod Detail |
public RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, DataSourceContainer DSContainer, RoundRobinArchive roundRobinArchive) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBaseDSContainer
- a collection of the data source of the RRDroundRobinArchive
- the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, DataSourceContainer DSContainer, RoundRobinArchiveContainer RRAContainer) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBaseDSContainer
- a collection of the data source of the RRDRRAContainer
- a collection of the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, DataSource dataSource, RoundRobinArchive roundRobinArchive) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasedataSource
- the data source of the RRDroundRobinArchive
- the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, DataSource dataSource, RoundRobinArchiveContainer RRAContainer) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasedataSource
- the data source of the RRDRRAContainer
- a collection of the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, int steps, DataSourceContainer DSContainer, RoundRobinArchive roundRobinArchive) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasesteps
- Specifies the base interval in seconds with which data will be fed into the RRD (default 0)DSContainer
- a collection of the data source of the RRDroundRobinArchive
- the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, int steps, DataSourceContainer DSContainer, RoundRobinArchiveContainer RRAContainer) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasesteps
- Specifies the base interval in seconds with which data will be fed into the RRD (default 0)DSContainer
- a collection of the data source of the RRDRRAContainer
- a collection of the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, int steps, DataSource dataSource, RoundRobinArchive roundRobinArchive) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasesteps
- Specifies the base interval in seconds with which data will be fed into the RRD (default 0)dataSource
- the data source of the RRDroundRobinArchive
- the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, int steps, DataSource dataSource, RoundRobinArchiveContainer RRAContainer) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasesteps
- Specifies the base interval in seconds with which data will be fed into the RRD (default 0)dataSource
- the data source of the RRDRRAContainer
- a collection of the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, Time startTime, DataSourceContainer DSContainer, RoundRobinArchive roundRobinArchive) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasestartTime
- Specifies the time in seconds since 1970-01-01 UTC when the first value should be added to the RRD (default null)DSContainer
- a collection of the data source of the RRDroundRobinArchive
- the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, Time startTime, DataSourceContainer DSContainer, RoundRobinArchiveContainer RRAContainer) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasestartTime
- Specifies the time in seconds since 1970-01-01 UTC when the first value should be added to the RRD (default null)DSContainer
- a collection of the data source of the RRDRRAContainer
- a collection of the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, Time startTime, DataSource dataSource, RoundRobinArchive roundRobinArchive) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasestartTime
- Specifies the time in seconds since 1970-01-01 UTC when the first value should be added to the RRD (default null)dataSource
- the data source of the RRDroundRobinArchive
- the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, Time startTime, DataSource dataSource, RoundRobinArchiveContainer RRAContainer) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasestartTime
- Specifies the time in seconds since 1970-01-01 UTC when the first value should be added to the RRD (default null)dataSource
- the data source of the RRDRRAContainer
- a collection of the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, Time startTime, int steps, DataSourceContainer DSContainer, RoundRobinArchive roundRobinArchive) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasestartTime
- Specifies the time in seconds since 1970-01-01 UTC when the first value should be added to the RRD (default null)steps
- Specifies the base interval in seconds with which data will be fed into the RRD (default 0)DSContainer
- a collection of the data source of the RRDroundRobinArchive
- the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, Time startTime, int steps, DataSourceContainer DSContainer, RoundRobinArchiveContainer RRAContainer) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasestartTime
- Specifies the time in seconds since 1970-01-01 UTC when the first value should be added to the RRD (default null)steps
- Specifies the base interval in seconds with which data will be fed into the RRD (default 0)DSContainer
- a collection of the data source of the RRDRRAContainer
- a collection of the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, Time startTime, int steps, DataSource dataSource, RoundRobinArchive roundRobinArchive) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasestartTime
- Specifies the time in seconds since 1970-01-01 UTC when the first value should be added to the RRD (default null)steps
- Specifies the base interval in seconds with which data will be fed into the RRD (default 0)dataSource
- the data source of the RRDroundRobinArchive
- the RRA of the RRDpublic RoundRobinDataBaseItf createRoundRobinDataBase(java.lang.String fileName, Time startTime, int steps, DataSource dataSource, RoundRobinArchiveContainer RRAContainer) throws java.rmi.RemoteException
createRoundRobinDataBase
in interface RoundRobinLibraryItf
fileName
- the name of the RoundRobinDataBasestartTime
- Specifies the time in seconds since 1970-01-01 UTC when the first value should be added to the RRD (default null)steps
- Specifies the base interval in seconds with which data will be fed into the RRD (default 0)dataSource
- the data source of the RRDRRAContainer
- a collection of the RRA of the RRDpublic RoundRobinLibraryItf createSubLibrary(java.lang.String name) throws java.rmi.RemoteException
createSubLibrary
in interface RoundRobinLibraryItf
name
- the name of sub librarypublic int delete() throws java.rmi.RemoteException
delete
in interface RoundRobinLibraryItf
delete
in class RoundRobin
private int delete(java.io.File directory) throws java.lang.Exception
lib
- the RoundRobinLibrary to start deletingpublic RoundRobinLibraryItf findLibrary(java.lang.String libraryName) throws java.rmi.RemoteException
findLibrary
in interface RoundRobinLibraryItf
libraryname
- the name of the library to findpublic RoundRobinDataBaseItf findRRD(java.lang.String RRDName) throws java.rmi.RemoteException
findRRD
in interface RoundRobinLibraryItf
RRDName
- the name of the round robin data base to findprivate long getRoundRobinLibrarySize(java.io.File directory) throws java.lang.Exception
directory
- the directory to startpublic long getSize() throws java.rmi.RemoteException
getSize
in interface RoundRobinLibraryItf
getSize
in class RoundRobin
public RoundRobinContainer listRoundRobin() throws java.rmi.RemoteException
listRoundRobin
in interface RoundRobinLibraryItf
public RoundRobinDataBaseContainer listRoundRobinDataBase() throws java.rmi.RemoteException
listRoundRobinDataBase
in interface RoundRobinLibraryItf
public RoundRobinLibraryContainer listRoundRobinLibrary() throws java.rmi.RemoteException
listRoundRobinLibrary
in interface RoundRobinLibraryItf
private boolean lock(java.io.File directory, int mode) throws java.lang.Exception
public boolean lockDelete() throws java.lang.Exception
lockDelete
in class RoundRobin
public boolean lockRead() throws java.lang.Exception
lockRead
in class RoundRobin
public boolean lockWrite() throws java.lang.Exception
lockWrite
in class RoundRobin
private boolean unLock(java.io.File directory, int mode) throws java.lang.Exception
public boolean unLockDelete() throws java.lang.Exception
public boolean unLockRead() throws java.lang.Exception
unLockRead
in class RoundRobin
public boolean unLockWrite() throws java.lang.Exception
unLockWrite
in class RoundRobin
|
Copyright 1885-2001 FIRMENICH SA, Geneva | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |