All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mdk_discovery._StaticRoutesActor Maven / Gradle / Ivy

There is a newer version: 2.0.37
Show newest version
/* Quark 1.0.452 run at 2016-11-10 18:39:58.222591 */
package mdk_discovery;

/**
 * Discovery actor for hard-coded static routes.
 */
public class _StaticRoutesActor implements DiscoverySource, io.datawire.quark.runtime.QObject {
    public static quark.reflect.Class mdk_discovery__StaticRoutesActor_ref = datawire_mdk_md.Root.mdk_discovery__StaticRoutesActor_md;
    public mdk_runtime.actors.Actor _subscriber;
    public java.util.ArrayList _knownNodes;
    public _StaticRoutesActor(mdk_runtime.actors.Actor subscriber, java.util.ArrayList knownNodes) {
        (this)._subscriber = subscriber;
        (this)._knownNodes = knownNodes;
    }
    public void onStart(mdk_runtime.actors.MessageDispatcher dispatcher) {
        Integer idx = 0;
        while ((idx) < (((this)._knownNodes).size())) {
            (dispatcher).tell(this, new NodeActive(((this)._knownNodes).get(idx)), (this)._subscriber);
            idx = (idx) + (1);
        }
    }
    public void onMessage(mdk_runtime.actors.Actor origin, Object message) {}
    public void onStop() {}
    public String _getClass() {
        return "mdk_discovery._StaticRoutesActor";
    }
    public Object _getField(String name) {
        if ((name)==("_subscriber") || ((Object)(name) != null && ((Object) (name)).equals("_subscriber"))) {
            return (this)._subscriber;
        }
        if ((name)==("_knownNodes") || ((Object)(name) != null && ((Object) (name)).equals("_knownNodes"))) {
            return (this)._knownNodes;
        }
        return null;
    }
    public void _setField(String name, Object value) {
        if ((name)==("_subscriber") || ((Object)(name) != null && ((Object) (name)).equals("_subscriber"))) {
            (this)._subscriber = (mdk_runtime.actors.Actor) (value);
        }
        if ((name)==("_knownNodes") || ((Object)(name) != null && ((Object) (name)).equals("_knownNodes"))) {
            (this)._knownNodes = (java.util.ArrayList) (value);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy