org.ow2.jasmine.jadort.service.action
Class ModJKWorkerAction

java.lang.Object
  extended by org.ow2.jasmine.jadort.service.action.AbstractAction
      extended by org.ow2.jasmine.jadort.service.action.WorkerAction
          extended by org.ow2.jasmine.jadort.service.action.ModJKWorkerAction

public class ModJKWorkerAction
extends WorkerAction

Dummy worker action, only does internal calls.

Author:
Malek Chahine, Remy Bresson, S. Ali Tokmen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ow2.jasmine.jadort.service.action.WorkerAction
WorkerAction.State
 
Constructor Summary
protected ModJKWorkerAction(org.ow2.jasmine.jadort.api.entities.topology.WorkerBean worker)
           
 
Method Summary
 void disable()
          Disable worker.
 void enable()
          Enable worker.
 WorkerAction.State getState()
           
protected  void refreshBalancerAndMember()
           
 
Methods inherited from class org.ow2.jasmine.jadort.service.action.WorkerAction
getConstructor, getWorkerAction, newInstance
 
Methods inherited from class org.ow2.jasmine.jadort.service.action.AbstractAction
appendToLog, flushLog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModJKWorkerAction

protected ModJKWorkerAction(org.ow2.jasmine.jadort.api.entities.topology.WorkerBean worker)
Method Detail

refreshBalancerAndMember

protected void refreshBalancerAndMember()
                                 throws JkConnectionException
Throws:
JkConnectionException

enable

public void enable()
            throws java.lang.Exception
Description copied from class: WorkerAction
Enable worker. When a worker is enabled, it redirects requests to the target server.

To disable a worker, call WorkerAction.disable() .

Specified by:
enable in class WorkerAction
Throws:
java.lang.Exception

disable

public void disable()
             throws java.lang.Exception
Description copied from class: WorkerAction
Disable worker. When a worker is disabled, it redirects requests to the server that it links to if the client has a valid session on the target server.

To enable a disabled worker, call WorkerAction.enable() .

Specified by:
disable in class WorkerAction
Throws:
java.lang.Exception

getState

public WorkerAction.State getState()
                            throws java.lang.Exception
Specified by:
getState in class WorkerAction
Returns:
The current worker state.
Throws:
java.lang.Exception


Copyright © 2009 OW2 Consortium. All Rights Reserved.