01: /*
02: * Copyright 2006 Luca Garulli (luca.garulli@assetdata.it)
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.romaframework.aspect.scheduler;
18:
19: import java.util.List;
20: import java.util.Map;
21:
22: import org.romaframework.core.aspect.Aspect;
23:
24: /**
25: * Scheduler Aspect behavior interface.
26: */
27: public interface SchedulerAspect extends Aspect {
28: public static final String NAME = "scheduler";
29:
30: public abstract void schedule(SchedulerEvent iTrigger)
31: throws SchedulerException;
32:
33: public abstract void unSchedule(SchedulerEvent iTrigger)
34: throws SchedulerException;
35:
36: public abstract void executeNow(SchedulerEvent iTrigger)
37: throws SchedulerException;
38:
39: public abstract void pauseJob(SchedulerEvent iTrigger)
40: throws SchedulerException;
41:
42: public abstract void unpauseJob(SchedulerEvent iTrigger)
43: throws SchedulerException;
44:
45: public abstract String getLastEventExcecution(String name);
46:
47: public abstract String getNextEventExcecution(String name);
48:
49: public abstract void setJobsImplementation(
50: Map<String, Object> jobsImplementation);
51:
52: public abstract Map<String, Object> getJobsImplementation();
53:
54: public abstract List<String> getImplementationsList();
55: }
|