|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.eureka.resources.ApplicationResource
public class ApplicationResource
A jersey resource that handles request related to a particular
Application.
| Constructor Summary | |
|---|---|
ApplicationResource(java.lang.String appName)
|
|
| Method Summary | |
|---|---|
void |
addInstance(com.netflix.appinfo.InstanceInfo info,
java.lang.String isReplication)
Registers information about a particular instance for an Application. |
javax.ws.rs.core.Response |
getApplication(java.lang.String version,
java.lang.String acceptHeader)
Gets information about a particular Application. |
InstanceResource |
getInstanceInfo(java.lang.String id)
Gets information about a particular instance of an application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationResource(java.lang.String appName)
| Method Detail |
|---|
public javax.ws.rs.core.Response getApplication(java.lang.String version,
@HeaderParam(value="Accept")
java.lang.String acceptHeader)
Application.
version - the version of the request.acceptHeader - the accept header of the request to indicate whether to serve
JSON or XML data.
public InstanceResource getInstanceInfo(java.lang.String id)
id - the unique identifier of the instance.
public void addInstance(com.netflix.appinfo.InstanceInfo info,
@HeaderParam(value="x-netflix-discovery-replication")
java.lang.String isReplication)
Application.
info - InstanceInfo information of the instance.isReplication - a header parameter containing information whether this is
replicated from other nodes.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||