org.rhq.core.pc.agent
Interface AgentServiceStreamRemoter


public interface AgentServiceStreamRemoter

An interface to any object that can prepare a stream for remote access.

Author:
John Mazzitelli

Method Summary
 InputStream prepareInputStream(InputStream stream)
          Given an input stream, this will prepare it to be accessed by remote clients.
 OutputStream prepareOutputStream(OutputStream stream)
          Given an output stream, this will prepare it to be accessed by remote clients.
 

Method Detail

prepareInputStream

InputStream prepareInputStream(InputStream stream)
Given an input stream, this will prepare it to be accessed by remote clients. You should be able to send the returned input stream remote clients.

Parameters:
stream - the stream to remote
Returns:
the remoted input stream, possibly wrapped in a proxy to support remote access

prepareOutputStream

OutputStream prepareOutputStream(OutputStream stream)
Given an output stream, this will prepare it to be accessed by remote clients. You should be able to send the returned output stream remote clients.

Parameters:
stream - the stream to remote
Returns:
the remoted output stream, possibly wrapped in a proxy to support remote access


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.