1 /*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2002,2008 Oracle and/or its affiliates. All rights reserved. 5 * 6 */ 7 package com.sleepycat.je.rep; 8 9 import java.net.InetSocketAddress; 10 11 /** 12 * An administrative view of a node in a replication group. 13 */ 14 public interface ReplicationNode { 15 16 /** 17 * Returns the unique name associated with the node. 18 * 19 * @return the name of the node 20 */ getName()21 String getName(); 22 23 /** 24 * Returns the type associated with the node. 25 * 26 * @return the node type 27 */ getType()28 NodeType getType(); 29 30 /** 31 * The socket address used by other nodes in the replication group to 32 * communicate with this node. 33 * 34 * @return the socket address 35 */ getSocketAddress()36 InetSocketAddress getSocketAddress(); 37 38 /** 39 * Returns the host name associated with the node. 40 * 41 * @return the host name of the node 42 */ getHostName()43 String getHostName(); 44 45 /** 46 * Returns the port number associated with the node. 47 * 48 * @return the port number of the node 49 */ getPort()50 int getPort(); 51 } 52