de.fhhannover.inform.trust.ifmapj.channel
Interface SSRC

All Superinterfaces:
IfmapChannel
All Known Implementing Classes:
SsrcImpl

public interface SSRC
extends IfmapChannel

Interface describing the Synchronous Send Receive Channel (SSRC) methods.

Author:
aw

Method Summary
 void endSession()
          Send endSession request to MAPS
 ARC getArc()
          Open a ARC corresponding to this SSRC instance
 void newSession()
          Send a newSession request to MAPS
 void newSession(Integer maxPollResSize)
          Send a newSession request to MAPS with the given parameter
 void publish(PublishRequest req)
          Send a publish request to MAPS.
 void purgePublisher()
          Send purgePublisher request to MAPS in order to purge the MAPCs metadata
 void purgePublisher(String publisherId)
          Send purgePublisher request with the given parameter to MAPS
 void renewSession()
          Send renewSession request to MAPS
 SearchResult search(SearchRequest req)
          Send a search request to the MAPS
 void subscribe(SubscribeRequest req)
          Send a subscribe request to the MAPS.
 
Methods inherited from interface de.fhhannover.inform.trust.ifmapj.channel.IfmapChannel
closeTcpConnection, genericRequest, genericRequestWithSessionId, getMaxPollResSize, getPublisherId, getSessionId, setGzip, setMaxPollResSize, setPublisherId, setSessionId, usesGzip
 

Method Detail

newSession

void newSession()
                throws IfmapErrorResult,
                       IfmapException
Send a newSession request to MAPS

Throws:
IfmapErrorResult
IfmapException

newSession

void newSession(Integer maxPollResSize)
                throws IfmapErrorResult,
                       IfmapException
Send a newSession request to MAPS with the given parameter

Parameters:
maxPollResSize - the maximum size of poll results that can be processed by the MAPC given in bytes
Throws:
IfmapErrorResult
IfmapException

endSession

void endSession()
                throws IfmapErrorResult,
                       IfmapException
Send endSession request to MAPS

Throws:
IfmapErrorResult
IfmapException

renewSession

void renewSession()
                  throws IfmapErrorResult,
                         IfmapException
Send renewSession request to MAPS

Throws:
IfmapErrorResult
IfmapException

purgePublisher

void purgePublisher()
                    throws IfmapErrorResult,
                           IfmapException
Send purgePublisher request to MAPS in order to purge the MAPCs metadata

Throws:
IfmapErrorResult
IfmapException

purgePublisher

void purgePublisher(String publisherId)
                    throws IfmapErrorResult,
                           IfmapException
Send purgePublisher request with the given parameter to MAPS

Parameters:
publisherId - the publisher-id of the MAPC whose metadata should be purged
Throws:
IfmapErrorResult
IfmapException

publish

void publish(PublishRequest req)
             throws IfmapErrorResult,
                    IfmapException
Send a publish request to MAPS.

Parameters:
req - the publish request that is sent
Throws:
IfmapErrorResult
IfmapException

subscribe

void subscribe(SubscribeRequest req)
               throws IfmapErrorResult,
                      IfmapException
Send a subscribe request to the MAPS.

Parameters:
req - the subscribe request
Throws:
IfmapErrorResult
IfmapException

search

SearchResult search(SearchRequest req)
                    throws IfmapErrorResult,
                           IfmapException
Send a search request to the MAPS

Parameters:
req - the search request
Returns:
the results of the search
Throws:
IfmapErrorResult
IfmapException

getArc

ARC getArc()
           throws InitializationException
Open a ARC corresponding to this SSRC instance

Returns:
the new ARC
Throws:
InitializationException


Copyright © 2012 Trust@FHH. All Rights Reserved.