1 17 18 19 20 package org.apache.lenya.cms.task; 21 22 import org.apache.avalon.framework.parameters.Parameterizable; 23 24 29 public interface Task extends Parameterizable { 30 31 String NAMESPACE = "http://apache.org/cocoon/lenya/task/1.0"; 32 String DEFAULT_PREFIX = "task"; 33 int SUCCESS = 0; 34 int FAILURE = 1; 35 36 40 String PARAMETER_SERVLET_CONTEXT = "servlet-context"; 41 42 46 String PARAMETER_SERVER_URI = "server-uri"; 47 48 52 String PARAMETER_SERVER_PORT = "server-port"; 53 54 58 String PARAMETER_CONTEXT_PREFIX = "context-prefix"; 59 60 64 String PARAMETER_PUBLICATION_ID = "publication-id"; 65 66 73 void execute(String servletContextPath) throws ExecutionException; 74 75 80 void setLabel(String label); 81 82 86 int getResult(); 87 } 88 | Popular Tags |