|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nci.cagrid.advertisement.AdvertisementClient
public class AdvertisementClient
AdvertisementClient Currently just a wrapper for ServiceGroupRegistrationClient, because its expected expected future releases of ServiceGroupRegistrationClient will have some needed features (such as unregistration).
| Nested Class Summary | |
|---|---|
protected class |
AdvertisementClient.Callback
Logs status information. |
| Field Summary | |
|---|---|
protected org.globus.wsrf.impl.servicegroup.client.ServiceGroupRegistrationClient |
client
|
protected static org.apache.commons.logging.Log |
LOG
|
protected org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters |
sgParams
|
| Constructor Summary | |
|---|---|
protected |
AdvertisementClient()
|
|
AdvertisementClient(java.io.File registrationConfigFile)
Parses the file representing ServiceGroupRegistrationParameters |
|
AdvertisementClient(org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters registrationConfig)
Initializes the client with the service group parameters |
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static java.lang.String |
printServiceGroupRegistrationParameters(org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters params)
Returns a prinatable string representing the registration information |
void |
register()
Registers with the service group |
void |
reinitialize(org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters registrationConfig)
Can be called to cancel any existing registration, and repurpose the client for new registrations. |
void |
unregister()
Unregisters from the service group |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log LOG
protected org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters sgParams
protected org.globus.wsrf.impl.servicegroup.client.ServiceGroupRegistrationClient client
| Constructor Detail |
|---|
protected AdvertisementClient()
public AdvertisementClient(java.io.File registrationConfigFile)
throws InvalidConfigurationException
registrationConfigFile -
InvalidConfigurationException
public AdvertisementClient(org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters registrationConfig)
throws InvalidConfigurationException
registrationConfig -
InvalidConfigurationException - if the specific configuration is not validreinitialize(ServiceGroupRegistrationParameters)| Method Detail |
|---|
public void reinitialize(org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters registrationConfig)
throws InvalidConfigurationException
registrationConfig -
InvalidConfigurationException - if the specified config is invalid (in this case the client
remains in the old state). An invalid config is one which is
null, or has a null servicegroup or registrant eprpublic void register()
public void unregister()
throws UnregistrationException
UnregistrationExceptionpublic static java.lang.String printServiceGroupRegistrationParameters(org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters params)
params -
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||