Subversion Repositories XServices

Rev

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

Rev 87 Rev 97
Line 1... Line 1...
1
/*
1
/*
2
 *   Copyright 2012 Brian Rosenberger (Brutex Network)
2
 *   Copyright 2011 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 -... Line 17...
-
 
17
 
Line 17... Line 18...
17
 
18
import static org.quartz.TriggerBuilder.newTrigger;
18
 
19
 
19
import java.util.ArrayList;
20
import java.util.ArrayList;
20
import java.util.GregorianCalendar;
21
import java.util.GregorianCalendar;
Line 34... Line 35...
34
import org.quartz.SimpleTrigger;
35
import org.quartz.SimpleTrigger;
35
import org.quartz.Trigger;
36
import org.quartz.Trigger;
36
import org.quartz.TriggerKey;
37
import org.quartz.TriggerKey;
37
import org.quartz.impl.StdSchedulerFactory;
38
import org.quartz.impl.StdSchedulerFactory;
38
import org.quartz.impl.matchers.GroupMatcher;
39
import org.quartz.impl.matchers.GroupMatcher;
39
import static org.quartz.TriggerBuilder.*;
-
 
-
 
40
 
40
import net.brutex.xservices.types.ScheduledJob;
41
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 150... Line -...
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
	}
-
 
160
 
150