-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RunRecordCorrectorService and AuditLogSubscriberService
- Loading branch information
Showing
8 changed files
with
222 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
...rc/main/java/io/cdap/cdap/internal/app/runtime/distributed/AppFabricProcessorManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Copyright © 2015 Cask Data, 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://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 io.cdap.cdap.internal.app.runtime.distributed; | ||
|
||
import ch.qos.logback.classic.Level; | ||
import ch.qos.logback.classic.LoggerContext; | ||
import com.google.inject.Inject; | ||
import com.google.inject.name.Named; | ||
import io.cdap.cdap.common.conf.CConfiguration; | ||
import io.cdap.cdap.common.conf.Constants; | ||
import io.cdap.cdap.common.conf.Constants.AppFabric; | ||
import io.cdap.cdap.common.conf.Constants.Service; | ||
import io.cdap.cdap.common.twill.AbstractMasterServiceManager; | ||
import io.cdap.cdap.common.twill.MasterServiceManager; | ||
import io.cdap.cdap.common.zookeeper.election.LeaderElectionInfoService; | ||
import io.cdap.cdap.proto.Containers; | ||
import io.cdap.cdap.proto.SystemServiceLiveInfo; | ||
import java.net.InetAddress; | ||
import java.util.Collections; | ||
import java.util.HashMap; | ||
import java.util.Iterator; | ||
import java.util.Map; | ||
import java.util.Set; | ||
import java.util.SortedMap; | ||
import java.util.concurrent.TimeUnit; | ||
import javax.annotation.Nullable; | ||
import org.apache.twill.api.TwillRunner; | ||
import org.apache.twill.api.logging.LogEntry; | ||
import org.apache.twill.discovery.DiscoveryServiceClient; | ||
import org.slf4j.ILoggerFactory; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
/** | ||
* App Fabric Processor Service Management in Distributed Mode. | ||
*/ | ||
public class AppFabricProcessorManager extends AbstractMasterServiceManager { | ||
|
||
@Inject | ||
AppFabricProcessorManager(CConfiguration cConf, TwillRunner twillRunner, | ||
DiscoveryServiceClient discoveryClient) { | ||
super(cConf, discoveryClient, Constants.Service.APP_FABRIC_PROCESSOR, twillRunner); | ||
} | ||
|
||
@Override | ||
public String getDescription() { | ||
return AppFabric.PROCESSOR_DESCRIPTION; | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...in/java/io/cdap/cdap/internal/app/runtime/monitor/NonHadoopAppFabricProcessorManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright © 2019 Cask Data, 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://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 io.cdap.cdap.internal.app.runtime.monitor; | ||
|
||
import com.google.inject.Inject; | ||
import io.cdap.cdap.common.conf.CConfiguration; | ||
import io.cdap.cdap.common.conf.Constants; | ||
import io.cdap.cdap.common.twill.AbstractMasterServiceManager; | ||
import org.apache.twill.api.TwillRunner; | ||
import org.apache.twill.discovery.DiscoveryServiceClient; | ||
|
||
/** | ||
* Service for managing app fabric processor service. | ||
*/ | ||
public class NonHadoopAppFabricProcessorManager extends AbstractMasterServiceManager { | ||
|
||
@Inject | ||
NonHadoopAppFabricProcessorManager(CConfiguration cConf, DiscoveryServiceClient discoveryClient, | ||
TwillRunner twillRunner) { | ||
super(cConf, discoveryClient, Constants.Service.APP_FABRIC_PROCESSOR, twillRunner); | ||
} | ||
|
||
@Override | ||
public String getDescription() { | ||
return Constants.AppFabric.PROCESSOR_DESCRIPTION; | ||
} | ||
} |
Oops, something went wrong.