ostore.inner
Class FakeInner
java.lang.Object
|
+--ostore.inner.FakeInner
- All Implemented Interfaces:
- EventHandlerIF, ProfilableIF, SingleThreadedEventHandlerIF
- public class FakeInner
- extends Object
- implements SingleThreadedEventHandlerIF, EventHandlerIF, ProfilableIF
The "business rules" of the inner ring. This class is actually
misnamed; the original idea was that this class would be like the real
inner ring, but just run on one node. Instead, it now uses another
class, the ostore.agree
package, to do agreement, and this
class itself just handles the logic of the inner ring--what DB people
would call the business rules. For example, it knows what steps to take
to accept and apply an update, and it lets the Agreement stage decide
whether or not to commit the change.
- Version:
- $Id: FakeInner.java,v 1.128 2004/05/13 20:14:10 hweather Exp $
- Author:
- Sean C. Rhea
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ring_init_success_msg
protected RingInitSuccess ring_init_success_msg
FakeInner
public FakeInner()
init
public void init(ConfigDataIF config)
throws Exception
- Specified by:
init
in interface EventHandlerIF
Exception
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface EventHandlerIF
Exception
profileSize
public int profileSize()
- Specified by:
profileSize
in interface ProfilableIF
current_date
public final Date current_date()
handleEvent
public void handleEvent(QueueElementIF item)
throws EventHandlerException
- Specified by:
handleEvent
in interface EventHandlerIF
EventHandlerException
handleEvents
public void handleEvents(QueueElementIF[] items)
throws EventHandlerException
- Specified by:
handleEvents
in interface EventHandlerIF
EventHandlerException