public class RemoteWorkspaceClientFactory extends Object
RemoteWorkspace on the same
machine.| Constructor and Description |
|---|
RemoteWorkspaceClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
static RemoteWorkspace |
create(File dir,
RemoteWorkspaceClient client)
Create a Remote Workspace object that communicates with a Remote
Workspace server on the same machine on the loopback interface.
|
static RemoteWorkspace |
create(int port,
RemoteWorkspaceClient client)
Create a Remote Workspace on a specific port.
|
static File |
getPortDirectory(File dir,
File org)
Get the directory where the ports are registered in
|
public static RemoteWorkspace create(File dir, RemoteWorkspaceClient client)
This class will search in the {dir}/cnf/cache/remotews directory
for registered workspaces. (Multiple can be registered.) It will try to
contact these remote workspace servers in order of last modified, newest
first. The first one that responds will be returned.
dir - The directory of the workspaceclient - the client APIpublic static RemoteWorkspace create(int port, RemoteWorkspaceClient client) throws IOException
port - the port to useclient - the client APIIOException - when something goes wrongCopyright © 2021. All rights reserved.