public abstract class PortFactory extends java.lang.Object implements PortFactoryInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
static int |
debugLevel
The debug level for this device.
|
Constructor and Description |
---|
PortFactory(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the factory.
|
PortPoolInterface |
getPortPool(java.lang.String portName,
java.lang.Object checkedForDuplication)
Calling this methods indicates that a component is interested in this
factory and will (presumably) be calling "checkin/checkout" at some
later date to get access to the underlying resource.
|
void |
releasePortPool(PortPoolInterface portPool,
java.lang.Object mustHaveBeenAdded)
Once a factory is no longer required, that is, checkin/checkout will no
longer be called on this factory, the reference to the factory should be
removed allowing the factory and any underlying resources to be freed.
|
public static final java.lang.String cvsRev
public static int debugLevel
public java.lang.String getName()
PortFactoryInterface
getName
in interface PortFactoryInterface
public PortPoolInterface getPortPool(java.lang.String portName, java.lang.Object checkedForDuplication) throws java.io.IOException, BadParameterException
getPortPool
in interface PortFactoryInterface
portName
- the name of the port for which a pool is requested. The format of the name is dependent upon the
implementation.checkedForDuplication
- if this method is called more than once with identical arguments then a
BadParameterException is thrownjava.io.IOException
- thrown if thrown when creating a port pool/portBadParameterException
- thrown if thrown when creating a port pool/port or this method is called twice with identical argumentscom.ergotech.vib.ports.PortFactoryInterface#addReference(java.lang.String)
public void releasePortPool(PortPoolInterface portPool, java.lang.Object mustHaveBeenAdded) throws java.io.IOException, BadParameterException
releasePortForName
object and the port.releasePortPool
in interface PortFactoryInterface
java.io.IOException
BadParameterException
com.ergotech.vib.ports.PortFactoryInterface#releaseReference(java.lang.String)
Copyright © 1999-2021 ErgoTech Systems, Inc. All Rights Reserved.