public class MasterInfoService extends Object implements org.neo4j.server.rest.management.AdvertisableService
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_PATH |
static String |
IS_AVAILABLE_PATH |
static String |
IS_MASTER_PATH |
static String |
IS_SLAVE_PATH |
| Constructor and Description |
|---|
MasterInfoService(org.neo4j.server.rest.repr.OutputFormat output,
org.neo4j.graphdb.GraphDatabaseService db) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public static final String BASE_PATH
public static final String IS_MASTER_PATH
public static final String IS_SLAVE_PATH
public static final String IS_AVAILABLE_PATH
public MasterInfoService(@Context
org.neo4j.server.rest.repr.OutputFormat output,
@Context
org.neo4j.graphdb.GraphDatabaseService db)
public javax.ws.rs.core.Response discover()
throws org.neo4j.server.rest.repr.BadInputException
org.neo4j.server.rest.repr.BadInputExceptionpublic javax.ws.rs.core.Response isMaster()
throws org.neo4j.server.rest.repr.BadInputException
org.neo4j.server.rest.repr.BadInputExceptionpublic javax.ws.rs.core.Response isSlave()
throws org.neo4j.server.rest.repr.BadInputException
org.neo4j.server.rest.repr.BadInputExceptionpublic javax.ws.rs.core.Response isAvailable()
public String getName()
getName in interface org.neo4j.server.rest.management.AdvertisableServicepublic String getServerPath()
getServerPath in interface org.neo4j.server.rest.management.AdvertisableServiceCopyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.