org.garret.jipc.client
Class JIPCClientFactory

java.lang.Object
  |
  +--org.garret.jipc.client.JIPCClientFactory
All Implemented Interfaces:
JIPCFactory

public class JIPCClientFactory
extends java.lang.Object
implements JIPCFactory

Factory for remote sessions. Remote sessions should be used to provide synchronization between different Java processes (processes running in different Java Virtual Machines) at the same or diffrent computers. Before client seesion is create, server process should be started.


Method Summary
 org.garret.jipc.JIPCSession create(java.lang.String address, int port)
          Create session instance.
static org.garret.jipc.JIPCFactory getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public org.garret.jipc.JIPCSession create(java.lang.String address,
                                          int port)
                                   throws JIPCException,
                                          java.io.IOException
Description copied from interface: JIPCFactory
Create session instance. For client session, connection with server is established.

Specified by:
create in interface JIPCFactory
Parameters:
address - server host address (ignored for local sessions)
port - server port (ignored for local sessions)
Returns:
session object
JIPCException
java.io.IOException

getInstance

public static org.garret.jipc.JIPCFactory getInstance()