Package railo.runtime.type.scope

Examples of railo.runtime.type.scope.Cluster


  private void _doSetCluster() throws PageException {
   
    Struct entries = Caster.toStruct(getObject("admin",action,"entries"));
    Struct entry;
    Iterator<Object> it = entries.valueIterator();
    Cluster cluster = pageContext.clusterScope();
    while(it.hasNext()) {
      entry=Caster.toStruct(it.next());
      cluster.setEntry(
        new ClusterEntryImpl(
            KeyImpl.getInstance(Caster.toString(entry.get(KeyConstants._key))),
            Caster.toSerializable(entry.get(KeyConstants._value,null),null),
            Caster.toLongValue(entry.get(KeyConstants._time))
        )
      );
    }

    cluster.broadcast();
  }
View Full Code Here


    return pcl==null?0:pcl.count();
  }

  @Override
  public Cluster createClusterScope() throws PageException {
    Cluster cluster=null;
    try {
        if(Reflector.isInstaneOf(getClusterClass(), Cluster.class)){
          cluster=(Cluster) ClassUtil.loadInstance(
              getClusterClass(),
            ArrayUtil.OBJECT_EMPTY
            );
          cluster.init(this);
        }
        else if(Reflector.isInstaneOf(getClusterClass(), ClusterRemote.class)){
          ClusterRemote cb=(ClusterRemote) ClassUtil.loadInstance(
              getClusterClass(),
            ArrayUtil.OBJECT_EMPTY
View Full Code Here

TOP

Related Classes of railo.runtime.type.scope.Cluster

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.