Prevayler™
The Free Software
Prevalence Layer
A B C D E H L M N O P Q R S T U W X _

A

AbstractPublisher - class org.prevayler.implementation.publishing.AbstractPublisher.
This class provides basic subscriber addition and notification.
AbstractPublisher(Clock) - Constructor for class org.prevayler.implementation.publishing.AbstractPublisher
 
accept(File) - Method in class org.prevayler.implementation.logging.PersistentLogger
Implementing FileFilter. 0000000000000000000.transactionLog is the format of the transaction log filename.
addSubscriber(TransactionSubscriber) - Method in class org.prevayler.implementation.publishing.AbstractPublisher
 
addSubscriber(TransactionSubscriber, long) - Method in class org.prevayler.implementation.publishing.CentralPublisher
 
addSubscriber(TransactionSubscriber, long) - Method in interface org.prevayler.implementation.publishing.TransactionPublisher
Updates the given subscriber with all transactions published since initialTransaction, returns and continues publishing all future transactions to him.
addSubscriber(TransactionSubscriber, long) - Method in class org.prevayler.implementation.replication.ClientPublisher
 
advanceTo(Date) - Method in class org.prevayler.implementation.clock.BrokenClock
 
advanceTo(Date) - Method in class org.prevayler.implementation.clock.PausableClock
 
approve(Transaction, Date) - Method in class org.prevayler.implementation.publishing.censorship.LiberalTransactionCensor
 
approve(Transaction, Date) - Method in class org.prevayler.implementation.publishing.censorship.StrictTransactionCensor
 
approve(Transaction, Date) - Method in interface org.prevayler.implementation.publishing.censorship.TransactionCensor
 

B

BrokenClock - class org.prevayler.implementation.clock.BrokenClock.
A deterministic Clock that always returns the same time until it is forced to advance.
BrokenClock() - Constructor for class org.prevayler.implementation.clock.BrokenClock
 
BrokenClock(Date) - Constructor for class org.prevayler.implementation.clock.BrokenClock
 

C

CentralPublisher - class org.prevayler.implementation.publishing.CentralPublisher.
 
CentralPublisher(Clock, TransactionCensor, TransactionLogger) - Constructor for class org.prevayler.implementation.publishing.CentralPublisher
 
ClientPublisher - class org.prevayler.implementation.replication.ClientPublisher.
Reserved for future implementation.
ClientPublisher(String, int) - Constructor for class org.prevayler.implementation.replication.ClientPublisher
 
Clock - interface org.prevayler.Clock.
Tells the time.
clock() - Method in interface org.prevayler.Prevayler
Returns the Clock used to determine the execution time of all Transaction and Queries executed using this Prevayler.
clock() - Method in class org.prevayler.implementation.PrevaylerImpl
 
clock() - Method in class org.prevayler.implementation.publishing.AbstractPublisher
 
clock() - Method in interface org.prevayler.implementation.publishing.TransactionPublisher
Returns a Clock which is consistent with the Transaction publishing time.
clock() - Method in class org.prevayler.implementation.replication.ClientPublisher
 
close() - Method in interface org.prevayler.Prevayler
Closes any files or other system resources opened by this Prevayler.
close() - Method in class org.prevayler.implementation.PrevaylerImpl
 
close() - Method in class org.prevayler.implementation.logging.PersistentLogger
 
close() - Method in interface org.prevayler.implementation.logging.TransactionLogger
 
close() - Method in class org.prevayler.implementation.logging.TransientLogger
 
close() - Method in class org.prevayler.implementation.publishing.CentralPublisher
 
close() - Method in interface org.prevayler.implementation.publishing.TransactionPublisher
Closes any files or other system resources opened by this TransactionPublisher.
close() - Method in class org.prevayler.implementation.replication.ClientPublisher
 
configureClock(Clock) - Method in class org.prevayler.PrevaylerFactory
Configures the Clock that will be used by the created Prevayler.
configurePrevalenceBase(String) - Method in class org.prevayler.PrevaylerFactory
Configures the directory where the created Prevayler will read and write its .transactionLog and .snapshot files.
configurePrevalentSystem(Object) - Method in class org.prevayler.PrevaylerFactory
Configures the prevalent system that will be used by the Prevayler created by this factory.
configureReplicationClient(String, int) - Method in class org.prevayler.PrevaylerFactory
Reserved for future implementation.
configureReplicationServer(int) - Method in class org.prevayler.PrevaylerFactory
Reserved for future implementation.
configureSnapshotManager(SnapshotManager) - Method in class org.prevayler.PrevaylerFactory
Configures the SnapshotManager to be used by the Prevayler created by this factory.
configureTransactionFiltering(boolean) - Method in class org.prevayler.PrevaylerFactory
Determines whether the Prevayler created by this factory should filter out all Transactions that would throw a RuntimeException or Error if executed on the Prevalent System (default is true).
configureTransactionLogFileAgeThreshold(long) - Method in class org.prevayler.PrevaylerFactory
 
configureTransactionLogFileSizeThreshold(long) - Method in class org.prevayler.PrevaylerFactory
 
configureTransientMode(boolean) - Method in class org.prevayler.PrevaylerFactory
Determines whether the Prevayler created by this factory should be transient (transientMode = true) or persistent (transientMode = false).
create() - Method in class org.prevayler.PrevaylerFactory
Returns a Prevayler created according to what was defined by calls to the configuration methods above.
createCheckpointPrevayler(Serializable, String) - Static method in class org.prevayler.PrevaylerFactory
Creates a Prevayler that will execute Transactions WITHOUT writing them to disk.
createPrevayler(Serializable) - Static method in class org.prevayler.PrevaylerFactory
Creates a Prevayler that will use a directory called "PrevalenceBase" under the current directory to read and write its .snapshot and .transactionLog files.
createPrevayler(Serializable, String) - Static method in class org.prevayler.PrevaylerFactory
Creates a Prevayler that will use the given prevalenceBase directory to read and write its .snapshot and .transactionLog files.
createTransientPrevayler(Serializable) - Static method in class org.prevayler.PrevaylerFactory
Creates a Prevayler that will execute Transactions WITHOUT writing them to disk.
createTransientPrevayler(Serializable, String) - Static method in class org.prevayler.PrevaylerFactory
Deprecated. Use createCheckpointPrevayler() instead of this method. Deprecated since Prevayler2.00.001.

D

DEFAULT_REPLICATION_PORT - Static variable in class org.prevayler.PrevaylerFactory
 
deepCopy(Object, String) - Method in class org.prevayler.implementation.snapshot.SnapshotManager
 

E

execute(Transaction) - Method in interface org.prevayler.Prevayler
Executes the given Transaction on the prevalentSystem().
execute(Query) - Method in interface org.prevayler.Prevayler
Executes the given sensitiveQuery on the prevalentSystem().
execute(TransactionWithQuery) - Method in interface org.prevayler.Prevayler
Executes the given transactionWithQuery on the prevalentSystem().
execute(Transaction) - Method in class org.prevayler.implementation.PrevaylerImpl
 
execute(Query) - Method in class org.prevayler.implementation.PrevaylerImpl
 
execute(TransactionWithQuery) - Method in class org.prevayler.implementation.PrevaylerImpl
 
executeAndQuery(Object, Date) - Method in interface org.prevayler.TransactionWithQuery
Performs the necessary modifications on the given prevalentSystem and also returns an Object or throws an Exception.
executeOn(Object, Date) - Method in interface org.prevayler.Transaction
This method is called by Prevayler.execute(Transaction) to execute this Transaction on the given Prevalent System.

H

handleExceptionWhileCreating(IOException, File) - Method in class org.prevayler.implementation.logging.PersistentLogger
 
handleExceptionWhileWriting(IOException, File) - Method in class org.prevayler.implementation.logging.PersistentLogger
 

L

LiberalTransactionCensor - class org.prevayler.implementation.publishing.censorship.LiberalTransactionCensor.
 
LiberalTransactionCensor() - Constructor for class org.prevayler.implementation.publishing.censorship.LiberalTransactionCensor
 
log(Transaction, Date, Turn) - Method in class org.prevayler.implementation.logging.PersistentLogger
 
log(Transaction, Date, Turn) - Method in interface org.prevayler.implementation.logging.TransactionLogger
 
log(Transaction, Date, Turn) - Method in class org.prevayler.implementation.logging.TransientLogger
 

M

MachineClock - class org.prevayler.implementation.clock.MachineClock.
A Clock that uses the local machine clock (System.currentTimeMillis()) as its time source.
MachineClock() - Constructor for class org.prevayler.implementation.clock.MachineClock
 

N

NullSnapshotManager - class org.prevayler.implementation.snapshot.NullSnapshotManager.
 
NullSnapshotManager(Object, String) - Constructor for class org.prevayler.implementation.snapshot.NullSnapshotManager
 
notifySubscribers(Transaction, Date) - Method in class org.prevayler.implementation.publishing.AbstractPublisher
 

O

org.prevayler - package org.prevayler
 
org.prevayler.implementation - package org.prevayler.implementation
 
org.prevayler.implementation.clock - package org.prevayler.implementation.clock
 
org.prevayler.implementation.logging - package org.prevayler.implementation.logging
 
org.prevayler.implementation.publishing - package org.prevayler.implementation.publishing
 
org.prevayler.implementation.publishing.censorship - package org.prevayler.implementation.publishing.censorship
 
org.prevayler.implementation.replication - package org.prevayler.implementation.replication
 
org.prevayler.implementation.snapshot - package org.prevayler.implementation.snapshot
 

P

POBox - class org.prevayler.implementation.publishing.POBox.
An assyncronous buffer for transaction subscribers.
POBox(TransactionSubscriber) - Constructor for class org.prevayler.implementation.publishing.POBox
 
PausableClock - class org.prevayler.implementation.clock.PausableClock.
 
PausableClock(Clock) - Constructor for class org.prevayler.implementation.clock.PausableClock
 
PersistentLogger - class org.prevayler.implementation.logging.PersistentLogger.
A TransactionLogger that will write all transactions to .transactionLog files.
PersistentLogger(String, long, long) - Constructor for class org.prevayler.implementation.logging.PersistentLogger
 
Prevayler - interface org.prevayler.Prevayler.
Implementations of this interface can provide transparent persistence and replication to all Business Objects in a Prevalent System.
PrevaylerFactory - class org.prevayler.PrevaylerFactory.
Provides easy access to all Prevayler configurations and implementations available in this distribution.
PrevaylerFactory() - Constructor for class org.prevayler.PrevaylerFactory
 
PrevaylerImpl - class org.prevayler.implementation.PrevaylerImpl.
 
PrevaylerImpl(SnapshotManager, TransactionPublisher) - Constructor for class org.prevayler.implementation.PrevaylerImpl
Creates a new Prevayler
pause() - Method in class org.prevayler.implementation.clock.PausableClock
 
prevalentSystem() - Method in interface org.prevayler.Prevayler
Returns the Object which holds direct or indirect references to all other Business Objects in the system.
prevalentSystem() - Method in class org.prevayler.implementation.PrevaylerImpl
 
publish(Transaction) - Method in class org.prevayler.implementation.publishing.CentralPublisher
 
publish(Transaction) - Method in interface org.prevayler.implementation.publishing.TransactionPublisher
Publishes transaction to the subscribers synchronously.
publish(Transaction) - Method in class org.prevayler.implementation.replication.ClientPublisher
 

Q

Query - interface org.prevayler.Query.
Represents a query that can be executed on a Prevalent System.
query(Object, Date) - Method in interface org.prevayler.Query
 

R

readSnapshot(InputStream) - Method in class org.prevayler.implementation.snapshot.SnapshotManager
Deserializes and returns the object contained in snapshotFile.
readSnapshot(InputStream) - Method in class org.prevayler.implementation.snapshot.XmlSnapshotManager
 
realTime() - Method in class org.prevayler.implementation.clock.PausableClock
 
receive(Transaction, Date) - Method in class org.prevayler.implementation.publishing.POBox
 
receive(Transaction, Date) - Method in interface org.prevayler.implementation.publishing.TransactionSubscriber
 
recoveredPrevalentSystem() - Method in class org.prevayler.implementation.snapshot.SnapshotManager
 
recoveredVersion() - Method in class org.prevayler.implementation.snapshot.SnapshotManager
 
removeSubscriber(TransactionSubscriber) - Method in class org.prevayler.implementation.publishing.AbstractPublisher
 
removeSubscriber(TransactionSubscriber) - Method in interface org.prevayler.implementation.publishing.TransactionPublisher
Stops publishing future transactions to the given subscriber.
removeSubscriber(TransactionSubscriber) - Method in class org.prevayler.implementation.replication.ClientPublisher
 
resume() - Method in class org.prevayler.implementation.clock.PausableClock
 
run() - Method in class org.prevayler.implementation.publishing.POBox
 
run() - Method in class org.prevayler.implementation.replication.ServerListener
 

S

ServerListener - class org.prevayler.implementation.replication.ServerListener.
Reserved for future implementation.
ServerListener(TransactionPublisher, int) - Constructor for class org.prevayler.implementation.replication.ServerListener
 
SnapshotManager - class org.prevayler.implementation.snapshot.SnapshotManager.
Writes and reads snapshots to/from files.
SnapshotManager(Object, String) - Constructor for class org.prevayler.implementation.snapshot.SnapshotManager
 
StrictTransactionCensor - class org.prevayler.implementation.publishing.censorship.StrictTransactionCensor.
 
StrictTransactionCensor(SnapshotManager) - Constructor for class org.prevayler.implementation.publishing.censorship.StrictTransactionCensor
 
suffix() - Method in class org.prevayler.implementation.snapshot.SnapshotManager
Returns "snapshot", the default suffix/extension for snapshot files.
suffix() - Method in class org.prevayler.implementation.snapshot.XmlSnapshotManager
 

T

Transaction - interface org.prevayler.Transaction.
An atomic Transaction to be executed on a Prevalent System.
TransactionCensor - interface org.prevayler.implementation.publishing.censorship.TransactionCensor.
 
TransactionLogger - interface org.prevayler.implementation.logging.TransactionLogger.
 
TransactionPublisher - interface org.prevayler.implementation.publishing.TransactionPublisher.
 
TransactionSubscriber - interface org.prevayler.implementation.publishing.TransactionSubscriber.
 
TransactionTimestamp - class org.prevayler.implementation.TransactionTimestamp.
 
TransactionTimestamp(Transaction, Date) - Constructor for class org.prevayler.implementation.TransactionTimestamp
 
TransactionWithQuery - interface org.prevayler.TransactionWithQuery.
A Transaction that also returns a result or throws an Exception after executing.
TransientLogger - class org.prevayler.implementation.logging.TransientLogger.
 
TransientLogger() - Constructor for class org.prevayler.implementation.logging.TransientLogger
 
takeSnapshot() - Method in interface org.prevayler.Prevayler
Produces a complete serialized image of the underlying PrevalentSystem.
takeSnapshot() - Method in class org.prevayler.implementation.PrevaylerImpl
 
time() - Method in interface org.prevayler.Clock
Tells the time.
time() - Method in class org.prevayler.implementation.clock.BrokenClock
 
time() - Method in class org.prevayler.implementation.clock.MachineClock
 
time() - Method in class org.prevayler.implementation.clock.PausableClock
 
timestamp() - Method in class org.prevayler.implementation.TransactionTimestamp
 
transaction() - Method in class org.prevayler.implementation.TransactionTimestamp
 

U

update(TransactionSubscriber, long) - Method in class org.prevayler.implementation.logging.PersistentLogger
IMPORTANT: This method cannot be called while the log() method is being called in another thread.
update(TransactionSubscriber, long) - Method in interface org.prevayler.implementation.logging.TransactionLogger
 
update(TransactionSubscriber, long) - Method in class org.prevayler.implementation.logging.TransientLogger
 

W

writeSnapshot(Object, long) - Method in class org.prevayler.implementation.snapshot.NullSnapshotManager
 
writeSnapshot(Object, long) - Method in class org.prevayler.implementation.snapshot.SnapshotManager
 
writeSnapshot(Object, OutputStream) - Method in class org.prevayler.implementation.snapshot.SnapshotManager
Serializes prevalentSystem and writes it to snapshotFile.
writeSnapshot(Object, OutputStream) - Method in class org.prevayler.implementation.snapshot.XmlSnapshotManager
 

X

XmlSnapshotManager - class org.prevayler.implementation.snapshot.XmlSnapshotManager.
Writes and reads snapshots to/from XML files.
XmlSnapshotManager(Object, String) - Constructor for class org.prevayler.implementation.snapshot.XmlSnapshotManager
 

_

_clock - Variable in class org.prevayler.implementation.publishing.AbstractPublisher
 
_millis - Variable in class org.prevayler.implementation.clock.BrokenClock
 

A B C D E H L M N O P Q R S T U W X _

'Prevayler' is a trademark of Klaus Wuestefeld.
Copyleft 2001-2004 Klaus Wuestefeld.