@Mojo(name="clientandserver",
defaultPhase=GENERATE_SOURCES)
public class JRpcGenerator
extends JRpcGeneratorBase
Both the client and server stub(s) to the RPC program(s) specified in the x-file to be processed are generated alongside the XDR datatype classes.
Possible parameters are described in the base class JrpcgenGeneratorBase.
Sample configuration:
<plugin >
<groupId >org.acplt.remotetea </groupId >
<artifactId >remotetea-maven-plugin </artifactId >
<version >1.1.6 </version >
<executions >
<execution >
<id >jrpcgen </id >
<goals >
<goal >clientandserver </goal >
</goals >
<configuration >
<xFile >src/main/resources/bellamso_tracelog.x </xFile >
<destDir >${project.build.directory}/generated-sources </destDir >
<packageName >com.bellamso.tracelog.rpc </packageName >
<!-- Force the creation of the destination directory
if it does not already exist at generation time. -- >
<createDir >true </createDir >
<!-- Uncomment the following line to create
an RPC server listening only on TCP. -- >
<!-- <serverTcpOnly >true </serverTcpOnly > -- >
<!-- Uncomment the following line to create
an RPC server listening only on UDP. -- >
<!-- <serverUdpOnly >true </serverUdpOnly > -- >
</configuration >
</execution >
</executions >
</plugin >
backup, bean, createDir, debug, destDir, initStrings, noClamp, noEnum, noEquals, noToString, noValueCtor, options, packageName, serializable, serverTcpOnly, serverUdpOnly, verbose, withCallInfo, xFile| Constructor and Description |
|---|
JRpcGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
checkAttributes, dumpState, generateSources, logDebug, logError, logInfo, logWarnCopyright © 2025. All rights reserved.