|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Provisioner
| Method Summary | |
|---|---|
boolean |
addServiceDatabase(String serviceId,
int retries,
int timeout,
int interval,
int downTimeInterval,
int downTimeDuration,
String username,
String password,
String driver,
String url)
This method defines a new package and Database(JDBC) service using the serviceId as the name of the
polling package and service name within that package. |
boolean |
addServiceDNS(String serviceId,
int retries,
int timeout,
int interval,
int downTimeInterval,
int downTimeDuration,
int port,
String hostname)
This method defines a new package and DNS service using the serviceId as the name of the
polling package and service name within that package. |
boolean |
addServiceHTTP(String serviceId,
int retries,
int timeout,
int interval,
int downTimeInterval,
int downTimeDuration,
String hostName,
int port,
String responseCode,
String contentCheck,
String url,
String user,
String passwd,
String agent)
This method defines a new package and HTTP service using the serviceId as the name of the
polling package and service name within that package. |
boolean |
addServiceHTTPS(String serviceId,
int retries,
int timeout,
int interval,
int downTimeInterval,
int downTimeDuration,
String hostName,
int port,
String responseCode,
String contentCheck,
String url,
String user,
String passwd,
String agent)
This method defines a new package and HTTPS service using the serviceId as the name of the
polling package and service name within that package. |
boolean |
addServiceICMP(String serviceId,
int retries,
int timeout,
int interval,
int downTimeInterval,
int downTimeDuration)
This method defines a new package and ICMP service using the serviceId as the name of the
polling package and service name within that package. |
boolean |
addServiceTCP(String serviceId,
int retries,
int timeout,
int interval,
int downTimeInterval,
int downTimeDuration,
int port,
String contentCheck)
This method defines a new package and TCP service using the serviceId as the name of the
polling package and service name within that package. |
Map |
getServiceConfiguration(String pkName,
String serviceId)
Returns an XML-RPC compatible hash map representing the current configuration (see addService params) for the matching String serviceId
When a service is defined using XML-RPC, the package name and the service name will be the same. |
| Method Detail |
|---|
boolean addServiceICMP(String serviceId,
int retries,
int timeout,
int interval,
int downTimeInterval,
int downTimeDuration)
serviceId as the name of the
polling package and service name within that package. If the same serviceId is used again,
it redefines the service.
To add an interface to this newly defined ICMP service,
send an EventConstants.UPDATE_SERVICE_EVENT_UEI Event.
serviceId - String is used to define a polling package and a service name in that polling package.retries - int number of retries for this servicetimeout - int time in milliseconds to wait during each retriesinterval - int the standard polling interval in millisecondsdownTimeInterval - int the downtime polling interval in milliseconds(downtime model)downTimeDuration - int> the amount of time in milliseconds the downtime polling interval is in effect
- Returns:
- Always returns true.
- Throws:
IllegalArgumentException - when arguments are outside of ranges
boolean addServiceDNS(String serviceId,
int retries,
int timeout,
int interval,
int downTimeInterval,
int downTimeDuration,
int port,
String hostname)
serviceId as the name of the
polling package and service name within that package. If the same serviceId is used again,
it redefines the service.
To add an interface to this newly defined DNS service,
send an EventConstants.UPDATE_SERVICE_EVENT_UEI Event.
serviceId - String is used to define a polling package and a service name in that polling package.retries - int number of retries for this servicetimeout - int time in milliseconds to wait during each retriesinterval - int the standard polling interval in millisecondsdownTimeInterval - int the downtime polling interval in milliseconds(downtime model)downTimeDuration - int> the amount of time in milliseconds the downtime polling interval is in effectport - int the port to poll for DNS servicehostname - String the hostname to resolve with the DNS service
- Returns:
- Always returns true.
- Throws:
IllegalArgumentException - when arguments are outside of ranges
boolean addServiceTCP(String serviceId,
int retries,
int timeout,
int interval,
int downTimeInterval,
int downTimeDuration,
int port,
String contentCheck)
serviceId as the name of the
polling package and service name within that package. If the same serviceId is used again,
it redefines the service.
To add an interface to this newly defined TCP service,
send an EventConstants.UPDATE_SERVICE_EVENT_UEI Event.
serviceId - String is used to define a polling package and a service name in that polling package.retries - int number of retries for this servicetimeout - int time in milliseconds to wait during each retriesinterval - int the standard polling interval in millisecondsdownTimeInterval - int the downtime polling interval in milliseconds(downtime model)downTimeDuration - int> the amount of time in milliseconds the downtime polling interval is in effectport - int the port to attempt to connect to determine if the service is accepting connectionscontentCheck - String a string to check for in the returned banner of the TCP service or "" if no check is desired.
- Returns:
- Always returns true.
- Throws:
IllegalArgumentException - when arguments are outside of ranges
boolean addServiceHTTP(String serviceId,
int retries,
int timeout,
int interval,
int downTimeInterval,
int downTimeDuration,
String hostName,
int port,
String responseCode,
String contentCheck,
String url,
String user,
String passwd,
String agent)
throws MalformedURLException
serviceId as the name of the
polling package and service name within that package. If the same serviceId is used again,
it redefines the service.
To add an interface to this newly defined HTTP service,
send an EventConstants.UPDATE_SERVICE_EVENT_UEI Event.
serviceId - String is used to define a polling package and a service name in that polling package.retries - int number of retries for this servicetimeout - int time in milliseconds to wait during each retriesinterval - int the standard polling interval in millisecondsdownTimeInterval - int the downtime polling interval in milliseconds(downtime model)downTimeDuration - int> the amount of time in milliseconds the downtime polling interval is in effecthostName - String the virtual host (requires a url other than just "/")port - int the port to attempt to connect to determine if the service is accepting connectionsresponseCode - String a set of responseCodes that are considered valid.
This string should consist of one or more ranges ( [range],[range],...) where a range is either a single number or
a pair of number separated by a - ( 200,202-300 ). If the default range check is desire this can be ""
The default range check is defined by the HttpMonitor plugin and is currently 100-499 for / or 100-399 for other URLscontentCheck - String a string to check for in the returned web page. This string is either an exact string
to search for in the page or a regular expression. To indicate a regular expression prefix the string with a '~' characterurl - String the path portion of the URL to check on the serveruser - String the user to use with basic authentication or "" if no authentication requiredpasswd - String the password to use with the user parameter with doing authenticationagent - String the String to use for the User agent field when communicating with the server
- Returns:
- Always returns true.
- Throws:
IllegalArgumentException - when arguments are outside of ranges
MalformedURLException
boolean addServiceHTTPS(String serviceId,
int retries,
int timeout,
int interval,
int downTimeInterval,
int downTimeDuration,
String hostName,
int port,
String responseCode,
String contentCheck,
String url,
String user,
String passwd,
String agent)
throws MalformedURLException
serviceId as the name of the
polling package and service name within that package. If the same serviceId is used again,
it redefines the service.
To add an interface to this newly defined HTTPS service,
send an EventConstants.UPDATE_SERVICE_EVENT_UEI Event.
serviceId - String is used to define a polling package and a service name in that polling package.retries - int number of retries for this servicetimeout - int time in milliseconds to wait during each retriesinterval - int the standard polling interval in millisecondsdownTimeInterval - int the downtime polling interval in milliseconds(downtime model)downTimeDuration - int the amount of time in milliseconds the downtime polling interval is in effecthostName - String the virtual host (requires a url other than just "/")port - int the port to attempt to connect to determine if the service is accepting connectionsresponseCode - String a set of responseCodes that are considered valid.
This string should consist of one or more ranges ( [range],[range],...) where a range is either a single number or
a pair of number separated by a - ( 200,202-300 ). If the default range check is desire this can be ""
The default range check is defined by the HttpMonitor plugin and is currently 100-499 for / or 100-399 for other URLscontentCheck - String a string to check for in the returned web page. This string is either an exact string
to search for in the page or a regular expression. To indicate a regular expression prefix the string with a '~' characterurl - String the path portion of the URL to check on the serveruser - String the user to use with basic authentication or "" if no authentication requiredpasswd - String the password to use with the user parameter with doing authenticationagent - String the String to use for the User agent field when communicating with the server
IllegalArgumentException - when arguments are outside of ranges
MalformedURLException
boolean addServiceDatabase(String serviceId,
int retries,
int timeout,
int interval,
int downTimeInterval,
int downTimeDuration,
String username,
String password,
String driver,
String url)
serviceId as the name of the
polling package and service name within that package. If the same serviceId is used again,
it redefines the service.
To add an interface to this newly defined Database(JDBC) service,
send an EventConstants.UPDATE_SERVICE_EVENT_UEI Event.
serviceId - String is used to define a polling package and a service name in that polling package.retries - int number of retries for this servicetimeout - int time in milliseconds to wait during each retriesinterval - int the standard polling interval in millisecondsdownTimeInterval - int the downtime polling interval in milliseconds(downtime model)downTimeDuration - int the amount of time in milliseconds the downtime polling interval is in effectusername - String the user to pass to the JDBC connectionpassword - String the password to pass to the JDBC connectiondriver - String the fully qualified name of the JDBC Driver classurl - String the url used to make a JDBC connection to the database
IllegalArgumentException - when arguments are outside of ranges
Map getServiceConfiguration(String pkName,
String serviceId)
String serviceId
When a service is defined using XML-RPC, the package name and the service name will be the same.
pkName - Name of the polling package i.e. "default" or custom package "FastHTTP"serviceId - Name of the service, i.e. "ICMP" or a custom service "FastHTTP"
IllegalArgumentException - when arguments are outside of ranges
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||