|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.server.api.rmi.RemoteReportServerToolkit
public final class RemoteReportServerToolkit
This class provides methods to JReport users to get a handle to remote JReport Server (RptServer) using RMI to
wrap the methods on the client as RMI stubs to call the real methods on JReport Server. We refer to this as a
remote wrapped JReport Server. For example, if you want to get a remote wrapped JReport Server which is
connected to a running JReport Server residing in host 192.168.128.14 and using rmi port 1129, you can invoke
the method getRemoteRptServer() like
     RptServer rptServer = getRemoteRptServer("192.168.128.14", "1129");.
    ...
| Constructor Summary | |
|---|---|
RemoteReportServerToolkit()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteReportServerToolkit()
| Method Detail |
|---|
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||