code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
package edu.uci.ics.crawler4j.crawler.authentication;
import javax.swing.text.html.FormSubmitEvent.MethodType;
import java.net.MalformedURLException;
import java.net.URL;
/**
* Created by Avi Hayun on 11/23/2014.
*
* Abstract class containing authentication information needed to login into a user/password protecte... | Java |
package edu.uci.ics.crawler4j.crawler.authentication;
import javax.swing.text.html.FormSubmitEvent.MethodType;
import java.net.MalformedURLException;
/**
* Created by Avi Hayun on 11/25/2014.
*
* BasicAuthInfo contains the authentication information needed for BASIC authentication (extending AuthInfo which has all... | Java |
package edu.uci.ics.crawler4j.crawler.authentication;
import javax.swing.text.html.FormSubmitEvent.MethodType;
import java.net.MalformedURLException;
/**
* Created by Avi Hayun on 11/25/2014.
*
* FormAuthInfo contains the authentication information needed for FORM authentication (extending AuthInfo which has all c... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
package edu.uci.ics.crawler4j.util;
import edu.uci.ics.crawler4j.url.WebURL;
import java.util.HashSet;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by Avi Hayun on 9/22/2014.
* Net related Utils
*/
public class Net {
private static Pattern pattern = initial... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
package edu.uci.ics.crawler4j.parser;
/**
* Created by Avi on 8/19/2014.
*
* This Exception will be thrown whenever the parser tries to parse not allowed content<br>
* For example when the parser tries to parse binary content although the user configured it not to do it
*/
public class NotAllowedContentException ... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
package edu.uci.ics.crawler4j.parser;
public class ExtractedUrlAnchorPair {
private String href;
private String anchor;
private String tag;
public String getHref() {
return href;
}
public void setHref(String href) {
this.href = href;
}
public String getAnchor() {
return anchor;
}
p... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"; you may ... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java |
/**
* This class is adopted from Htmlunit with the following copyright:
*
* Copyright (c) 2002-2012 Gargoyle Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://ww... | Java |
package edu.uci.ics.crawler4j.url;
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
import org.apache.commons.compress.archivers.zip.ZipFile;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import ja... | Java |
package myschedule.service;
/**
* A service that provide init/start/stop/destroy interface.
*
* <p>
* Use {@link ServiceContainer} to auto manage the lifecycles.
*
* @author Zemian Deng
*/
public interface Service extends Initable {
void start();
void stop();
boolean isStarted();
}
| Java |
package myschedule.service;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
/**
* A in memory ConfigStore implementation.
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public class MemConfigStore extends AbstractService implements ConfigStore {
... | Java |
package myschedule.service;
/**
* A runtime exception that capture specific error code when problem occur during the application.
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public class ErrorCodeException extends RuntimeException {
/** serialVersionUID - long */
private static final long serialVersi... | Java |
package myschedule.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import myschedule.quartz.extra.SchedulerTemplate;
import org.quartz.Calendar;
import org.quartz.CalendarIntervalTrigger;
import org.quartz.CronTrigger;
import org.quartz.DailyTimeIntervalTrigger;
import org.quartz.Sch... | Java |
package myschedule.service;
import java.util.Properties;
import myschedule.quartz.extra.QuartzRuntimeException;
import myschedule.quartz.extra.SchedulerTemplate;
import org.quartz.impl.RemoteScheduler;
/**
* A service that wrap and extend quartz scheduler using SchedulerTemplate. This service will associate a conf... | Java |
package myschedule.service;
/**
* Error code defined for MySchedule use.
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public enum ErrorCode {
WEB_UI_PROBLEM,
DATA_ACCESS_PROBLEM,
SERVICE_PROBLEM,
SCRIPTING_PROBLEM,
SCHEDULER_SERIVCE_NOT_FOUND,
SCHEDULER_PROBLEM,
GENERAL_PROBLEM;
}
| Java |
package myschedule.service;
/**
* A tuple that hold any two objects.
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
* @param <A> item 1
* @param <B> item 2
*/
public class Tuple2<A, B> {
private A item1;
private B item2;
public Tuple2(A item1, B item2) {
this.item1 = item1;
this.item2 = item2;
}
... | Java |
package myschedule.service;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
/**
* A holder of map for all configIds to SchedulerServices.
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public class SchedulerContainer extends ServiceContainer {
// A map... | Java |
package myschedule.service;
/**
*
* A service that provide init/destroy interface.
*
* <p>
* Use {@link ServiceContainer} to auto manage the lifecycles.
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public interface Initable {
void init();
void destroy();
boolean isInited();
}
| Java |
package myschedule.service;
import java.util.Set;
/**
* A service to support config CRUD operations.
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public interface ConfigStore extends Service {
String create(String config);
String get(String id);
void delete(String id);
Set<String> getAllIds();
v... | Java |
package myschedule.service;
import java.io.PrintWriter;
import java.io.StringReader;
import java.io.StringWriter;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import ... | Java |
package myschedule.service;
import java.io.IOException;
import java.io.InputStream;
import java.io.Writer;
import java.util.Properties;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* A class to help load resource content within a ClassLoader (or inside a packaged... | Java |
package myschedule.service;
import java.util.ArrayList;
import java.util.List;
/**
* This container auto manage Initable or Service instance's lifecycle method calling together as part of Spring
* lifecycles. When Spring starts up, it calls all init(), then start(), and when Spring close, it calls all stop(),
* ... | Java |
package myschedule.service;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;
import org.apache.commons.io.IOUtils;
/**
* A file and directory based ConfigStore that use a single co... | Java |
package myschedule.service;
import java.util.concurrent.atomic.AtomicBoolean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* An abstract Service implementation that provided basic synchronized flags for started
* and initialized state. Subclass should use the initService/startService/stopService/d... | Java |
package myschedule.web;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* A servlet context listener to initialize and destroy application upon the webapp lifecycles.
*
* @auth... | Java |
package myschedule.web.session;
/**
* User session data.
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public class SessionData {
public static final String SESSION_DATA_KEY = "sessionData";
protected String scriptEngineName = "JavaScript"; // Default to JavaScript.
protected String currentSched... | Java |
package myschedule.web.session;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
* Storage of flash data. These will be reset when you getFlashData least once.
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public class FlashData {
public static final String FLASH_DATA_KE... | Java |
package myschedule.web.servlet;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* A holder for a viewName and dataMap that are used to render view.
*
* <p>This class also will h... | Java |
package myschedule.web.servlet;
import java.io.IOException;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* A... | Java |
package myschedule.web.servlet;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Process Http requests using a map of action paths to some callback handlers. Subclass may setup this handler
* mappings, and concentrate... | Java |
package myschedule.web.servlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* A callback filter apply to before and after Http request and response.
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public interface ActionFilter {
/** Return null if you w... | Java |
package myschedule.web.servlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* A simple ActionHandler implementation that will hide the Http request and response objects, and let subclass
* handle the {@link ViewData} instead. Any data added into the ViewData will... | Java |
package myschedule.web.servlet.app.filter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import lombok.Setter;
import myschedule.service.ErrorCodeException;
import myschedule.service.SchedulerContainer;
import myschedule.service.Sche... | Java |
package myschedule.web.servlet.app;
import myschedule.web.AppConfig;
import myschedule.web.servlet.ActionHandlerServlet;
import myschedule.web.servlet.app.filter.SessionDataFilter;
import myschedule.web.servlet.app.handler.DashboardHandlers;
import myschedule.web.servlet.app.handler.JobHandlers;
import myschedule.web.... | Java |
package myschedule.web.servlet.app.handler;
import java.util.Date;
import java.util.List;
import lombok.Data;
import myschedule.service.Tuple2;
import org.quartz.CalendarIntervalTrigger;
import org.quartz.CronTrigger;
import org.quartz.DailyTimeIntervalTrigger;
import org.quartz.SimpleTrigger;
import org.quartz.Trigge... | Java |
package myschedule.web.servlet.app.handler;
import lombok.Data;
public class DashboardData {
@Data
public static class SchedulerDetail {
private String configId;
private String initExceptionMessage;
private String initialized;
/** Problem when retrieving any of below fields */
private Boolean schedule... | Java |
package myschedule.web.servlet.app.handler;
import java.io.IOException;
import java.io.Writer;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Set;
import lombok.Getter;
import lombok.Setter;
import myschedule.quartz.extra.QuartzRuntimeExcep... | Java |
package myschedule.web.servlet.app.handler;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import lombok.Getter;
import lombok.Setter;
import myschedule.quartz.extra.QuartzRuntimeException;
import myschedule.quartz.extra.SchedulerTemplate;
import myschedule.service.... | Java |
package myschedule.web.servlet.app.handler;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
impo... | Java |
package myschedule.web.servlet.app.handler;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.script.Bindings;
import javax.script.ScriptEng... | Java |
package myschedule.web.servlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* A callback handler to process Http request and response.
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public interface ActionHandler {
public ViewData handleAction(String a... | Java |
package myschedule.web;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Properties;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.text.StrSubstitutor;
import org.slf4j.Logg... | Java |
package myschedule.web;
import java.io.File;
import java.util.Properties;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import lombok.Getter;
import myschedule.service.ConfigStore;
import myschedule.service.FileConfigStore;
import myschedule.service.Initable;
import myschedule.service.... | Java |
package unit.myschedule.quartz.extra.util;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
/**
* A easy file wrapper that used for writing test result.
*
* @author Zemian Deng <saltnlig... | Java |
package unit.myschedule.quartz.extra;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.quartz.JobDetail;
import org.quartz.JobKey;
import org.quartz.SchedulerException;
import org.quartz.SchedulerListener;
import org.quartz.Trigger;
import org.quartz.TriggerKey;
public class Result... | Java |
package unit.myschedule.quartz.extra;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.quartz.JobExecutionContext;
import org.quartz.Trigger;
import org.quartz.Trigger.CompletedExecutionInstruction;
import org.quartz.TriggerListener;
public class ResultTriggerListener implements Tr... | Java |
package unit.myschedule.quartz.extra;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobListener;
public class ResultJobListener implements JobListener {
public static Result result = new Res... | Java |
package myschedule.quartz.extra.job;
import java.io.FileReader;
import javax.script.Bindings;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobDetail;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutio... | Java |
package myschedule.quartz.extra.job;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* A simple quartz job that just log runtime information.
*
* <p>
* This job logs many job runtime information a... | Java |
package myschedule.quartz.extra.job;
import java.util.Arrays;
import myschedule.quartz.extra.util.ProcessUtils;
import myschedule.quartz.extra.util.ProcessUtils.BackgroundProcess;
import org.quartz.InterruptableJob;
import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobDetail;
import org.quartz.J... | Java |
package myschedule.quartz.extra;
import org.quartz.SchedulerException;
/**
* A main entry to start a scheduler as a tiny server. This program will block the main thread until user shutdown
* the JVM (eg: use CTRL+C).
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public class SchedulerMain {
public st... | Java |
package myschedule.quartz.extra;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Date;
import java.util.List... | Java |
package myschedule.quartz.extra;
import static org.quartz.CronScheduleBuilder.cronSchedule;
import static org.quartz.JobBuilder.newJob;
import static org.quartz.SimpleScheduleBuilder.simpleSchedule;
import static org.quartz.TriggerBuilder.newTrigger;
import java.util.ArrayList;
import java.util.Date;
import java.util.... | Java |
package myschedule.quartz.extra.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import org.slf4j.Logger;
import org.slf... | Java |
package myschedule.quartz.extra;
import java.util.List;
import javax.xml.parsers.ParserConfigurationException;
import org.quartz.JobDetail;
import org.quartz.simpl.CascadingClassLoadHelper;
import org.quartz.spi.ClassLoadHelper;
import org.quartz.spi.MutableTrigger;
import org.quartz.xml.XMLSchedulingDataProcessor;
/... | Java |
package myschedule.quartz.extra;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.MalformedURLException;
import java.net.URL;
import javax.script.Bindings;
import javax.script.Scri... | Java |
package myschedule.quartz.extra;
import java.io.InputStream;
import org.quartz.Scheduler;
/**
* Place any utility methods that would help programmer in using Quartz.
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public class QuartzExtraUtils {
/**
* Load job scheduling data xml using XMLSchedulingDat... | Java |
package myschedule.quartz.extra;
import org.quartz.SchedulerException;
/**
* Use to wrap Quartz's checked exception into RuntimeException.
*
* @see SchedulerTemplate
*
* @author Zemian Deng <saltnlight5@gmail.com>
*
*/
public class QuartzRuntimeException extends RuntimeException {
private static final long... | Java |
public abstract class Especie {
} | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.