|
|||||||||
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
The class RoundRobin allows to share methodes between RoundRobinLibrary and RoundRobinDataBase
RoundRobinLibraryItf RoundRobinDataBaseItf
, Serialized FormField Summary | |
protected java.io.File |
mountFile
File representing the RoundRobin |
protected static java.lang.String |
RRD_FILE
Type RoundRobin FILE |
static java.lang.String |
RRD_FILE_EXTENTION
Extention of mountFile rrd |
protected static java.lang.String |
RRD_LIBRARY
Type RoundRobin LIBRARY |
protected java.lang.String |
type
The type of the RoundRobin |
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 | |
RoundRobin(java.lang.String name,
java.lang.String type)
Constructor of class RoundRobin |
Method Summary | |
abstract int |
delete()
delete delete a rrd |
protected java.lang.String |
getAbsolutePath()
getAbsolutePath return the ablosulte path of RoundRobin mount file |
protected Lock |
getLock()
getLock return the lock of RoundRobin |
protected java.io.File |
getMountFile()
getMountFile return the mount file of RoundRobin |
java.lang.String |
getName()
getName return the name of RoundRobin |
abstract long |
getSize()
getSize return the size of RoundRobin |
int |
getStatus()
getStatus return the status of lock return int reprsenting the status READ_WRITE or DELETE |
java.lang.String |
getType()
getType return the type of a RoundRobin |
boolean |
isRoundRobinDataBase()
isRoundRobinDataBase return true if RoundRobin is a RoundRobinDataBase |
protected boolean |
isRoundRobinDataBase(java.io.File mountFile)
isRoundRobinDataBase return true if RoundRobin is a RoundRobinDataBase |
boolean |
isRoundRobinLibrary()
isRoundRobinLibrary return true if RoundRobin is a RoundRobinlibrary |
protected boolean |
isRoundRobinLibrary(java.io.File mountFile)
isRoundRobinLibrary return true if RoundRobin is a RoundRobinlibrary |
protected boolean |
isValideType(java.lang.String type)
isValideType return true if the type is valide |
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 |
protected void |
setLock(Lock lock)
setLock specify the lock |
protected void |
setMountFile(java.lang.String nameOfMountFile)
setMountFile specify the mount file of RoundRobin |
protected void |
setType(java.lang.String type)
setType specify the type of a RoundRobin |
protected void |
throwException(java.lang.String message,
java.lang.Exception e)
throwException throw a exception with the specific message |
protected void |
throwRemoteException(java.lang.String message,
java.lang.Exception e)
throwRemoteException throw a remote exception with the specific message |
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 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 |
Field Detail |
protected java.io.File mountFile
protected static final java.lang.String RRD_FILE
public static final java.lang.String RRD_FILE_EXTENTION
protected static final java.lang.String RRD_LIBRARY
protected java.lang.String type
Constructor Detail |
public RoundRobin(java.lang.String name, java.lang.String type) throws java.lang.Exception
Method Detail |
public abstract int delete() throws java.rmi.RemoteException
delete
in interface RoundRobinItf
protected java.lang.String getAbsolutePath()
protected Lock getLock() throws java.lang.Exception
protected java.io.File getMountFile()
public java.lang.String getName() throws java.rmi.RemoteException
getName
in interface RoundRobinItf
public abstract long getSize() throws java.rmi.RemoteException
getSize
in interface RoundRobinItf
public int getStatus() throws java.lang.Exception
getStatus
in interface LockItf
public java.lang.String getType() throws java.rmi.RemoteException
getType
in interface RoundRobinItf
rrdService.service.RoundRobinItf
public boolean isRoundRobinDataBase() throws java.rmi.RemoteException
isRoundRobinDataBase
in interface RoundRobinItf
rrdService.service.RoundRobinItf
protected boolean isRoundRobinDataBase(java.io.File mountFile)
public boolean isRoundRobinLibrary() throws java.rmi.RemoteException
isRoundRobinLibrary
in interface RoundRobinItf
rrdService.service.RoundRobinItf
protected boolean isRoundRobinLibrary(java.io.File mountFile)
protected boolean isValideType(java.lang.String type)
type
- the type of RoundRobin to testpublic boolean lockDelete() throws java.lang.Exception
lockDelete
in interface LockItf
public boolean lockRead() throws java.lang.Exception
lockRead
in interface LockItf
public boolean lockWrite() throws java.lang.Exception
lockWrite
in interface LockItf
protected void setLock(Lock lock)
lock
- the lock to associate to the RoundRobinprotected void setMountFile(java.lang.String nameOfMountFile)
nameOfMountFile
- the name of the mount fileprotected void setType(java.lang.String type) throws java.lang.Exception
type
- the type of RoundRobinprotected void throwException(java.lang.String message, java.lang.Exception e) throws java.lang.Exception
message
- the exception messagee
- the exception which occursprotected void throwRemoteException(java.lang.String message, java.lang.Exception e) throws java.rmi.RemoteException
message
- the exception messagee
- the exception which occurspublic boolean unLockRead() throws java.lang.Exception
unLockRead
in interface LockItf
public boolean unLockWrite() throws java.lang.Exception
unLockWrite
in interface LockItf
|
Copyright 1885-2001 FIRMENICH SA, Geneva | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |