public class AgentServiceRemoter extends Object implements AgentServiceLifecycleListener, AgentServiceStreamRemoter
AgentServiceLifecycleListener will enable each agent service that is started for remote access. As agent
services go down, this listener ensures that they are no longer remotely accessible.| Constructor and Description |
|---|
AgentServiceRemoter(AgentMain agent)
Creates a new
AgentServiceRemoter object. |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
prepareInputStream(InputStream stream)
This will remote the input stream using the agent's communications services.
|
OutputStream |
prepareOutputStream(OutputStream stream)
This will remote the output stream using the agent's communications services.
|
void |
started(AgentService agent_service)
This method will remote the given agent service so external clients can communicate with it.
|
void |
stopped(AgentService agent_service)
This method will ensure that the stopped agent service will no longer be accessible to external clients.
|
public AgentServiceRemoter(AgentMain agent)
AgentServiceRemoter object.agent - the agent that provides the remoting infrastructurepublic void started(AgentService agent_service)
started in interface AgentServiceLifecycleListenerAgentServiceLifecycleListener.started(AgentService)public void stopped(AgentService agent_service)
stopped in interface AgentServiceLifecycleListenerAgentServiceLifecycleListener.stopped(AgentService)public InputStream prepareInputStream(InputStream stream)
prepareInputStream in interface AgentServiceStreamRemoterAgentServiceStreamRemoter.prepareInputStream(java.io.InputStream)public OutputStream prepareOutputStream(OutputStream stream)
prepareOutputStream in interface AgentServiceStreamRemoterAgentServiceStreamRemoter.prepareOutputStream(OutputStream)Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.