|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.servicegroup.client.ServiceGroupRegistrationClient
This class is a client library to manage registrations to WS-ServiceGroups. The
term 'managed registration' is used to refer to a registration managed by
this client.
Managed registrations come into existence in two ways:
| Field Summary | |
boolean |
isDebug
|
boolean |
outputToConsole
|
static String |
TAG_NS
|
static String |
TAG_PARAMS
|
static String |
TAG_REG_EPR
|
static String |
TAG_SEC_DESC
|
static String |
TAG_SG_EPR
|
| Constructor Summary | |
ServiceGroupRegistrationClient()
Creates a new instance of ServiceGroupRegistrationClient |
|
ServiceGroupRegistrationClient(org.globus.wsrf.client.BaseClient baseClient)
Creates an instance of the client library backed by an instance of a BaseClient derived command line class, inheriting its command line parameters and redirecting output to the console accordingly. |
|
| Method Summary | |
void |
finalize()
|
void |
flushOutput()
Flushes the current list of registered EPRs to a specified file. |
ServiceGroupRegistrationClientCallback |
getClientCallback()
Gets the instance of the ServiceGroupRegistrationClientCallback that is to receive registration status messages. |
static ServiceGroupRegistrationClient |
getContainerClient()
This should only be called when running within a container |
EndpointReferenceType |
getDefaultServiceGroupEPR()
|
org.globus.mds.servicegroup.client.EndpointReferenceTypeArray |
getEPRArray(String fileName)
|
static EndpointReferenceType |
getIndexEPR()
|
String |
getOutputFilename()
Gets the location of a output file where currently registered EPRs are written. |
EndpointReferenceType |
getRegistrantEPR()
|
void |
processConfigFile(String fileName)
Parses the config file for registration entries to process. |
static org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters |
readParams(String filename)
A helper method for reading a params block from a file. |
static commonj.timers.Timer |
register(EndpointReferenceType epr,
String regFile)
|
static commonj.timers.Timer |
register(org.globus.wsrf.ResourceContext ctx,
EndpointReferenceType epr,
String regFile)
|
commonj.timers.Timer |
register(org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters params)
Create new managed registration using the supplied registration parameters. |
commonj.timers.Timer |
register(org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters params,
long delayMillis)
Create new managed registration using the supplied registration parameters. |
void |
setClientCallback(ServiceGroupRegistrationClientCallback callback)
Sets the instance of a ServiceGroupRegistrationClientCallback that is to receive registration status messages. |
void |
setDefaultEPR(EndpointReferenceType defaultEPR)
Deprecated. use setDefaultServiceGroupEPR instead |
void |
setDefaultSecDescFile(String f)
Sets the default security descriptor filename for registrations that have a null security descriptor filename. |
void |
setDefaultServiceGroupEPR(EndpointReferenceType epr)
Sets the service group EPR for registrations that have a null servicegroup field. |
void |
setInitialDelay(int d)
|
void |
setMultipleTerminationTime(org.globus.mds.servicegroup.client.EndpointReferenceTypeArray eprArray,
Calendar newTermTime,
int delay)
|
void |
setOutputFilename(String outputFilename)
Sets the location of a output file where currently registered EPRs are written. |
void |
setRegistrantEPR(EndpointReferenceType epr)
Sets the default registrant EPR for registrations that have a null registrant field. |
protected void |
setSecurityProperties(Stub port)
|
protected void |
setSecurityProperties(Stub port,
String secDescFile)
|
void |
terminate()
Use caution when calling the terminate method, as this method will cause ALL registration timer events to be canceled. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean isDebug
public boolean outputToConsole
public static final String TAG_SG_EPR
public static final String TAG_REG_EPR
public static final String TAG_SEC_DESC
public static final String TAG_PARAMS
public static final String TAG_NS
| Constructor Detail |
public ServiceGroupRegistrationClient()
public ServiceGroupRegistrationClient(org.globus.wsrf.client.BaseClient baseClient)
| Method Detail |
public void setOutputFilename(String outputFilename)
public String getOutputFilename()
public void flushOutput()
public void setClientCallback(ServiceGroupRegistrationClientCallback callback)
public ServiceGroupRegistrationClientCallback getClientCallback()
public void setDefaultEPR(EndpointReferenceType defaultEPR)
public void setDefaultServiceGroupEPR(EndpointReferenceType epr)
public EndpointReferenceType getDefaultServiceGroupEPR()
public void setRegistrantEPR(EndpointReferenceType epr)
public EndpointReferenceType getRegistrantEPR()
public void setDefaultSecDescFile(String f)
public void setInitialDelay(int d)
public void processConfigFile(String fileName)
throws Exception
defaultServiceGroupEPR specifying the
default service group.defaultRegistrantEPR specifying the
default service group.defaultSecurityDescriptorFile
specifying the defauly security descriptor file.ServiceGroupRegistrationParameters.
Each ServiceGroupRegistrationParameters element
defines a managed registration. ServiceGroup, registrant and
security fields may be left blank, in which case they will
be populated with defaults specified in the three
default* configuration options.ServiceGroupRegistrationParameters,
eg registration
fileName - the name of the configuration file to process
Exception - if there is an error during processing of the file
public commonj.timers.Timer register(org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters params,
long delayMillis)
params - registration parametersdelayMillis - the delay in milliseconds before executing the
request.public commonj.timers.Timer register(org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters params)
params - registration parameterspublic void terminate()
public void finalize()
protected void setSecurityProperties(Stub port,
String secDescFile)
protected void setSecurityProperties(Stub port)
public org.globus.mds.servicegroup.client.EndpointReferenceTypeArray getEPRArray(String fileName)
throws Exception
Exception
public void setMultipleTerminationTime(org.globus.mds.servicegroup.client.EndpointReferenceTypeArray eprArray,
Calendar newTermTime,
int delay)
public static ServiceGroupRegistrationClient getContainerClient()
public static EndpointReferenceType getIndexEPR()
throws MalformedURLException,
IOException,
URI.MalformedURIException
MalformedURLException
IOException
URI.MalformedURIException
public static org.globus.mds.servicegroup.client.ServiceGroupRegistrationParameters readParams(String filename)
throws Exception
Exception
public static commonj.timers.Timer register(EndpointReferenceType epr,
String regFile)
throws Exception
Exception
public static commonj.timers.Timer register(org.globus.wsrf.ResourceContext ctx,
EndpointReferenceType epr,
String regFile)
throws Exception
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||