You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/10/23 06:41:59 UTC

[shardingsphere-elasticjob] branch master updated: Remove useless ErrorHandlerConfiguration (#1646)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git


The following commit(s) were added to refs/heads/master by this push:
     new d6dbd78  Remove useless ErrorHandlerConfiguration (#1646)
d6dbd78 is described below

commit d6dbd784f831df11f1c32e5d6892f2329a1f89b1
Author: Liang Zhang <te...@163.com>
AuthorDate: Fri Oct 23 14:41:50 2020 +0800

    Remove useless ErrorHandlerConfiguration (#1646)
---
 .../error/handler/ErrorHandlerConfiguration.java   | 26 -----------
 .../error/handler/email/EmailConfiguration.java    | 52 ----------------------
 2 files changed, 78 deletions(-)

diff --git a/elasticjob-error-handler/elasticjob-error-handler-spi/src/main/java/org/apache/shardingsphere/elasticjob/error/handler/ErrorHandlerConfiguration.java b/elasticjob-error-handler/elasticjob-error-handler-spi/src/main/java/org/apache/shardingsphere/elasticjob/error/handler/ErrorHandlerConfiguration.java
deleted file mode 100644
index 566939e..0000000
--- a/elasticjob-error-handler/elasticjob-error-handler-spi/src/main/java/org/apache/shardingsphere/elasticjob/error/handler/ErrorHandlerConfiguration.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * 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 not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.elasticjob.error.handler;
-
-import org.apache.shardingsphere.elasticjob.api.JobExtraConfiguration;
-
-/**
- * Error handler configuration.
- */
-public interface ErrorHandlerConfiguration extends JobExtraConfiguration {
-}
diff --git a/elasticjob-error-handler/elasticjob-error-handler-type/elasticjob-error-handler-email/src/main/java/org/apache/shardingsphere/elasticjob/error/handler/email/EmailConfiguration.java b/elasticjob-error-handler/elasticjob-error-handler-type/elasticjob-error-handler-email/src/main/java/org/apache/shardingsphere/elasticjob/error/handler/email/EmailConfiguration.java
deleted file mode 100644
index 6f851e7..0000000
--- a/elasticjob-error-handler/elasticjob-error-handler-type/elasticjob-error-handler-email/src/main/java/org/apache/shardingsphere/elasticjob/error/handler/email/EmailConfiguration.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * 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 not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *  
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.elasticjob.error.handler.email;
-
-import lombok.Getter;
-import lombok.RequiredArgsConstructor;
-import org.apache.shardingsphere.elasticjob.error.handler.ErrorHandlerConfiguration;
-
-/**
- * Job error handler configuration for send error message via email.
- */
-@RequiredArgsConstructor
-@Getter
-public final class EmailConfiguration implements ErrorHandlerConfiguration {
-    
-    private final String host;
-    
-    private final int port;
-    
-    private final String username;
-    
-    private final String password;
-    
-    private final boolean useSsl;
-    
-    private final String subject;
-    
-    private final String from;
-    
-    private final String to;
-    
-    private final String cc;
-    
-    private final String bcc;
-    
-    private final boolean debug;
-}