com.caucho.env.deploy
Class DeployControllerService

java.lang.Object
  extended by com.caucho.env.service.AbstractResinSubSystem
      extended by com.caucho.env.deploy.DeployControllerService
All Implemented Interfaces:
ResinSubSystem

@Module
public class DeployControllerService
extends AbstractResinSubSystem

Deployment service for detecting changes in a controller, managed by tags.


Field Summary
static int START_PRIORITY
           
 
Fields inherited from interface com.caucho.env.service.ResinSubSystem
START_PRIORITY_CACHE_SERVICE, START_PRIORITY_CLASSLOADER, START_PRIORITY_CLUSTER_SERVICE, START_PRIORITY_DEFAULT, START_PRIORITY_ENV_SYSTEM, START_PRIORITY_NETWORK_CLUSTER
 
Constructor Summary
DeployControllerService()
           
 
Method Summary
 DeployTagItem addTag(java.lang.String tagName)
          Adds a tag
 void addTagListener(DeployTagListener listener)
          Adds a tag listener
 void addUpdateListener(DeployUpdateListener listener)
          Adds an update listener
static DeployControllerService createAndAddService()
           
static DeployControllerService getCurrent()
           
 int getStartPriority()
          Returns the start priority order for the deploy service.
 DeployTagItem getTagItem(java.lang.String tag)
          Returns the tag item
 java.util.Set<java.lang.String> getTagNames()
          Returns the tags in the deployment
 void removeTag(java.lang.String tagName)
          Removes a tag
 void removeTagListener(DeployTagListener listener)
          Removes a tag listener
 void removeUpdateListener(DeployUpdateListener listener)
          Removes an update listener
 void update(java.lang.String tag)
          Requests an update
 
Methods inherited from class com.caucho.env.service.AbstractResinSubSystem
destroy, getStopPriority, preCreate, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

START_PRIORITY

public static final int START_PRIORITY
See Also:
Constant Field Values
Constructor Detail

DeployControllerService

public DeployControllerService()
Method Detail

createAndAddService

public static DeployControllerService createAndAddService()

getCurrent

public static DeployControllerService getCurrent()

addTag

public DeployTagItem addTag(java.lang.String tagName)
Adds a tag


removeTag

public void removeTag(java.lang.String tagName)
Removes a tag


getTagNames

public java.util.Set<java.lang.String> getTagNames()
Returns the tags in the deployment


getTagItem

public DeployTagItem getTagItem(java.lang.String tag)
Returns the tag item


addTagListener

public void addTagListener(DeployTagListener listener)
Adds a tag listener


removeTagListener

public void removeTagListener(DeployTagListener listener)
Removes a tag listener


update

public void update(java.lang.String tag)
Requests an update


addUpdateListener

public void addUpdateListener(DeployUpdateListener listener)
Adds an update listener


removeUpdateListener

public void removeUpdateListener(DeployUpdateListener listener)
Removes an update listener


getStartPriority

public int getStartPriority()
Returns the start priority order for the deploy service. Currently, it has no dependencies, so it uses the start priority.

Specified by:
getStartPriority in interface ResinSubSystem
Overrides:
getStartPriority in class AbstractResinSubSystem