public interface IRemoteServer
Modifier and Type | Field and Description |
---|---|
static int |
MANUAL_MOBILE_START_ON_EMULATOR |
static int |
MOBILE_GET_COMMAND_FROM_REGISTRY |
static int |
MOBILE_IS_VM_APPLICATION |
Modifier and Type | Method and Description |
---|---|
boolean |
canConnectTo(String hostName,
int portNumber)
Called by a local entity to determine if the local computer can connect directly
to the host/port number (which will usually be the remote computer).
|
String |
getLocalRegistryKeyValue(String keyName) |
String |
getRemoteRegistryKeyValue(String keyName) |
void |
makeBridge(String hostName,
int portNumber,
String otherHost,
int otherPort)
Called by the remote peer requesting that this entity provide a bridge betwen
the specified host/port (usually the remote peer computer) and the otherHost/otherPort
(usually the local computer).
|
void |
runLocalCommand(String commandOrRegistryEntry,
int options)
Called by the remote peer requesting this entity start running a command on the local
computer.
|
void |
runRemoteCommand(String commandOrRegistryEntry,
int options) |
static final int MOBILE_IS_VM_APPLICATION
static final int MANUAL_MOBILE_START_ON_EMULATOR
static final int MOBILE_GET_COMMAND_FROM_REGISTRY
boolean canConnectTo(String hostName, int portNumber)
If it returns true then the local entity will attempt a direct connection.
hostName
- portNumber
- void makeBridge(String hostName, int portNumber, String otherHost, int otherPort) throws IOException
hostName
- portNumber
- otherHost
- otherPort
- IOException
- on error.void runLocalCommand(String commandOrRegistryEntry, int options) throws IOException
command
- the command to execute.options
- any of MOBILE_IS_VM_APPLICATION and MOBILE_GET_COMMAND_FROM_REGISTRY OR'ed together.
If MOBILE_GET_COMMAND_FROM_REGISTRY is selected then the actual command line should
come from the local registry.IOException
void runRemoteCommand(String commandOrRegistryEntry, int options) throws IOException
IOException
String getLocalRegistryKeyValue(String keyName) throws IOException
IOException
String getRemoteRegistryKeyValue(String keyName) throws IOException
IOException