public class GCUBEWSResourcePropertySet
extends org.globus.wsrf.impl.SimpleResourcePropertySet
GCUBEWSResources.| Modifier and Type | Class and Description |
|---|---|
class |
GCUBEWSResourcePropertySet.RPSetChange
RPSet change event.
|
| Modifier and Type | Field and Description |
|---|---|
protected GCUBEStatefulPortTypeContext |
context
The port-type context of the WS-Resource.
|
protected GCUBELog |
logger
Class logger.
|
static String |
PROVIDER_NS
Namespace of the gCube Provider
|
static String |
RP_GID_NAME
The name of the GHN ID RP.
|
static String |
RP_RIID_NAME
The name of the RI ID RP.
|
static String |
RP_SCLASS_NAME
The name of the service class RP.
|
static String |
RP_SCOPES_NAME
The name of the DLs RP.
|
static String |
RP_SID_NAME
The name of the service ID RP.
|
static String |
RP_SNAME_NAME
The name of the service name RP.
|
| Constructor and Description |
|---|
GCUBEWSResourcePropertySet(GCUBEWSResource resource)
Creates an instance for a given resource.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(org.globus.wsrf.ResourceProperty prop) |
void |
addObserver(Observer o)
Adds an observer to the set of observers for this RPSet
|
boolean |
addScope(GCUBEScope scope)
Adds a given scope to the WS-Resource.
|
void |
clear() |
void |
deleteObserver(Observer o)
Deletes an observer from the set of observers of this object.
|
org.globus.wsrf.ResourceProperty |
get(String name)
Returns a resource property from its local name.
|
Calendar |
getCurrentTime()
Returns the current time.
|
String |
getGHN()
Returns the identifier of the GHN of the WS-Resource.
|
String |
getRI()
Returns the identifier of the Running Instance of the WS-Resource.
|
List<String> |
getScope()
Returns the scopes of the WS-Resource.
|
String |
getServiceClass()
Returns the class of the service of the WS-Resource.
|
String |
getServiceID()
Returns the identifier of the service of the WS-Resource.
|
String |
getServiceName()
Returns the name of the service of the WS-Resource.
|
org.globus.wsrf.ResourceProperty |
getSystemRP(String name)
Returns a system resource property from its local name.
|
static String[] |
getSystemRPNames()
Returns the names of the system properties common to all WS-Resources.
|
Calendar |
getTerminationTime()
Returns the termination time of the WS-Resource.
|
protected void |
notifyObservers(GCUBEWSResourcePropertySet.RPSetChange change)
Notifies the registered observer about change on the RP
|
boolean |
removeScope(GCUBEScope scope)
Removes the WS-Resource from a given scope.
|
void |
setGHN(String id)
Sets the identifier of the GHN of the WS-Resource.
|
void |
setRI(String id)
Set the identifier of the Running Instance of the WS-Resource.
|
void |
setScope(List<String> scopes)
Sets the scopes of the WS-Resource.
|
void |
setServiceClass(String serviceclass)
Sets the class of the service of the WS-Resource.
|
void |
setServiceID(String id)
Set the identifier of the service of the WS-Resource.
|
void |
setServiceName(String name)
Sets the name of the service of the WS-Resource.
|
void |
setTerminationTime(Calendar calendar)
Sets the termination time of WS-Resource.
|
public static final String PROVIDER_NS
public static final String RP_SID_NAME
public static final String RP_SNAME_NAME
public static final String RP_SCLASS_NAME
public static final String RP_RIID_NAME
public static final String RP_GID_NAME
public static final String RP_SCOPES_NAME
protected volatile GCUBEStatefulPortTypeContext context
protected GCUBELog logger
public GCUBEWSResourcePropertySet(GCUBEWSResource resource) throws Exception
resource - the resource.Exception - if the set could not be initialised.public org.globus.wsrf.ResourceProperty get(String name)
name - the name.public org.globus.wsrf.ResourceProperty getSystemRP(String name)
name - the name.public Calendar getCurrentTime()
public Calendar getTerminationTime()
public void setTerminationTime(Calendar calendar)
calendar - the time.public String getRI()
public void setRI(String id)
id - the identifierpublic String getServiceID()
public void setServiceID(String id)
id - the identifier.public String getGHN()
public void setGHN(String id)
id - the identifier.public void setServiceName(String name)
name - the name.public String getServiceName()
public void setServiceClass(String serviceclass)
serviceclass - the class.public String getServiceClass()
public void setScope(List<String> scopes)
scopes - the scopes.public boolean addScope(GCUBEScope scope)
scope - the scope.true if the scope did not exist and was successfully added, false otherwise.public boolean removeScope(GCUBEScope scope)
scope - the scope.true if the scope existed and the binding removed, false otherwise.public static String[] getSystemRPNames()
public boolean add(org.globus.wsrf.ResourceProperty prop)
add in interface org.globus.wsrf.ResourcePropertySetadd in class org.globus.wsrf.impl.SimpleResourcePropertySetpublic void deleteObserver(Observer o)
null to this method will have no effect.o - the observer to be deleted.public void addObserver(Observer o)
o - an observer to be added.NullPointerException - if the parameter o is null.protected void notifyObservers(GCUBEWSResourcePropertySet.RPSetChange change)
change - public void clear()
clear in interface org.globus.wsrf.ResourcePropertySetclear in class org.globus.wsrf.impl.SimpleResourcePropertySetCopyright © 2015. All Rights Reserved.