Package railo.commons.lang

Examples of railo.commons.lang.SerializableObject


  public int doStartTag() throws PageException  {
    return EVAL_BODY_BUFFERED;
  }
 
  private void _execute() throws Exception   {
      Object monitor=new SerializableObject();
     
      String command="";
      if(name==null) {
        if(StringUtil.isEmpty(body)) {
          required("execute", "name", name);
          required("execute", "arguments", arguments);
        }
        else command=body;
      }
      else {
        if(arguments==null)command=name;
        else command=name+arguments;
      }


      _Execute execute=new _Execute(pageContext, monitor, command, outputfile, variable, errorFile, errorVariable);
     
      //if(timeout<=0)execute._run();
      //else {
      execute.start();
      if(timeout>0){
        try {
              synchronized(monitor) {
                monitor.wait(timeout);
              }
          }
        finally {
          execute.abort(terminateOnTimeout);
          }
View Full Code Here


        else if(type==TYPE_SYNCmap=new SyncMap<Collection.Key, Object>(new HashMapPro<Collection.Key,Object>());
        else             map=new SyncMap<Collection.Key,Object>();
      */
      if(type==TYPE_LINKED)    map=new SyncMap<Collection.Key, Object>(new LinkedHashMapPro<Collection.Key,Object>(initialCapacity));
      else if(type==TYPE_WEAKEDmap=new SyncMap<Collection.Key, Object>(new WeakHashMapPro<Collection.Key,Object>(initialCapacity));
      else if(type==TYPE_SOFTmap=new SyncMap<Collection.Key, Object>(new MapProWrapper<Collection.Key, Object>(new ReferenceMap(ReferenceMap.HARD,ReferenceMap.SOFT,initialCapacity,0.75f),new SerializableObject()));
        //else if(type==TYPE_SYNC)  map=new ConcurrentHashMapPro<Collection.Key,Object>);
        else             map=MapFactory.getConcurrentMap(initialCapacity);//new ConcurrentHashMapPro<Collection.Key,Object>();
    }
View Full Code Here

          MailException me = new MailException(e.getMessage());
          me.setStackTrace(e.getStackTrace());
          throw me;
        }
        try {
                SerializableObject lock = new SerializableObject();
                SMTPSender sender=new SMTPSender(lock,msgSess,server.getHostName(),server.getPort(),_username,_password);
                sender.start();
                SystemUtil.wait(lock, _timeout);
               
                if(!sender.hasSended()) {
View Full Code Here

TOP

Related Classes of railo.commons.lang.SerializableObject

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.