本文整理汇总了Java中com.sun.corba.se.impl.orbutil.ORBUtility.dprint方法的典型用法代码示例。如果您正苦于以下问题:Java ORBUtility.dprint方法的具体用法?Java ORBUtility.dprint怎么用?Java ORBUtility.dprint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.corba.se.impl.orbutil.ORBUtility
的用法示例。
在下文中一共展示了ORBUtility.dprint方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create_reference
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
/**
* <code>create_reference</code>
* <b>3.3.8.17</b>
*/
public org.omg.CORBA.Object create_reference(String repId)
throws WrongPolicy
{
try {
lock() ;
if (debug) {
ORBUtility.dprint( this, "Calling create_reference(repId=" +
repId + ") on poa " + this ) ;
}
return makeObject( repId, mediator.newSystemId()) ;
} finally {
unlock() ;
}
}
示例2: reference_to_id
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
/**
* <code>reference_to_id</code>
* <b>3.3.8.22</b>
*/
public byte[] reference_to_id(org.omg.CORBA.Object reference)
throws WrongAdapter, WrongPolicy
{
try {
lock() ;
if (debug) {
ORBUtility.dprint( this, "Calling reference_to_id(reference=" +
reference + ") on poa " + this ) ;
}
if( state >= STATE_DESTROYING ) {
throw lifecycleWrapper().adapterDestroyed() ;
}
return internalReferenceToId( reference ) ;
} finally {
unlock() ;
}
}
示例3: servant_to_reference
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
/**
* <code>servant_to_reference</code>
* <b>3.3.8.20</b>
*/
public org.omg.CORBA.Object servant_to_reference(Servant servant)
throws ServantNotActive, WrongPolicy
{
try {
lock() ;
if (debug) {
ORBUtility.dprint( this,
"Calling servant_to_reference(servant=" +
servant + ") on poa " + this ) ;
}
byte[] oid = mediator.servantToId(servant);
String repId = servant._all_interfaces( this, oid )[0] ;
return create_reference_with_id(oid, repId);
} finally {
unlock() ;
}
}
示例4: servant_to_id
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
/**
* <code>servant_to_id</code>
* <b>3.3.8.19</b>
*/
public byte[] servant_to_id(Servant servant)
throws ServantNotActive, WrongPolicy
{
try {
lock() ;
if (debug) {
ORBUtility.dprint( this, "Calling servant_to_id(servant=" +
servant + ") on poa " + this ) ;
}
return mediator.servantToId( servant ) ;
} finally {
unlock() ;
}
}
示例5: id_to_reference
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
/**
* <code>id_to_reference</code>
* <b>3.3.8.24</b>
*/
public org.omg.CORBA.Object id_to_reference(byte[] id)
throws ObjectNotActive, WrongPolicy
{
try {
lock() ;
if (debug) {
ORBUtility.dprint( this, "Calling id_to_reference(id=" +
id + ") on poa " + this ) ;
}
if( state >= STATE_DESTROYING ) {
throw lifecycleWrapper().adapterDestroyed() ;
}
Servant s = mediator.idToServant( id ) ;
String repId = s._all_interfaces( this, id )[0] ;
return makeObject(repId, id );
} finally {
unlock() ;
}
}
示例6: enter
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
synchronized void enter()
{
try {
if (debug) {
ORBUtility.dprint( this,
"Calling enter for POAManagerImpl " + this ) ;
}
checkState();
nInvocations++;
} finally {
if (debug) {
ORBUtility.dprint( this,
"Exiting enter for POAManagerImpl " + this ) ;
}
}
}
示例7: doIt
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
public void doIt( FSM fsm, Input in, boolean debug )
{
// This method is present only for debugging.
// innerDoIt does the actual transition.
if (debug)
ORBUtility.dprint( this, "doIt enter: currentState = " +
fsm.getState() + " in = " + in ) ;
try {
innerDoIt( fsm, in, debug ) ;
} finally {
if (debug)
ORBUtility.dprint( this, "doIt exit" ) ;
}
}
示例8: enter
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
public void enter() throws OADestroyed
{
try {
lock() ;
if (debug) {
ORBUtility.dprint( this, "Calling enter on poa " + this ) ;
}
// Avoid deadlock if this is the thread that is processing the
// POA.destroy because this is the only thread that can notify
// waiters on beingDestroyedCV. This can happen if an
// etherealize upcall invokes a method on a colocated object
// served by this POA.
while ((state == STATE_DESTROYING) &&
(isDestroying.get() == Boolean.FALSE)) {
try {
beingDestroyedCV.await();
} catch (InterruptedException ex) {
// NO-OP
}
}
if (!waitUntilRunning())
throw new OADestroyed() ;
invocationCount++;
} finally {
if (debug) {
ORBUtility.dprint( this, "Exiting enter on poa " + this ) ;
}
unlock() ;
}
manager.enter();
}
示例9: run
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
public void run() {
if (debug) {
ORBUtility.dprint( this, "Calling Etherealizer.run on key " +
key ) ;
}
try {
try {
mediator.activator.etherealize( key.id, mediator.poa, servant,
false, mediator.activeObjectMap.hasMultipleIDs( entry ) );
} catch (Exception exc) {
// ignore all exceptions
}
try {
mediator.poa.lock() ;
entry.etherealizeComplete() ;
mediator.activeObjectMap.remove( key ) ;
POAManagerImpl pm = (POAManagerImpl)mediator.poa.the_POAManager() ;
POAFactory factory = pm.getFactory() ;
factory.unregisterPOAForServant( mediator.poa, servant);
} finally {
mediator.poa.unlock() ;
}
} finally {
if (debug) {
ORBUtility.dprint( this, "Exiting Etherealizer.run" ) ;
}
}
}
示例10: dprint
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
protected void dprint(String msg)
{
ORBUtility.dprint("CorbaTransportManagerImpl", msg);
}
示例11: dprint
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
private void dprint( String msg )
{
ORBUtility.dprint( this, msg ) ;
}
示例12: dprint
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
protected void dprint(String msg)
{
ORBUtility.dprint(toStringName(), msg);
}
示例13: dprint
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
protected void dprint(String msg)
{
ORBUtility.dprint("SharedCDRClientRequestDispatcherImpl", msg);
}
示例14: create_POA
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
/**
* <code>create_POA</code>
* <b>Section 3.3.8.2</b>
*/
public POA create_POA(String name, POAManager
theManager, Policy[] policies) throws AdapterAlreadyExists,
InvalidPolicy
{
try {
lock() ;
if (debug) {
ORBUtility.dprint( this, "Calling create_POA(name=" + name +
" theManager=" + theManager + " policies=" + policies +
") on poa " + this ) ;
}
// We cannot create children of a POA that is (being) destroyed.
// This has been added to the CORBA 3.0 spec.
if (state > STATE_RUN)
throw omgLifecycleWrapper().createPoaDestroy() ;
POAImpl poa = (POAImpl)(children.get(name)) ;
if (poa == null) {
poa = new POAImpl( name, this, getORB(), STATE_START ) ;
}
try {
poa.lock() ;
if (debug) {
ORBUtility.dprint( this,
"Calling create_POA: new poa is " + poa ) ;
}
if ((poa.state != STATE_START) && (poa.state != STATE_INIT))
throw new AdapterAlreadyExists();
POAManagerImpl newManager = (POAManagerImpl)theManager ;
if (newManager == null)
newManager = new POAManagerImpl( manager.getFactory(),
manager.getPIHandler() );
int defaultCopierId =
getORB().getCopierManager().getDefaultId() ;
Policies POAPolicies =
new Policies( policies, defaultCopierId ) ;
poa.initialize( newManager, POAPolicies ) ;
return poa;
} finally {
poa.unlock() ;
}
} finally {
unlock() ;
}
}
示例15: writeNullServiceContext
import com.sun.corba.se.impl.orbutil.ORBUtility; //导入方法依赖的package包/类
public static void writeNullServiceContext( OutputStream os )
{
if (isDebugging(os))
ORBUtility.dprint( "ServiceContexts", "Writing null service context" ) ;
os.write_long( 0 ) ;
}