Package com.hubspot.mesos.client
Class SingularityMesosClient
- java.lang.Object
-
- com.hubspot.mesos.client.SingularityMesosClient
-
- All Implemented Interfaces:
MesosClient
public class SingularityMesosClient extends Object implements MesosClient
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.hubspot.mesos.client.MesosClient
MesosClient.MesosClientException
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_HTTP_CLIENT_NAMEstatic StringMESOS_CREDENTIALSstatic StringSHORT_TIMEOUT_HTTP_CLIENT_NAME
-
Constructor Summary
Constructors Constructor Description SingularityMesosClient(com.hubspot.horizon.HttpClient httpClient, com.hubspot.horizon.HttpClient shortTimeoutHttpClient, UserAndPassword credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.hubspot.mesos.json.MesosAgentMetricsSnapshotObjectgetAgentMetricsSnapshot(String hostname, boolean useShortTimeout)List<com.hubspot.mesos.json.MesosTaskMonitorObject>getAgentResourceUsage(String hostname, boolean useShortTimeout)com.hubspot.mesos.json.MesosAgentStateObjectgetAgentState(String uri)StringgetAgentUri(String hostname)com.hubspot.mesos.json.MesosMasterMetricsSnapshotObjectgetMasterMetricsSnapshot(String uri)StringgetMasterMetricsSnapshotUri(String hostnameAndPort)com.hubspot.mesos.json.MesosMasterStateObjectgetMasterState(String uri)StringgetMasterUri(String hostnameAndPort)com.hubspot.mesos.json.MesosSlaveMetricsSnapshotObjectgetSlaveMetricsSnapshot(String hostname, boolean useShortTimeout)Deprecated.List<com.hubspot.mesos.json.MesosTaskMonitorObject>getSlaveResourceUsage(String hostname, boolean useShortTimeout)Deprecated.com.hubspot.mesos.json.MesosSlaveStateObjectgetSlaveState(String uri)Deprecated.StringgetSlaveUri(String hostname)Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hubspot.mesos.client.MesosClient
getAgentMetricsSnapshot, getAgentResourceUsage, getMetricsSnapshotUri, getSlaveMetricsSnapshot, getSlaveResourceUsage
-
-
-
-
Field Detail
-
DEFAULT_HTTP_CLIENT_NAME
public static final String DEFAULT_HTTP_CLIENT_NAME
- See Also:
- Constant Field Values
-
SHORT_TIMEOUT_HTTP_CLIENT_NAME
public static final String SHORT_TIMEOUT_HTTP_CLIENT_NAME
- See Also:
- Constant Field Values
-
MESOS_CREDENTIALS
public static final String MESOS_CREDENTIALS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SingularityMesosClient
@Inject public SingularityMesosClient(com.hubspot.horizon.HttpClient httpClient, com.hubspot.horizon.HttpClient shortTimeoutHttpClient, UserAndPassword credentials)
-
-
Method Detail
-
getMasterUri
public String getMasterUri(String hostnameAndPort)
- Specified by:
getMasterUriin interfaceMesosClient
-
getMasterMetricsSnapshotUri
public String getMasterMetricsSnapshotUri(String hostnameAndPort)
- Specified by:
getMasterMetricsSnapshotUriin interfaceMesosClient
-
getMasterState
public com.hubspot.mesos.json.MesosMasterStateObject getMasterState(String uri)
- Specified by:
getMasterStatein interfaceMesosClient
-
getMasterMetricsSnapshot
public com.hubspot.mesos.json.MesosMasterMetricsSnapshotObject getMasterMetricsSnapshot(String uri)
- Specified by:
getMasterMetricsSnapshotin interfaceMesosClient
-
getSlaveMetricsSnapshot
@Deprecated public com.hubspot.mesos.json.MesosSlaveMetricsSnapshotObject getSlaveMetricsSnapshot(String hostname, boolean useShortTimeout)
Deprecated.- Specified by:
getSlaveMetricsSnapshotin interfaceMesosClient
-
getAgentMetricsSnapshot
public com.hubspot.mesos.json.MesosAgentMetricsSnapshotObject getAgentMetricsSnapshot(String hostname, boolean useShortTimeout)
- Specified by:
getAgentMetricsSnapshotin interfaceMesosClient
-
getSlaveUri
@Deprecated public String getSlaveUri(String hostname)
Deprecated.- Specified by:
getSlaveUriin interfaceMesosClient
-
getAgentUri
public String getAgentUri(String hostname)
- Specified by:
getAgentUriin interfaceMesosClient
-
getSlaveState
@Deprecated public com.hubspot.mesos.json.MesosSlaveStateObject getSlaveState(String uri)
Deprecated.- Specified by:
getSlaveStatein interfaceMesosClient
-
getAgentState
public com.hubspot.mesos.json.MesosAgentStateObject getAgentState(String uri)
- Specified by:
getAgentStatein interfaceMesosClient
-
getAgentResourceUsage
public List<com.hubspot.mesos.json.MesosTaskMonitorObject> getAgentResourceUsage(String hostname, boolean useShortTimeout)
- Specified by:
getAgentResourceUsagein interfaceMesosClient
-
getSlaveResourceUsage
@Deprecated public List<com.hubspot.mesos.json.MesosTaskMonitorObject> getSlaveResourceUsage(String hostname, boolean useShortTimeout)
Deprecated.- Specified by:
getSlaveResourceUsagein interfaceMesosClient
-
-