public class RegistrationInfo extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
class |
RegistrationInfo.RegistrationRefreshResult |
| Constructor and Description |
|---|
RegistrationInfo(ProducerInfo producerInfo) |
RegistrationInfo(ProducerInfo producerInfo,
boolean requiresRegistration) |
RegistrationInfo(RegistrationInfo other) |
| Modifier and Type | Method and Description |
|---|---|
String |
getConsumerAgent() |
String |
getConsumerName() |
Long |
getKey() |
ProducerInfo |
getParent() |
RegistrationContext |
getRegistrationContext() |
RegistrationData |
getRegistrationData()
Retrieves the RegistrationData that can be sent to the WSRP producer associated with the consumer owning this RegistrationInfo to perform registration.
|
String |
getRegistrationHandle() |
Map<QName,RegistrationProperty> |
getRegistrationProperties() |
RegistrationProperty |
getRegistrationProperty(QName name) |
RegistrationProperty |
getRegistrationProperty(String name) |
byte[] |
getRegistrationState() |
boolean |
hasLocalInfo() |
Boolean |
isConsistentWithProducerExpectations() |
boolean |
isModifiedSinceLastRefresh() |
boolean |
isModifyRegistrationNeeded() |
boolean |
isRefreshNeeded()
Determines whether this RegistrationInfo needs to be refreshed when its
refresh(org.oasis.wsrp.v2.ServiceDescription, String, boolean, boolean, boolean) method is
called. |
boolean |
isRegistered() |
boolean |
isRegistrationDeterminedNotRequired()
Determines whether it has been determined after querying the associated Producer that it does
NOT
require registration.
|
boolean |
isRegistrationDeterminedRequired()
Determines whether it has been determined after querying the associated Producer that it requires registration.
|
boolean |
isRegistrationPropertiesExisting() |
Boolean |
isRegistrationRequired()
Determines whether the associated Producer requires registration.
|
Boolean |
isRegistrationValid() |
boolean |
isUndetermined() |
void |
propertyValueChanged(RegistrationProperty property,
RegistrationProperty.Status previousStatus,
Object oldValue,
Object newValue)
Only called if an actual change occurred, i.e.
|
RegistrationInfo.RegistrationRefreshResult |
refresh(ServiceDescription serviceDescription,
String producerId,
boolean mergeWithLocalInfo,
boolean forceRefresh,
boolean forceCheckOfExtraProps)
Refreshes the registration status and information required by the associated WSRP producer based on the information provided in the specified ServiceDescription.
|
void |
removeRegistrationProperty(QName name) |
void |
removeRegistrationProperty(String name) |
void |
setConsumerName(String consumerName) |
void |
setKey(Long key) |
void |
setModifiedSinceLastRefresh(boolean modifiedSinceLastRefresh) |
void |
setParent(ProducerInfo parent) |
void |
setRegistrationContext(RegistrationContext registrationContext) |
void |
setRegistrationHandle(String registrationHandle) |
void |
setRegistrationProperties(Map<QName,RegistrationProperty> registrationProperties) |
RegistrationProperty |
setRegistrationPropertyValue(QName name,
String value) |
RegistrationProperty |
setRegistrationPropertyValue(String name,
String value) |
void |
setRegistrationState(byte[] registrationState) |
public RegistrationInfo(ProducerInfo producerInfo)
public RegistrationInfo(ProducerInfo producerInfo, boolean requiresRegistration)
public RegistrationInfo(RegistrationInfo other)
public boolean isUndetermined()
public Long getKey()
public void setKey(Long key)
public String getRegistrationHandle()
public void setRegistrationHandle(String registrationHandle)
public byte[] getRegistrationState()
public void setRegistrationState(byte[] registrationState)
public ProducerInfo getParent()
public void setParent(ProducerInfo parent)
public boolean isRefreshNeeded()
refresh(org.oasis.wsrp.v2.ServiceDescription, String, boolean, boolean, boolean) method is
called.public Boolean isRegistrationValid()
public Boolean isConsistentWithProducerExpectations()
public Boolean isRegistrationRequired()
null if this RegistrationInfo hasn't queried the Producer yet and thus, doesn't have a
definitive answer on whether or not the associated Producer requires registration,
Boolean.TRUE if the associated Producer requires registration, Boolean.FALSE
otherwise.public boolean isRegistrationDeterminedRequired()
true if and only if the associated Producer has been queried and mandates registration,
false otherwise.IllegalStateException - if refresh(org.oasis.wsrp.v2.ServiceDescription, java.lang.String, boolean, boolean, boolean) has not yet been calledpublic boolean isRegistrationDeterminedNotRequired()
true if and only if the associated Producer has been queried and does NOT mandate
registration, false otherwise.IllegalStateException - if refresh(org.oasis.wsrp.v2.ServiceDescription, java.lang.String, boolean, boolean, boolean) has not yet been calledpublic boolean hasLocalInfo()
public boolean isRegistrationPropertiesExisting()
public RegistrationData getRegistrationData()
public String getConsumerName()
public void setConsumerName(String consumerName)
public String getConsumerAgent()
public RegistrationProperty getRegistrationProperty(String name)
public RegistrationProperty getRegistrationProperty(QName name)
public RegistrationProperty setRegistrationPropertyValue(String name, String value)
public RegistrationProperty setRegistrationPropertyValue(QName name, String value)
public void removeRegistrationProperty(String name)
public void removeRegistrationProperty(QName name)
public Map<QName,RegistrationProperty> getRegistrationProperties()
public void setRegistrationProperties(Map<QName,RegistrationProperty> registrationProperties)
public RegistrationInfo.RegistrationRefreshResult refresh(ServiceDescription serviceDescription, String producerId, boolean mergeWithLocalInfo, boolean forceRefresh, boolean forceCheckOfExtraProps)
serviceDescription - the ServiceDescription to extract registration information fromproducerId - the producer identifier associated with the ServiceDescription, used mainly for logging purposesmergeWithLocalInfo - whether the information extracted from the ServiceDescription needs to be merged with any existing registration information already present in
this RegistrationInfo prior to the refresh operation. This is useful to provide a clean view of expected registration properties as opposed to
a
view mixing both existing and missing expected information.forceRefresh - whether or not we should force the refresh regardless of the cache statusforceCheckOfExtraProps - public void setRegistrationContext(RegistrationContext registrationContext)
public RegistrationContext getRegistrationContext()
public boolean isModifyRegistrationNeeded()
public boolean isModifiedSinceLastRefresh()
public void setModifiedSinceLastRefresh(boolean modifiedSinceLastRefresh)
public void propertyValueChanged(RegistrationProperty property, RegistrationProperty.Status previousStatus, Object oldValue, Object newValue)
public boolean isRegistered()
Copyright © 2006-2014 GateIn. All Rights Reserved.