public class

PropDaemon

extends Prop
java.lang.Object
   ↳ edu.stanford.junction.api.activity.JunctionExtra
     ↳ edu.stanford.junction.props2.Prop
       ↳ edu.stanford.junction.props2.PropDaemon

Summary

[Expand]
Inherited Constants
From class edu.stanford.junction.props2.Prop
Fields
protected long syncInterval
[Expand]
Inherited Fields
From class edu.stanford.junction.props2.Prop
Public Constructors
PropDaemon(String propName, IPropState state, long seqNum)
PropDaemon(String propName)
Public Methods
static void main(String[] args)
Conveniance runner for PropDaemon Expects two arguments: junction-url propName
IProp newFresh()
Protected Methods
void handleHello(JSONObject msg)
Slightly modify the behaviour of handleHello so that we don't request sync on every hello message we receive.
void handleReceivedOp(JSONObject opMsg)
Ignore state operations.
long helloInterval()
IPropState reifyState(JSONObject obj)
long syncRequestInterval()
[Expand]
Inherited Methods
From class edu.stanford.junction.props2.Prop
From class edu.stanford.junction.api.activity.JunctionExtra
From class java.lang.Object
From interface edu.stanford.junction.props2.IProp

Fields

protected long syncInterval

Public Constructors

public PropDaemon (String propName, IPropState state, long seqNum)

public PropDaemon (String propName)

Public Methods

public static void main (String[] args)

Conveniance runner for PropDaemon Expects two arguments: junction-url propName

public IProp newFresh ()

Protected Methods

protected void handleHello (JSONObject msg)

Slightly modify the behaviour of handleHello so that we don't request sync on every hello message we receive.

protected void handleReceivedOp (JSONObject opMsg)

Ignore state operations.

protected long helloInterval ()

protected IPropState reifyState (JSONObject obj)

protected long syncRequestInterval ()