Subversion Repositories XServices

Rev

Rev 70 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 70 Rev 87
Line 1... Line 1...
1
/*
1
/*
2
 *   Copyright 2011 Brian Rosenberger (Brutex Network)
2
 *   Copyright 2012 Brian Rosenberger (Brutex Network)
3
 *
3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with the License.
5
 *   you may not use this file except in compliance with the License.
6
 *   You may obtain a copy of the License at
6
 *   You may obtain a copy of the License at
7
 *
7
 *
Line 13... Line 13...
13
 *   See the License for the specific language governing permissions and
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
14
 *   limitations under the License.
15
 */
15
 */
16
package net.brutex.xservices.ws.impl;
16
package net.brutex.xservices.ws.impl;
Line 17... Line -...
17
 
-
 
Line 18... Line 17...
18
import static org.quartz.TriggerBuilder.newTrigger;
17
 
19
 
18
 
20
import java.util.ArrayList;
19
import java.util.ArrayList;
21
import java.util.GregorianCalendar;
20
import java.util.GregorianCalendar;
Line 35... Line 34...
35
import org.quartz.SimpleTrigger;
34
import org.quartz.SimpleTrigger;
36
import org.quartz.Trigger;
35
import org.quartz.Trigger;
37
import org.quartz.TriggerKey;
36
import org.quartz.TriggerKey;
38
import org.quartz.impl.StdSchedulerFactory;
37
import org.quartz.impl.StdSchedulerFactory;
39
import org.quartz.impl.matchers.GroupMatcher;
38
import org.quartz.impl.matchers.GroupMatcher;
40
 
-
 
-
 
39
import static org.quartz.TriggerBuilder.*;
41
import net.brutex.xservices.types.ScheduledJob;
40
import net.brutex.xservices.types.ScheduledJob;
-
 
41
import net.brutex.xservices.types.SchedulerStatisticsType;
42
import net.brutex.xservices.util.BrutexNamespaces;
42
import net.brutex.xservices.util.BrutexNamespaces;
43
import net.brutex.xservices.util.JobWrapper;
43
import net.brutex.xservices.util.JobWrapper;
44
import net.brutex.xservices.ws.JobService;
44
import net.brutex.xservices.ws.JobService;
45
import net.brutex.xservices.ws.XServicesFault;
45
import net.brutex.xservices.ws.XServicesFault;
Line 146... Line 146...
146
			e.printStackTrace();
146
			e.printStackTrace();
147
			throw new XServicesFault(e);
147
			throw new XServicesFault(e);
148
		}
148
		}
149
	}
149
	}
Line -... Line 150...
-
 
150
 
-
 
151
 
-
 
152
	public SchedulerStatisticsType getStatistics() throws XServicesFault {
-
 
153
		try {
-
 
154
			Scheduler scheduler = StdSchedulerFactory.getDefaultScheduler();
-
 
155
			return new SchedulerStatisticsType(scheduler);
-
 
156
		} catch (SchedulerException e) {
-
 
157
			throw new XServicesFault(e);
-
 
158
		}
-
 
159
	}
150
 
160