|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProducerFactory
A factory for Primary, Secondary and OnDemand Producers.
Method Summary | |
---|---|
OnDemandProducer |
createOnDemandProducer(TimeInterval terminationInterval,
java.net.URI uri)
Creates an on-demand producer. |
OnDemandProducer |
createOnDemandProducer(TimeInterval terminationInterval,
java.net.URI uri,
StringList voNames)
Deprecated. See createOnDemandProducer(TimeInterval,URI) |
PrimaryProducer |
createPrimaryProducer(TimeInterval terminationInterval,
ProducerProperties producerProperties)
Creates a primary producer that uses the specified data storage and producer type. |
PrimaryProducer |
createPrimaryProducer(TimeInterval terminationInterval,
ProducerProperties producerProperties,
StringList voNames)
Deprecated. Use createPrimaryProducer(TimeInterval,ProducerProperties). |
SecondaryProducer |
createSecondaryProducer(TimeInterval terminationInterval,
ProducerProperties producerProperties)
Creates a secondary producer, that uses a primary producer with the specified attributes to republish information. |
SecondaryProducer |
createSecondaryProducer(TimeInterval terminationInterval,
ProducerProperties producerProperties,
StringList voNames)
Deprecated. See createSecondaryProducer(TimeInterval,ProducerProperties). |
void |
dropPrimaryTupleStore(java.lang.String logicalName)
Permanently deletes a named Primary Producer tuple store. |
void |
dropSecondaryTupleStore(java.lang.String logicalName)
Permanently deletes a named Secondary Producer tuple store. |
Service |
getOnDemandProducerService()
Gets a reference to the OnDemandProducer service, which can be used to get and set properties and get version. |
Service |
getPrimaryProducerService()
Gets a reference to the PrimaryProducer service, which can be used to get and set properties and get version. |
Service |
getSecondaryProducerService()
Gets a reference to the SecondaryProducer service, which can be used to get and set properties and get version. |
TupleStoreList |
listPrimaryTupleStores()
Returns a list of existing tuple stores that can be used by Primary Producers. |
TupleStoreList |
listSecondaryTupleStores()
Returns a list of existing tuple stores that can be used by Secondary Producers. |
OnDemandProducer |
reconnectOnDemandProducer(ResourceEndpoint resourceEndpoint)
Reconnects to an existing OnDemandProducer resource. |
PrimaryProducer |
reconnectPrimaryProducer(ResourceEndpoint resourceEndpoint)
Reconnects to an existing PrimaryProducer resource. |
SecondaryProducer |
reconnectSecondaryProducer(ResourceEndpoint resourceEndpoint)
Reconnects to an existing SecondaryProducer resource. |
Method Detail |
---|
OnDemandProducer createOnDemandProducer(TimeInterval terminationInterval, java.net.URI uri, StringList voNames) throws RemoteException, RGMAException
terminationInterval
- The interval after which this Producer will
be removed from the remote service if there has been no contact
from the API.uri
- The URI for the system that will respond to queries.voNames
- List of VO names to publish to.
RemoteException
- If the service could not be contacted.
RGMAException
- If no endpointReference is defined in properties.
If the URI is invalid.OnDemandProducer createOnDemandProducer(TimeInterval terminationInterval, java.net.URI uri) throws RemoteException, RGMAException
terminationInterval
- The interval after which this Producer will
be removed from the remote service if there has been no contact
from the API.uri
- The URI for the system that will respond to queries.
RemoteException
- If the service could not be contacted.
RGMAException
- If no endpointReference is defined in properties.
If the URI is invalid.OnDemandProducer reconnectOnDemandProducer(ResourceEndpoint resourceEndpoint) throws RGMAException, RemoteException, UnknownResourceException
resourceEndpoint
- Endpoint of the OnDemandProducer.
RGMAException
- If an R-GMA error occurs.
RemoteException
- If the service could not be contacted.
UnknownResourceException
- If the resource does not exist.PrimaryProducer createPrimaryProducer(TimeInterval terminationInterval, ProducerProperties producerProperties, StringList voNames) throws RemoteException, RGMAException
terminationInterval
- The interval after which this Producer will
be removed from the remote service if there has been no contact
from the API.producerProperties
- a ProducerProperties objectvoNames
- List of VO names to publish to.
RemoteException
- If the service could not be contacted.
RGMAException
- If no endpointReference is defined in properties.
If the storage location is invalid.PrimaryProducer createPrimaryProducer(TimeInterval terminationInterval, ProducerProperties producerProperties) throws RemoteException, RGMAException
terminationInterval
- The interval after which this Producer will
be removed from the remote service if there has been no contact
from the API.producerProperties
- a ProducerProperties object
RemoteException
- If the service could not be contacted.
RGMAException
- If no endpointReference is defined in properties.
If the storage location is invalid.PrimaryProducer reconnectPrimaryProducer(ResourceEndpoint resourceEndpoint) throws RGMAException, RemoteException, UnknownResourceException
resourceEndpoint
- Endpoint of the PrimaryProducer.
RGMAException
- If an R-GMA error occurs.
RemoteException
- If the service could not be contacted.
UnknownResourceException
- If the resource does not exist.SecondaryProducer createSecondaryProducer(TimeInterval terminationInterval, ProducerProperties producerProperties, StringList voNames) throws RemoteException, RGMAException
terminationInterval
- The interval after which this Producer will
be removed from the remote service if there has been no contact
from the API.producerProperties
- a ProducerProperties objectvoNames
- List of VO names to publish to.
RemoteException
- If the service could not be contacted.
RGMAException
- If no endpointReference is defined in properties.
If the storage location is invalid.SecondaryProducer createSecondaryProducer(TimeInterval terminationInterval, ProducerProperties producerProperties) throws RemoteException, RGMAException
terminationInterval
- The interval after which this Producer will
be removed from the remote service if there has been no contact
from the API.producerProperties
- a ProducerProperties object
RemoteException
- If the service could not be contacted.
RGMAException
- If no endpointReference is defined in properties.
If the storage location is invalid.SecondaryProducer reconnectSecondaryProducer(ResourceEndpoint resourceEndpoint) throws RGMAException, RemoteException, UnknownResourceException
resourceEndpoint
- Endpoint of the SecondaryProducer.
RGMAException
- If an R-GMA error occurs.
RemoteException
- If the service could not be contacted.
UnknownResourceException
- If the resource does not exist.TupleStoreList listPrimaryTupleStores() throws RemoteException, RGMAException
RemoteException
- If the service could not be contacted.
RGMAException
- If no endpointReference is defined in properties.dropPrimaryTupleStore(String)
void dropPrimaryTupleStore(java.lang.String logicalName) throws RGMAException, RemoteException
logicalName
- Name of tuple store.
RGMAException
- If the store does not exist or if it is in use by a producer. If no
endpointReference is defined in properties.
RemoteException
- If the service could not be contacted.listPrimaryTupleStores()
TupleStoreList listSecondaryTupleStores() throws RemoteException, RGMAException
RemoteException
- If the service could not be contacted.
RGMAException
- If no endpointReference is defined in properties.dropSecondaryTupleStore(String)
void dropSecondaryTupleStore(java.lang.String logicalName) throws RGMAException, RemoteException
logicalName
- Name of tuple store.
RGMAException
- If the store does not exist or if it is in use by a producer. If no
endpointReference is defined in properties.
RemoteException
- If the service could not be contacted.listSecondaryTupleStores()
Service getSecondaryProducerService() throws RGMAException
RGMAException
- If an invalid endpoint or no endpoint is defined in properties.getOnDemandProducerService()
,
getPrimaryProducerService()
Service getOnDemandProducerService() throws RGMAException
RGMAException
- If an invalid endpoint or no endpoint is defined in properties.getSecondaryProducerService()
,
getPrimaryProducerService()
Service getPrimaryProducerService() throws RGMAException
RGMAException
- If an invalid endpoint or no endpoint is defined in properties.getOnDemandProducerService()
,
getSecondaryProducerService()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |