public class Bueller extends Object
Modifier and Type | Class and Description |
---|---|
class |
Bueller.RunWhenShuttingDown |
Modifier and Type | Field and Description |
---|---|
protected static Logger |
log |
static boolean |
noloop |
static boolean |
running |
Constructor and Description |
---|
Bueller() |
Modifier and Type | Method and Description |
---|---|
void |
Fire(boolean pooled)
Performs the work of status bueller by sending an http get message to
attempt to pull the wsdl Loads all service urls that are of PolicyType
transactional
|
protected static List<String> |
GetAlternateUrls(String url,
boolean pooled)
provides a wrapper for getting alternate urls without passing a db
connection
|
protected static List<String> |
GetAlternateUrls(String url,
Connection perf)
Alternate URLs, basically multiple hostnames, FQDN, host file entries, ip
addresses, etc can map to the same service.
|
protected void |
Init(boolean pooled) |
static void |
main(String[] args) |
void |
run() |
protected String |
sendGetRequest(boolean pooled,
String endpoint,
int depth)
Sends an HTTP GET request to a url
|
protected String |
sendGetRequestAuth(boolean pooled,
String endpoint,
String policyURL,
int depth)
attempts an http get request with authentication
|
protected org.apache.http.auth.Credentials |
transformCredentials(String[] info) |
protected static final Logger log
public static boolean running
public static boolean noloop
public static void main(String[] args) throws InterruptedException
args
- the command line argumentsInterruptedException
protected static List<String> GetAlternateUrls(String url, Connection perf)
url
- perf
- protected static List<String> GetAlternateUrls(String url, boolean pooled)
url
- pooled
- public void run()
public void Fire(boolean pooled) throws SQLException, Exception
pooled
- SQLException
Exception
protected org.apache.http.auth.Credentials transformCredentials(String[] info)
protected String sendGetRequestAuth(boolean pooled, String endpoint, String policyURL, int depth)
pooled
- endpoint
- policyURL
- protected String sendGetRequest(boolean pooled, String endpoint, int depth)
endpoint
- - The URL of the server. (Example: "
http://www.yahoo.com/search") Note: This method will add the question
mark (?wsdl) to the requestCopyright © 2008–2017 MIL-OSS. All rights reserved.