mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
feat: HttpCSInitializer
This commit is contained in:
parent
68a9cc52e2
commit
0c8e339140
@ -1,7 +1,6 @@
|
|||||||
package tech.powerjob.remote.framework.cs;
|
package tech.powerjob.remote.framework.cs;
|
||||||
|
|
||||||
import tech.powerjob.remote.framework.actor.ActorInfo;
|
import tech.powerjob.remote.framework.actor.ActorInfo;
|
||||||
import tech.powerjob.remote.framework.actor.HandlerInfo;
|
|
||||||
import tech.powerjob.remote.framework.transporter.Transporter;
|
import tech.powerjob.remote.framework.transporter.Transporter;
|
||||||
|
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
|
@ -15,6 +15,18 @@
|
|||||||
<maven.compiler.source>8</maven.compiler.source>
|
<maven.compiler.source>8</maven.compiler.source>
|
||||||
<maven.compiler.target>8</maven.compiler.target>
|
<maven.compiler.target>8</maven.compiler.target>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
|
||||||
|
<powerjob-remote-framework.version>4.2.0</powerjob-remote-framework.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>tech.powerjob</groupId>
|
||||||
|
<artifactId>powerjob-remote-framework</artifactId>
|
||||||
|
<version>${powerjob-remote-framework.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -0,0 +1,43 @@
|
|||||||
|
package tech.powerjob.remote.http;
|
||||||
|
|
||||||
|
import tech.powerjob.remote.framework.actor.ActorInfo;
|
||||||
|
import tech.powerjob.remote.framework.cs.CSInitializer;
|
||||||
|
import tech.powerjob.remote.framework.cs.CSInitializerConfig;
|
||||||
|
import tech.powerjob.remote.framework.transporter.Transporter;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HttpCSInitializer
|
||||||
|
*
|
||||||
|
* @author tjq
|
||||||
|
* @since 2022/12/31
|
||||||
|
*/
|
||||||
|
public class HttpCSInitializer implements CSInitializer {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String type() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init(CSInitializerConfig config) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Transporter buildTransporter() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void bindHandlers(List<ActorInfo> actorInfos) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void close() throws IOException {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package tech.powerjob.remote.http;
|
||||||
|
|
||||||
|
import tech.powerjob.remote.framework.transporter.Protocol;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HttpProtocol
|
||||||
|
*
|
||||||
|
* @author tjq
|
||||||
|
* @since 2022/12/31
|
||||||
|
*/
|
||||||
|
public class HttpProtocol implements Protocol {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String name() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user