public final class RemoteReportServerToolkit
extends java.lang.Object
     RptServer rptServer = getRemoteRptServer("192.168.128.14", "1129");
    ...
.Constructor and Description |
---|
RemoteReportServerToolkit() |
Modifier and Type | Method and Description |
---|---|
static boolean |
destroyRemoteFileService(java.lang.String host,
java.lang.String port)
Destroys an instance of
RemoteFileService by the running JReport Server's host and rmi port. |
static RemoteFileService |
getRemoteFileService(java.lang.String host,
java.lang.String port)
Gets
RemoteFileService instance running at the given host and port. |
static RemoteRptServer |
getRemoteRptServer(java.lang.String host,
java.lang.String port)
Gets the remote interface attached to JReport Server by that running JReport Server's host and rmi port.
|
static int |
getRemoteServerStatus(java.lang.String host,
java.lang.String port)
Gets the status of with specified server host and port.
|
static HttpRptServer |
getRemoteWrappedAdminServer(java.lang.String host,
java.lang.String port)
Deprecated.
|
static HttpRptServer |
getRemoteWrappedAdminServer(java.lang.String host,
java.lang.String port,
java.lang.String logPath)
Deprecated.
|
static HttpRptServer |
getRemoteWrappedRptServer(java.lang.String host,
java.lang.String port)
Gets remote wrapped JReport Server by a running JReport Server's host and rmi port,
which uses system property "user.dir" as log dir.
|
static HttpRptServer |
getRemoteWrappedRptServer(java.lang.String host,
java.lang.String port,
java.lang.String logPath)
Gets the remote wrapped JReport Server by a running JReport Server's host and rmi port.
|
public static HttpRptServer getRemoteWrappedRptServer(java.lang.String host, java.lang.String port)
host
- Host of a running JReport Server which needs to be connected.port
- RMI port of a running JReport Server which needs to be connected.public static HttpRptServer getRemoteWrappedRptServer(java.lang.String host, java.lang.String port, java.lang.String logPath)
host
- Host of a running JReport Server which needs to be connected.port
- RMI port of a running JReport Server which needs to be connected.logPath
- Specifies the directory that the error log of remote wrapped report server is saved to, and the log file
name is "error.log".public static RemoteRptServer getRemoteRptServer(java.lang.String host, java.lang.String port)
host
- Host of a running JReport Server which needs to be connected.port
- RMI port of a running JReport Server which needs to be connected.public static HttpRptServer getRemoteWrappedAdminServer(java.lang.String host, java.lang.String port)
host
- Host of a running JReport Server which needs to be connected.port
- RMI port of a running JReport Server which needs to be connected.public static HttpRptServer getRemoteWrappedAdminServer(java.lang.String host, java.lang.String port, java.lang.String logPath)
host
- Host of a running JReport Server which needs to be connected.port
- RMI port of a running JReport Server which needs to be connected.logPath
- Specifies the directory that the error log of remote wrapped report server will be saved to, and the log file
name is "error.log".public static RemoteFileService getRemoteFileService(java.lang.String host, java.lang.String port)
RemoteFileService
instance running at the given host and port.host
- Host of a running JReport Server to connect to.port
- RMI port of a running JReport Server to connect to.public static boolean destroyRemoteFileService(java.lang.String host, java.lang.String port)
RemoteFileService
by the running JReport Server's host and rmi port.host
- Host of a running JReport Server that needs to be connected.port
- RMI port of a running JReport Server which needs to be connected.public static int getRemoteServerStatus(java.lang.String host, java.lang.String port)