@PublicAPI public class SchedulerConnection extends Connection<SchedulerAuthenticationInterface>
join(String)
returns a SchedulerAuthenticationInterface
in order to give the scheduler
the possibility to authenticate user that wants to connect a scheduler.Modifier and Type | Method and Description |
---|---|
static SchedulerConnection |
getInstance()
Get the instance of the Scheduler connection
|
org.apache.log4j.Logger |
getLogger()
Retrieves a corresponding logger.
|
static SchedulerAuthenticationInterface |
join(String url)
Returns the
SchedulerAuthenticationInterface from the specified
URL. |
static SchedulerAuthenticationInterface |
waitAndJoin(String url)
Connects to the scheduler using given URL.
|
static SchedulerAuthenticationInterface |
waitAndJoin(String url,
long timeout)
Connects to the scheduler with a specified timeout value.
|
connect, getNetworkInterfaceFor, normalize, waitAndConnect, waitAndConnect
public org.apache.log4j.Logger getLogger()
Loggable
Loggable.getLogger()
public static SchedulerConnection getInstance()
public static SchedulerAuthenticationInterface join(String url) throws ConnectionException
SchedulerAuthenticationInterface
from the specified
URL. If scheduler is not available or initializing throws an exception.SchedulerAuthenticationGUIHelper
class to display a
graphical interface that will ask the URL, login and password.url
- the URL of the scheduler to join.ConnectionException
- if connection is not possible on the given URL.public static SchedulerAuthenticationInterface waitAndJoin(String url) throws ConnectionException
SchedulerAuthenticationGUIHelper
class to display a
graphical interface that will ask the URL, login and password.url
- the URL of the scheduler to join.ConnectionException
- if connection is not possible on the given URL.public static SchedulerAuthenticationInterface waitAndJoin(String url, long timeout) throws ConnectionException
SchedulerAuthenticationGUIHelper
class to display a
graphical interface that will ask the URL, login and password.url
- the URL of the scheduler to join.timeout
- the amount of time during which it will try to join the SchedulerConnectionException