org.neo4j.server.webadmin.rest
Class MasterInfoService

java.lang.Object
  extended by org.neo4j.server.webadmin.rest.MasterInfoService
All Implemented Interfaces:
org.neo4j.server.webadmin.rest.AdvertisableService

public class MasterInfoService
extends Object
implements org.neo4j.server.webadmin.rest.AdvertisableService


Field Summary
static String BASE_PATH
           
static String IS_AVAILABLE_PATH
           
static String IS_MASTER_PATH
           
static String IS_SLAVE_PATH
           
 
Constructor Summary
MasterInfoService(org.neo4j.server.rest.repr.OutputFormat output, org.neo4j.graphdb.GraphDatabaseService db)
           
 
Method Summary
 javax.ws.rs.core.Response discover()
           
 String getName()
           
 String getServerPath()
           
 javax.ws.rs.core.Response isAvailable()
           
 javax.ws.rs.core.Response isMaster()
           
 javax.ws.rs.core.Response isSlave()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_PATH

public static final String BASE_PATH
See Also:
Constant Field Values

IS_MASTER_PATH

public static final String IS_MASTER_PATH
See Also:
Constant Field Values

IS_SLAVE_PATH

public static final String IS_SLAVE_PATH
See Also:
Constant Field Values

IS_AVAILABLE_PATH

public static final String IS_AVAILABLE_PATH
See Also:
Constant Field Values
Constructor Detail

MasterInfoService

public MasterInfoService(@Context
                         org.neo4j.server.rest.repr.OutputFormat output,
                         @Context
                         org.neo4j.graphdb.GraphDatabaseService db)
Method Detail

discover

public javax.ws.rs.core.Response discover()
                                   throws org.neo4j.server.rest.repr.BadInputException
Throws:
org.neo4j.server.rest.repr.BadInputException

isMaster

public javax.ws.rs.core.Response isMaster()
                                   throws org.neo4j.server.rest.repr.BadInputException
Throws:
org.neo4j.server.rest.repr.BadInputException

isSlave

public javax.ws.rs.core.Response isSlave()
                                  throws org.neo4j.server.rest.repr.BadInputException
Throws:
org.neo4j.server.rest.repr.BadInputException

isAvailable

public javax.ws.rs.core.Response isAvailable()

getName

public String getName()
Specified by:
getName in interface org.neo4j.server.webadmin.rest.AdvertisableService

getServerPath

public String getServerPath()
Specified by:
getServerPath in interface org.neo4j.server.webadmin.rest.AdvertisableService


Copyright © 2002-2014 The Neo4j Graph Database Project. All Rights Reserved.