Search in sources :

Example 1 with ISharedObjectContainerConfig

use of org.eclipse.ecf.core.sharedobject.ISharedObjectContainerConfig in project ecf by eclipse.

the class SSLClientSOContainer method main.

public static final void main(String[] args) throws Exception {
    ISharedObjectContainerConfig config = new SOContainerConfig(IDFactory.getDefault().createGUID());
    SSLClientSOContainer container = new SSLClientSOContainer(config);
    // now join group
    ID serverID = IDFactory.getDefault().createStringID(SSLServerSOContainer.getDefaultServerURL());
    container.connect(serverID, null);
    Thread.sleep(200000);
}
Also used : ID(org.eclipse.ecf.core.identity.ID) ISharedObjectContainerConfig(org.eclipse.ecf.core.sharedobject.ISharedObjectContainerConfig)

Example 2 with ISharedObjectContainerConfig

use of org.eclipse.ecf.core.sharedobject.ISharedObjectContainerConfig in project ecf by eclipse.

the class TCPClientSOContainer method main.

public static final void main(String[] args) throws Exception {
    ISharedObjectContainerConfig config = new SOContainerConfig(IDFactory.getDefault().createGUID());
    TCPClientSOContainer container = new TCPClientSOContainer(config);
    // now join group
    // $NON-NLS-1$
    ID serverID = IDFactory.getDefault().createStringID("ecftcp://localhost:3282/server");
    container.connect(serverID, null);
    Thread.sleep(200000);
}
Also used : ID(org.eclipse.ecf.core.identity.ID) ISharedObjectContainerConfig(org.eclipse.ecf.core.sharedobject.ISharedObjectContainerConfig)

Aggregations

ID (org.eclipse.ecf.core.identity.ID)2 ISharedObjectContainerConfig (org.eclipse.ecf.core.sharedobject.ISharedObjectContainerConfig)2