Package com.bleujin.framework.db.servant

Examples of com.bleujin.framework.db.servant.ServantChannel


            Configuration[] configOfServant = config.getChildren("extra-servant.configured-object");
            ExtraServant eservant = null;

            // None Channel...
            if (configOfServant == null || configOfServant.length <= 0) {
                echannel = new ServantChannel(new NoneServant());
            } else {
                for (int i = 0; i < configOfServant.length; i++) {
                    if (i == 0) {
                        eservant = (ExtraServant) InstanceCreator.createConfiguredInstance(configOfServant[i]);
                        echannel = new ServantChannel(eservant);
                        eservant.setChannel(echannel);
                    } else {
                        ExtraServant nextServant = (ExtraServant) InstanceCreator.createConfiguredInstance(configOfServant[i]);
                        eservant.setNext(nextServant);
                        eservant = nextServant;
View Full Code Here


    }

    public DBController(String name, DBManager dbm, ExtraServant servant) {
        this.name = name;
        this.dbm = dbm;
        this.echannel = new ServantChannel(servant);
        servant.setChannel(this.echannel) ;
    }
View Full Code Here

   
    // FOR TEST
    public synchronized void changeServant(ExtraServant servant) {
      this.echannel.stopServant() ;
      this.echannel = new ServantChannel(servant);
        servant.setChannel(this.echannel) ;
        this.echannel.startWorker() ;
    }
View Full Code Here

            Configuration[] configOfServant = config.getChildren("extra-servant.configured-object");
            ExtraServant eservant = null;

            // None Channel...
            if (configOfServant == null || configOfServant.length <= 0) {
                echannel = new ServantChannel(new NoneServant());
            } else {
                for (int i = 0; i < configOfServant.length; i++) {
                    if (i == 0) {
                        eservant = (ExtraServant) InstanceCreator.createConfiguredInstance(configOfServant[i]);
                        echannel = new ServantChannel(eservant);
                        eservant.setChannel(echannel);
                    } else {
                        ExtraServant nextServant = (ExtraServant) InstanceCreator.createConfiguredInstance(configOfServant[i]);
                        eservant.setNext(nextServant);
                        eservant = nextServant;
View Full Code Here

    }

    public DBController(String name, DBManager dbm, ExtraServant servant) {
        this.name = name;
        this.dbm = dbm;
        this.echannel = new ServantChannel(servant);
        servant.setChannel(this.echannel) ;
    }
View Full Code Here

   
    // FOR TEST
    public synchronized void changeServant(ExtraServant servant) {
      this.echannel.stopServant() ;
      this.echannel = new ServantChannel(servant);
        servant.setChannel(this.echannel) ;
        this.echannel.startWorker() ;
    }
View Full Code Here

TOP

Related Classes of com.bleujin.framework.db.servant.ServantChannel

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.