View Javadoc

1   /*
2    * SymmetricDS is an open source database synchronization solution.
3    *   
4    * Copyright (C) Keith Naas <knaas@users.sourceforge.net>
5    *
6    * This library is free software; you can redistribute it and/or
7    * modify it under the terms of the GNU Lesser General Public
8    * License as published by the Free Software Foundation; either
9    * version 3 of the License, or (at your option) any later version.
10   *
11   * This library is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   * Lesser General Public License for more details.
15   *
16   * You should have received a copy of the GNU Lesser General Public
17   * License along with this library; if not, see
18   * <http://www.gnu.org/licenses/>.
19   */
20  
21  package org.jumpmind.symmetric.service.mock;
22  
23  import java.io.IOException;
24  import java.io.OutputStream;
25  
26  import org.jumpmind.symmetric.model.Node;
27  import org.jumpmind.symmetric.service.IRegistrationService;
28  
29  public class MockRegistrationService implements IRegistrationService {
30  
31      public boolean isAutoRegistration() {
32          return false;
33      }
34  
35      public void openRegistration(String nodeGroupId, String externalId) {
36  
37      }
38  
39      public void reOpenRegistration(String nodeId) {
40  
41      }
42  
43      public boolean registerNode(Node node, OutputStream out, boolean isRequestedRegistration) throws IOException {
44          return false;
45      }
46  
47      public void registerWithServer() {
48      }
49  
50      public boolean isRegisteredWithServer() {
51          return true;
52      }
53  }