com.jakewharton.pingdom
Class ServiceManager

java.lang.Object
  extended by com.jakewharton.pingdom.ServiceManager

public class ServiceManager
extends Object

Class to manage service creation with default settings.

Author:
Jake Wharton

Constructor Summary
ServiceManager()
          Create a new manager instance.
 
Method Summary
 ActionsService actionsService()
          Get actions service instance.
 AnalysisService analysisService()
          Get analysis service instance.
 CheckService checkService()
          Get check service instance.
 ContactService contactService()
          Get contact service instance.
static ActionsService newActionsService()
          Create new actions service instance.
static AnalysisService newAnalysisService()
          Create new analysis service instance.
static CheckService newCheckService()
          Create new check service instance.
static ContactService newContactService()
          Create new contact service instance.
static ProbeService newProbeService()
          Create new probe service instance.
static ReferenceService newReferenceService()
          Create new reference service instance.
static ReportsEmailService newReportsEmailService()
          Create new report email service instance.
static ReportsPublicService newReportsPublicService()
          Create new reports public service instance.
static ReportsSharedService newReportsSharedService()
          Create new reports shared service instance.
static ResultsService newResultsService()
          Create new results service instance.
static ServerTimeService newServerTimeService()
          Create new server time service instance.
static SettingsService newSettingsService()
          Create new settings service instance.
static SummaryAverageService newSummaryAverageService()
          Create new summary average service instance.
static SummaryOutageService newSummaryOutageService()
          Create new summary outage service instance.
static SummaryPerformanceService newSummaryPerformanceService()
          Create new summary performance service instance.
static SummaryProbeService newSummaryProbeService()
          Create new summary probe service instance.
static TraceRouteService newTraceRouteService()
          Create new trace route service instance.
 ProbeService probeService()
          Get probe service instance.
 ReferenceService referenceService()
          Get reference service instance.
 ReportsEmailService reportsEmailService()
          Get report email service.
 ReportsPublicService reportsPublicService()
          Get reports public service.
 ReportsSharedService reportsSharedService()
          Get reports shared service.
 ResultsService resultsService()
          Get results service instance.
 ServerTimeService serverTimeService()
          Get server time service instance.
 ServiceManager setAppKey(String value)
          Set default API key.
 ServiceManager setAuthentication(String email, String password)
          Set default authentication credentials.
 ServiceManager setConnectionTimeout(int connectionTimeout)
          Set default connection timeout.
 ServiceManager setReadTimeout(int readTimeout)
          Set default read timeout.
 SettingsService settingsService()
          Get settings service instance.
 SummaryAverageService summaryAverageService()
          Get summary average service instance.
 SummaryOutageService summaryOutageService()
          Get summary outage service.
 SummaryPerformanceService summaryPerformanceService()
          Get summary performance service.
 SummaryProbeService summaryProbeService()
          Get summary probe service.
 TraceRouteService traceRouteService()
          Get trace route service instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceManager

public ServiceManager()
Create a new manager instance.

Method Detail

setAuthentication

public ServiceManager setAuthentication(String email,
                                        String password)
Set default authentication credentials.

Parameters:
email - User email.
password - User password.
Returns:
Current instance for builder pattern.

setAppKey

public ServiceManager setAppKey(String value)
Set default API key.

Parameters:
value - API key value.
Returns:
Current instance for builder pattern.

setConnectionTimeout

public ServiceManager setConnectionTimeout(int connectionTimeout)
Set default connection timeout.

Parameters:
connectionTimeout - Timeout (in milliseconds).
Returns:
Current instance for builder pattern.

setReadTimeout

public ServiceManager setReadTimeout(int readTimeout)
Set default read timeout.

Parameters:
readTimeout - Timeout (in milliseconds).
Returns:
Current instance for builder pattern.

actionsService

public ActionsService actionsService()
Get actions service instance.

Returns:
Instance.

analysisService

public AnalysisService analysisService()
Get analysis service instance.

Returns:
Instance.

checkService

public CheckService checkService()
Get check service instance.

Returns:
Instance.

contactService

public ContactService contactService()
Get contact service instance.

Returns:
Instance.

probeService

public ProbeService probeService()
Get probe service instance.

Returns:
Instance.

referenceService

public ReferenceService referenceService()
Get reference service instance.

Returns:
Instance.

reportsEmailService

public ReportsEmailService reportsEmailService()
Get report email service.

Returns:
Instance.

reportsPublicService

public ReportsPublicService reportsPublicService()
Get reports public service.

Returns:
Instance.

reportsSharedService

public ReportsSharedService reportsSharedService()
Get reports shared service.

Returns:
Instance.

resultsService

public ResultsService resultsService()
Get results service instance.

Returns:
Instance.

serverTimeService

public ServerTimeService serverTimeService()
Get server time service instance.

Returns:
Instance.

settingsService

public SettingsService settingsService()
Get settings service instance.

Returns:
Instance.

summaryAverageService

public SummaryAverageService summaryAverageService()
Get summary average service instance.

Returns:
Instance.

summaryOutageService

public SummaryOutageService summaryOutageService()
Get summary outage service.

Returns:
Instance.

summaryPerformanceService

public SummaryPerformanceService summaryPerformanceService()
Get summary performance service.

Returns:
Instance.

summaryProbeService

public SummaryProbeService summaryProbeService()
Get summary probe service.

Returns:
Instance.

traceRouteService

public TraceRouteService traceRouteService()
Get trace route service instance.

Returns:
Instance.

newActionsService

public static final ActionsService newActionsService()
Create new actions service instance.

Returns:
Instance.

newAnalysisService

public static final AnalysisService newAnalysisService()
Create new analysis service instance.

Returns:
Instance.

newCheckService

public static final CheckService newCheckService()
Create new check service instance.

Returns:
Instance.

newContactService

public static final ContactService newContactService()
Create new contact service instance.

Returns:
Instance.

newProbeService

public static final ProbeService newProbeService()
Create new probe service instance.

Returns:
Instance.

newReferenceService

public static final ReferenceService newReferenceService()
Create new reference service instance.

Returns:
Instance.

newReportsEmailService

public static final ReportsEmailService newReportsEmailService()
Create new report email service instance.

Returns:
Instance.

newReportsPublicService

public static final ReportsPublicService newReportsPublicService()
Create new reports public service instance.

Returns:
Instance.

newReportsSharedService

public static final ReportsSharedService newReportsSharedService()
Create new reports shared service instance.

Returns:
Instance.

newResultsService

public static final ResultsService newResultsService()
Create new results service instance.

Returns:
Instance.

newServerTimeService

public static final ServerTimeService newServerTimeService()
Create new server time service instance.

Returns:
Instance.

newSettingsService

public static final SettingsService newSettingsService()
Create new settings service instance.

Returns:
Instance.

newSummaryAverageService

public static final SummaryAverageService newSummaryAverageService()
Create new summary average service instance.

Returns:
Instance.

newSummaryOutageService

public static final SummaryOutageService newSummaryOutageService()
Create new summary outage service instance.

Returns:
Instance.

newSummaryPerformanceService

public static final SummaryPerformanceService newSummaryPerformanceService()
Create new summary performance service instance.

Returns:
Instance.

newSummaryProbeService

public static final SummaryProbeService newSummaryProbeService()
Create new summary probe service instance.

Returns:
Instance.

newTraceRouteService

public static final TraceRouteService newTraceRouteService()
Create new trace route service instance.

Returns:
Instance.


Copyright © 2011 Jake Wharton. All Rights Reserved.