Package org.apache.jetspeed.daemon

Examples of org.apache.jetspeed.daemon.Daemon


    */
    public Daemon getDaemon( DaemonEntry entry ) throws DaemonException {

        //FIX ME: before instantiating a daemon ... find out if it is already setup
       
        Daemon daemon = (Daemon)this.daemons.get( entry );
       
        if( daemon != null ) {
            return daemon;
        } else {
            logger.info( "Creating daemon: " + entry.getName() );
        }
       
        try {

            daemon = (Daemon)Class.forName( entry.getClassname() ).newInstance();

            DaemonConfig dc = new DaemonConfig();
           
            daemon.init( dc, entry );
           
            this.daemons.put( entry, daemon );
           
            return daemon;
           
View Full Code Here


    /**
    */
    public int getStatus(DaemonEntry entry) {

        try {
            Daemon daemon = this.getDaemon(entry);
            return daemon.getStatus();
        } catch (DaemonException e) {
            logger.error("Exception",  e);
            return Daemon.STATUS_UNKNOWN;
        }
    }
View Full Code Here

    Get the last known result of the given DaemonEntry's processing
    */
    public int getResult(DaemonEntry entry) {

        try {
            Daemon daemon = this.getDaemon(entry);
            return daemon.getResult();
        } catch (DaemonException e) {
            logger.error("Exception",  e);
            return Daemon.RESULT_UNKNOWN;
        }
       
View Full Code Here

    Get the last known message of the given DaemonEntry's processing
    */
    public String getMessage( DaemonEntry entry ) {

        try {
            Daemon daemon = this.getDaemon(entry);
            return daemon.getMessage();
        } catch (DaemonException e) {
            logger.error("Exception",  e);
            return null;
        }       
    }
View Full Code Here

    */
    public Daemon getDaemon( DaemonEntry entry ) throws DaemonException {

        //FIX ME: before instantiating a daemon ... find out if it is already setup
       
        Daemon daemon = (Daemon)this.daemons.get( entry );
       
        if( daemon != null ) {
            return daemon;
        } else {
            logger.info( "Creating daemon: " + entry.getName() );
        }
       
        try {

            daemon = (Daemon)Class.forName( entry.getClassname() ).newInstance();

            DaemonConfig dc = new DaemonConfig();
           
            daemon.init( dc, entry );
           
            this.daemons.put( entry, daemon );
           
            return daemon;
           
View Full Code Here

    /**
    */
    public int getStatus(DaemonEntry entry) {

        try {
            Daemon daemon = this.getDaemon(entry);
            return daemon.getStatus();
        } catch (DaemonException e) {
            logger.error("Exception",  e);
            return Daemon.STATUS_UNKNOWN;
        }
    }
View Full Code Here

    Get the last known result of the given DaemonEntry's processing
    */
    public int getResult(DaemonEntry entry) {

        try {
            Daemon daemon = this.getDaemon(entry);
            return daemon.getResult();
        } catch (DaemonException e) {
            logger.error("Exception",  e);
            return Daemon.RESULT_UNKNOWN;
        }
       
View Full Code Here

    Get the last known message of the given DaemonEntry's processing
    */
    public String getMessage( DaemonEntry entry ) {

        try {
            Daemon daemon = this.getDaemon(entry);
            return daemon.getMessage();
        } catch (DaemonException e) {
            logger.error("Exception",  e);
            return null;
        }       
    }
View Full Code Here

    */
    public Daemon getDaemon( DaemonEntry entry ) throws DaemonException {

        //FIX ME: before instantiating a daemon ... find out if it is already setup
       
        Daemon daemon = (Daemon)this.daemons.get( entry );
       
        if( daemon != null ) {
            return daemon;
        } else {
            Log.info( "Creating daemon: " + entry.getName() );
        }
       
        try {

            daemon = (Daemon)Class.forName( entry.getClassname() ).newInstance();

            DaemonConfig dc = new DaemonConfig();
           
            daemon.init( dc, entry );
           
            this.daemons.put( entry, daemon );
           
            return daemon;
           
View Full Code Here

    /**
    */
    public int getStatus(DaemonEntry entry) {

        try {
            Daemon daemon = this.getDaemon(entry);
            return daemon.getStatus();
        } catch (DaemonException e) {
            Log.error(e);
            return Daemon.STATUS_UNKNOWN;
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.daemon.Daemon

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.